1 | import { TSESLint } from '@typescript-eslint/experimental-utils';
|
2 | import { AST_NODE_TYPES, ParserServices, TSESTree, visitorKeys } from '@typescript-eslint/typescript-estree';
|
3 | import { analyzeScope } from './analyze-scope';
|
4 | declare type ParserOptions = TSESLint.ParserOptions;
|
5 | interface ParseForESLintResult {
|
6 | ast: TSESTree.Program & {
|
7 | range?: [number, number];
|
8 | tokens?: TSESTree.Token[];
|
9 | comments?: TSESTree.Comment[];
|
10 | };
|
11 | services: ParserServices;
|
12 | visitorKeys: typeof visitorKeys;
|
13 | scopeManager: ReturnType<typeof analyzeScope>;
|
14 | }
|
15 | export declare const version: any;
|
16 | export declare const Syntax: Readonly<typeof AST_NODE_TYPES>;
|
17 | export declare function parse(code: string, options?: ParserOptions): ParseForESLintResult['ast'];
|
18 | export declare function parseForESLint(code: string, options?: ParserOptions | null): ParseForESLintResult;
|
19 | export { ParserServices, ParserOptions };
|
20 | export { clearCaches } from '@typescript-eslint/typescript-estree';
|
21 |
|
\ | No newline at end of file |