export type CodeEntityType = 'function' | 'class' | 'method' | 'import' | 'export' | 'interface' | 'type'; export interface CodeEntity { type: CodeEntityType; name: string; startLine: number; endLine: number; filePath: string; dependencies: string[]; } export type SupportedLanguage = 'typescript' | 'javascript' | 'python' | 'go'; export interface IParser { parse(source: string, language: SupportedLanguage, filePath: string): CodeEntity[]; } export declare function languageFromFile(filePath: string): SupportedLanguage | null; export declare class TreeSitterParser implements IParser { private parsers; private ready; constructor(); private init; parse(source: string, language: SupportedLanguage, filePath: string): CodeEntity[]; private walkTree; private mapNodeType; private extractName; private extractDependencies; private fallbackParse; private matchDeclaration; private findBlockEnd; } //# sourceMappingURL=TreeSitterParser.d.ts.map