import type { ILanguageParser } from "../types/interfaces.js"; import type { RawFunctionInfo, RawCallInfo, RawImportInfo, RawTypeRelationship } from "../types/index.js"; type SyntaxNode = any; export interface TreeSitterLanguageConfig { grammar: any; extensions: string[]; extractFunctions(rootNode: SyntaxNode, filePath: string): RawFunctionInfo[]; extractCalls(rootNode: SyntaxNode, lineStart: number, lineEnd: number): RawCallInfo[]; extractImports(rootNode: SyntaxNode, filePath: string): RawImportInfo[]; extractDocstring(node: SyntaxNode): string | null; extractTypeRelationships(rootNode: SyntaxNode, filePath: string): RawTypeRelationship[]; extractLocalVariables?(rootNode: SyntaxNode, lineStart: number, lineEnd: number): Array<{ name: string; type: string; }>; testDecorators?: string[]; testImportPrefixes?: string[]; noiseTargets?: string[]; builtinMethods?: string[]; noisePatterns?: RegExp[]; selfKeywords?: string[]; constructorNames?: string[]; returnTypePattern?: RegExp; sourceRoots?: string[]; workspaceManifests?: string[]; workspaceManifestExtensions?: string[]; indexFileNames?: string[]; resolveImportPath?(modulePath: string, fromFile: string, projectRoot: string, pathExists: (workspaceRelativePath: string) => boolean): string | null; isExternalImport?(modulePath: string): boolean; } export declare class TreeSitterParser implements ILanguageParser { private config; readonly extensions: string[]; private parser; constructor(config: TreeSitterLanguageConfig); canParse(filePath: string): boolean; private parse; parseFunctions(source: string, filePath: string): RawFunctionInfo[]; parseCalls(source: string, lineStart: number, lineEnd: number): RawCallInfo[]; parseImports(source: string, filePath: string): RawImportInfo[]; parseTypeRelationships(source: string, filePath: string): RawTypeRelationship[]; parseLocalVariables(source: string, lineStart: number, lineEnd: number): Array<{ name: string; type: string; }>; get testDecorators(): string[]; get testImportPrefixes(): string[]; get noiseTargets(): string[]; get builtinMethods(): string[]; get noisePatterns(): RegExp[]; get selfKeywords(): string[]; get constructorNames(): string[]; get returnTypePattern(): RegExp | null; get sourceRoots(): string[]; get workspaceManifests(): string[]; get workspaceManifestExtensions(): string[]; get indexFileNames(): string[]; resolveImportPath(modulePath: string, fromFile: string, projectRoot: string, pathExists: (workspaceRelativePath: string) => boolean): string | null; isExternalImport(modulePath: string): boolean; } export {}; //# sourceMappingURL=tree-sitter-parser.d.ts.map