1 | import type { ScopeManager } from '@typescript-eslint/scope-manager';
|
2 | import type { TSESTree } from '@typescript-eslint/types';
|
3 | import { ParserOptions } from '@typescript-eslint/types';
|
4 | import type { ParserServices } from '@typescript-eslint/typescript-estree';
|
5 | import type { VisitorKeys } from '@typescript-eslint/visitor-keys';
|
6 | import type * as ts from 'typescript';
|
7 | interface ParseForESLintResult {
|
8 | ast: TSESTree.Program & {
|
9 | range?: [number, number];
|
10 | tokens?: TSESTree.Token[];
|
11 | comments?: TSESTree.Comment[];
|
12 | };
|
13 | services: ParserServices;
|
14 | visitorKeys: VisitorKeys;
|
15 | scopeManager: ScopeManager;
|
16 | }
|
17 | declare function parse(code: ts.SourceFile | string, options?: ParserOptions): ParseForESLintResult['ast'];
|
18 | declare function parseForESLint(code: ts.SourceFile | string, options?: ParserOptions | null): ParseForESLintResult;
|
19 | export { parse, parseForESLint, ParserOptions };
|
20 |
|
\ | No newline at end of file |