export interface PatchHunk { type: 'add' | 'update' | 'delete'; path: string; lines: PatchLine[]; } export interface PatchLine { op: '+' | '-' | ' ' | 'context_marker'; text: string; } export interface ParsedPatch { hunks: PatchHunk[]; errors: string[]; } export declare function parsePatch(raw: string): ParsedPatch; export declare function applyUpdateHunk(original: string, hunk: PatchHunk): { result: string; error?: string; }; export declare function extractAddContent(hunk: PatchHunk): string; //# sourceMappingURL=apply-patch-core.d.ts.map