export type TuiFileChange = { kind: 'add' | 'delete' | 'update'; path: string; movePath?: string; unifiedDiff: string; added: number; removed: number; }; export type TuiPatchSummary = { files: TuiFileChange[]; added: number; removed: number; }; export declare function isDiffFriendlyTool(toolName: string): boolean; export declare function looksLikeUnifiedDiff(text: string): boolean; /** Colorize unified diff lines for terminal display. */ export declare function renderUnifiedDiff(text: string, maxLines?: number): string; export declare function parseUnifiedPatch(text: string): TuiPatchSummary | null; export declare function renderPatchSummary(text: string, maxLines?: number): string | null;