Urara-Blog/node_modules/.pnpm-store/v3/files/b3/9b9239db8635836f2ba1885a464b5030d8d36bfedc36441cd6d3a38b0af3632a80c6bacb03e082dc27e40739f0433d856151323b06df0e49566573129ee012
2022-08-14 01:14:53 +08:00

17 lines
No EOL
774 B
Text

import { ParserOptions, TSESTree } from '@typescript-eslint/types';
import { ParserServices, visitorKeys } from '@typescript-eslint/typescript-estree';
import { ScopeManager } from '@typescript-eslint/scope-manager';
interface ParseForESLintResult {
ast: TSESTree.Program & {
range?: [number, number];
tokens?: TSESTree.Token[];
comments?: TSESTree.Comment[];
};
services: ParserServices;
visitorKeys: typeof visitorKeys;
scopeManager: ScopeManager;
}
declare function parse(code: string, options?: ParserOptions): ParseForESLintResult['ast'];
declare function parseForESLint(code: string, options?: ParserOptions | null): ParseForESLintResult;
export { parse, parseForESLint, ParserOptions };
//# sourceMappingURL=parser.d.ts.map