export type FileChange = {
    filePath: string;
    additions: number;
    deletions: number;
};
export declare function basenameSafe(path: string): string;
export declare function parseUnifiedDiff(diffText?: string): FileChange[];
export declare function buildDiffTitleSegments(diffText?: string): {
    kind: "diff";
    fileName: string;
    filePath: string;
    additions: number;
    deletions: number;
}[];
export declare function extractDiffFilePaths(diffText?: string): string[];
export type FileDiffPreview = {
    filePath: string;
    original: string;
    modified: string;
};
export declare function buildFileDiffPreviews(diffText?: string): FileDiffPreview[];
