/** * Smart Context - automatically gather relevant files for better understanding */ import { ProjectContext } from './project'; export interface RelatedFile { path: string; relativePath: string; reason: string; priority: number; content?: string; size: number; } export interface SmartContextResult { files: RelatedFile[]; totalSize: number; truncated: boolean; } /** * Clear the import resolution cache (useful between invocations in tests). */ export declare function clearImportResolutionCache(): void; /** * Gather smart context for a target file or task */ export declare function gatherSmartContext(targetFile: string | null, projectContext: ProjectContext, taskDescription?: string): SmartContextResult; /** * Format smart context for system prompt */ export declare function formatSmartContext(context: SmartContextResult): string; /** * Extract target file from task description */ export declare function extractTargetFile(task: string): string | null;