/** * AST-based parser for TypeScript declaration files. * * Uses \@typescript-eslint/typescript-estree for parsing and optionally * TypeScript's type checker for type resolution. */ import type * as ts from 'typescript'; import type { ModuleAnalysis, ModuleAnalysisWithTypes, ParseOptions } from '../types'; /** * Parses a TypeScript declaration string into a ModuleAnalysis. * * This uses \@typescript-eslint/typescript-estree for parsing and produces * an AST-based analysis without type resolution. For type resolution, * use parseWithTypes(). * * @param source - The source code to parse * @param options - Parse options * @returns ModuleAnalysis with all extracted nodes * * @alpha */ export declare function parseModule(source: string, options?: ParseOptions): ModuleAnalysis; /** * Parses a TypeScript declaration string with type resolution. * * This uses both \@typescript-eslint/typescript-estree for AST parsing * and TypeScript's type checker for type resolution. * * @param source - The source code to parse * @param tsModule - The TypeScript module * @param options - Parse options * @returns ModuleAnalysisWithTypes with TypeScript program access * * @alpha */ export declare function parseModuleWithTypes(source: string, tsModule: typeof ts, options?: ParseOptions): ModuleAnalysisWithTypes; //# sourceMappingURL=core.d.ts.map