1 import { ParserOptions, TSESTree } from '@typescript-eslint/types';
2 import { ParserServices, visitorKeys } from '@typescript-eslint/typescript-estree';
3 import { analyzeScope } from './analyze-scope';
4 interface ParseForESLintResult {
5 ast: TSESTree.Program & {
6 range?: [number, number];
7 tokens?: TSESTree.Token[];
8 comments?: TSESTree.Comment[];
10 services: ParserServices;
11 visitorKeys: typeof visitorKeys;
12 scopeManager: ReturnType<typeof analyzeScope>;
14 declare function parse(code: string, options?: ParserOptions): ParseForESLintResult['ast'];
15 declare function parseForESLint(code: string, options?: ParserOptions | null): ParseForESLintResult;
16 export { parse, parseForESLint, ParserOptions };
17 //# sourceMappingURL=parser.d.ts.map