UNPKG

825 BTypeScriptView Raw
1import { AST_NODE_TYPES, ParserServices } from '@typescript-eslint/typescript-estree';
2import { TSESLint } from '@typescript-eslint/experimental-utils';
3import { analyzeScope } from './analyze-scope';
4import { visitorKeys } from './visitor-keys';
5declare type ParserOptions = TSESLint.ParserOptions;
6interface ParseForESLintResult {
7 ast: any;
8 services: ParserServices;
9 visitorKeys: typeof visitorKeys;
10 scopeManager: ReturnType<typeof analyzeScope>;
11}
12export declare const version: any;
13export declare const Syntax: Readonly<typeof AST_NODE_TYPES>;
14export declare function parse(code: string, options?: ParserOptions): any;
15export declare function parseForESLint(code: string, options?: ParserOptions | null): ParseForESLintResult;
16export { ParserServices, ParserOptions };
17//# sourceMappingURL=parser.d.ts.map
\No newline at end of file