/** * TypeScript Parser * * Wraps the existing TypeScript Compiler API-based parser in the IParser interface. * This provides superior type information and JSDoc parsing for TS/JS files. * * For TypeScript and JavaScript files, this parser is preferred over tree-sitter * because it has access to full type information and proven quality. */ import type { IParser, ParseResult, ParserConfig, ParserLanguage } from "../../domain/ports/parser"; /** * TypeScript Parser implementation using TypeScript Compiler API. * * This is the primary parser for TypeScript and JavaScript files. * It provides: * - Accurate AST parsing * - Full JSDoc extraction * - Export detection * - Type information */ export declare class TypeScriptParser implements IParser { readonly supportedLanguages: ParserLanguage[]; /** * Parse TypeScript/JavaScript source code into semantic chunks. */ parse(content: string, filepath: string, config?: ParserConfig): Promise; /** * Check if this parser can handle the given file. */ canParse(filepath: string): boolean; /** * Convert from the existing ParsedChunk format to the domain ParsedChunk format. */ private convertChunk; /** * Detect language from file extension. */ private detectLanguage; } /** * Create a new TypeScript parser instance. */ export declare function createTypeScriptParser(): TypeScriptParser;