1 | import type * as ts from 'typescript';
|
2 | import type { ParserServices, TSESTreeOptions } from './parser-options';
|
3 | import type { TSESTree } from './ts-estree';
|
4 | declare function clearProgramCache(): void;
|
5 | declare function clearDefaultProjectMatchedFiles(): void;
|
6 | type AST<T extends TSESTreeOptions> = TSESTree.Program & (T['comment'] extends true ? {
|
7 | comments: TSESTree.Comment[];
|
8 | } : {}) & (T['tokens'] extends true ? {
|
9 | tokens: TSESTree.Token[];
|
10 | } : {});
|
11 | interface ParseAndGenerateServicesResult<T extends TSESTreeOptions> {
|
12 | ast: AST<T>;
|
13 | services: ParserServices;
|
14 | }
|
15 | declare function parse<T extends TSESTreeOptions = TSESTreeOptions>(code: string, options?: T): AST<T>;
|
16 | declare function clearParseAndGenerateServicesCalls(): void;
|
17 | declare function parseAndGenerateServices<T extends TSESTreeOptions = TSESTreeOptions>(code: ts.SourceFile | string, tsestreeOptions: T): ParseAndGenerateServicesResult<T>;
|
18 | export { AST, parse, parseAndGenerateServices, ParseAndGenerateServicesResult, clearDefaultProjectMatchedFiles, clearProgramCache, clearParseAndGenerateServicesCalls, };
|
19 |
|
\ | No newline at end of file |