/** * Extract code context around search results */ import type { EnhancedSearchResult } from './types.js'; export interface ContextOptions { linesBefore?: number; linesAfter?: number; includeLineNumbers?: boolean; } /** * Extract context around code blocks */ export declare class ContextExtractor { private basePath; constructor(basePath: string); /** * Add context to search results */ addContext(results: EnhancedSearchResult[], options?: ContextOptions): Promise; /** * Extract context lines from file */ private extractContext; /** * Extract full function/class containing the line */ extractFullBlock(file: string, startLine: number, endLine: number): Promise; /** * Highlight query matches in context */ highlightMatches(text: string, query: string): string; /** * Escape regex special characters */ private escapeRegex; /** * Get line range for a result */ getLineRange(result: EnhancedSearchResult): { start: number; end: number; }; } //# sourceMappingURL=context-extractor.d.ts.map