/** * Semantic code search using TF-IDF scoring. * No external model dependencies — works offline, instant startup. * * Answers queries like "find authentication logic" or "error handling code" * by matching against function names, comments, imports, and string literals. */ interface SemanticResult { file: string; startLine: number; endLine: number; score: number; snippet: string; matchedTerms: string[]; } /** * Perform semantic search across files. * @param files - List of file paths to search. * @param query - The search query string. * @param cwd - The working directory. * @param maxResults - Maximum number of results to return. * @returns Ranked search results with scores and snippets. */ export declare function semanticSearch(files: string[], query: string, cwd: string, maxResults?: number): Promise; export {}; //# sourceMappingURL=semantic.d.ts.map