interface ReplaceDiffItem { path?: string | undefined; diff: string; } export interface PathedDiffItem { path?: string | undefined; diff: string; } export declare function joinReplaceDiffs(obj: Record): string | undefined; export declare function splitReplaceDiffs(obj: Record): ReplaceDiffItem[]; export declare function countUnifiedDiffChanges(diff: string): { added: number; removed: number; }; export declare function collectMultiFileDiffItems(toolName: string, output: string, _input?: unknown | undefined): PathedDiffItem[] | undefined; /** * Recover the unified-diff body from a serialized tool-output string. * * The tool-output serializer renders edit/diff/write results as a header * line (e.g. `edit (path=...)`) followed by the raw unified diff. Feeding * the whole string to `parseUnifiedDiff` would mis-read the header as a * context line and skew the hunk line counters, so we slice from the first * genuine diff marker (`--- `, `diff --git`, or `@@`). */ export declare function extractUnifiedDiffText(text: string): string | undefined; export declare function newFileDiffFromWriteInput(output: Record, input: unknown): string | undefined; export {}; //# sourceMappingURL=code-block-diff-helpers.d.ts.map