/** * Go language adapter using tree-sitter-go WASM parser. * * Provides real AST-based analysis for Go source files. Replaces the previous * regex-based stub that returned empty arrays for most queries. */ import type { AST, ASTNode, ClassInfo, ExportInfo, FunctionInfo, ImportInfo, InterfaceInfo, LanguageAdapter, NodePattern, SourceLocation } from '../types.js'; export declare class TreeSitterGoAdapter implements LanguageAdapter { readonly name = "go"; readonly fileExtensions: string[]; supportsFile(filePath: string): boolean; parse(filePath: string, content: string): Promise; findNodes(ast: AST, pattern: NodePattern): ASTNode[]; getParent(node: ASTNode): ASTNode | null; getChildren(node: ASTNode): ASTNode[]; getSiblings(node: ASTNode): ASTNode[]; getNodeType(node: ASTNode): string; getNodeText(node: ASTNode, sourceCode: string): string; getNodeName(node: ASTNode): string | null; getNodeLocation(node: ASTNode): SourceLocation; extractFunctions(ast: AST): FunctionInfo[]; extractClasses(ast: AST): ClassInfo[]; extractImports(ast: AST): ImportInfo[]; extractExports(ast: AST): ExportInfo[]; isClass(node: ASTNode): boolean; isFunction(node: ASTNode): boolean; isMethod(node: ASTNode): boolean; isInterface(node: ASTNode): boolean; isImport(node: ASTNode): boolean; isExport(node: ASTNode): boolean; isLoop(node: ASTNode): boolean; isConditional(node: ASTNode): boolean; isVariableDeclaration(node: ASTNode): boolean; getTypeInfo(node: ASTNode): string | null; getDocumentation(node: ASTNode): string | null; getComplexity(node: ASTNode): number; extractInterfaces(ast: AST): InterfaceInfo[]; extractRawImports(_filePath: string, content: string): Array<{ moduleSpecifier: string; isStatic: boolean; isDynamic: boolean; isRequire: boolean; line: number; }>; extractExportedSymbols(ast: AST): Array<{ name: string; line: number; }>; private walk; private walkRaw; private collectErrors; private matchesPattern; private extractName; private extractDocumentation; private cleanCommentText; private calculateComplexity; private getOperator; private buildFunctionInfo; private buildStructAsClass; private buildImportInfo; private buildInterfaceInfo; private extractParameters; private isExportedGo; private getReceiverType; private getReturnType; private findNamedChildren; } //# sourceMappingURL=GoAdapter.d.ts.map