/** * Diff formatting helpers for Pi hoisted tool renderers. * * Mirrors the output shape Pi's built-in `renderDiff` expects: * "+NN content" for added lines * "-NN content" for removed lines * " NN content" for context lines * " NN ..." for context truncation markers * * We don't re-export Pi's internal `generateDiffString` because it isn't * public. Reimplementing it as a thin wrapper around the `diff` npm package * (also used by Pi itself) is ~40 lines and keeps us decoupled from Pi's * private internals. */ export interface FormattedDiff { diff: string; firstChangedLine: number | undefined; } /** * Generate a line-numbered diff string suitable for Pi's `renderDiff`. * Matches the format of Pi's built-in edit tool result. */ export declare function formatDiffForPi(oldContent: string, newContent: string, contextLines?: number): FormattedDiff; //# sourceMappingURL=diff-format.d.ts.map