import type * as ts from 'typescript'; import type { ParserServices, TSESTreeOptions } from './parser-options'; import type { TSESTree } from './ts-estree'; declare function clearProgramCache(): void; declare function clearDefaultProjectMatchedFiles(): void; type AST = TSESTree.Program & (T['comment'] extends true ? { comments: TSESTree.Comment[]; } : {}) & (T['tokens'] extends true ? { tokens: TSESTree.Token[]; } : {}); interface ParseAndGenerateServicesResult { ast: AST; services: ParserServices; } declare function parse(code: string, options?: T): AST; declare function clearParseAndGenerateServicesCalls(): void; declare function parseAndGenerateServices(code: ts.SourceFile | string, tsestreeOptions: T): ParseAndGenerateServicesResult; export { AST, parse, parseAndGenerateServices, ParseAndGenerateServicesResult, clearDefaultProjectMatchedFiles, clearProgramCache, clearParseAndGenerateServicesCalls, }; //# sourceMappingURL=parser.d.ts.map