export interface Hunk {
    header: string;
    originalStartLine: number;
    originalLineCount: number;
    newStartLine: number;
    newLineCount: number;
    lines: string[];
    additions: string[];
    subtractions: string[];
    contextLines: string[];
}
export declare function parseHunks(patch: string): Hunk[];
export declare function hunksToPatch(hunks: Hunk[]): string;
export declare function hunkIsEmpty(hunk: Hunk): boolean;
export declare function fixPatch(originalContent: string, patch: string): string;
export declare function savePatchError(originalPatch: string, fixedPatch: string | null, fileContent: string, errorMsg: string): Promise<void>;
export declare function patchFile(filePath: string, patch: string): Promise<string>;
export declare function categorizeHunks(originalContent: string, patch: string): {
    validHunks: Hunk[];
    invalidHunks: Hunk[];
};
