1 | import { ParserOptions, TSESTree } from '@typescript-eslint/types';
|
2 | import { ParserServices, visitorKeys } from '@typescript-eslint/typescript-estree';
|
3 | import { ScopeManager } from '@typescript-eslint/scope-manager';
|
4 | interface ParseForESLintResult {
|
5 | ast: TSESTree.Program & {
|
6 | range?: [number, number];
|
7 | tokens?: TSESTree.Token[];
|
8 | comments?: TSESTree.Comment[];
|
9 | };
|
10 | services: ParserServices;
|
11 | visitorKeys: typeof visitorKeys;
|
12 | scopeManager: ScopeManager;
|
13 | }
|
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 |
|
\ | No newline at end of file |