type UpdateFileChunk = { changeContext?: string; oldLines: string[]; newLines: string[]; isEndOfFile: boolean; }; export declare function applyUpdateHunk(filePath: string, chunks: UpdateFileChunk[]): Promise; /** * Pure variant of {@link applyUpdateHunk} that works on already-read contents, * so callers can validate/compute a patch against an in-memory view (e.g. a * two-phase atomic apply) without reading from disk. */ export declare function applyUpdateHunkToContents(originalContents: string, filePath: string, chunks: UpdateFileChunk[]): string; export {};