import type { ReanchoredLine } from "./types.ts"; import { myersDiff } from "./myers-diff.ts"; /** * Myers diff operation types */ export type DiffOp = "equal" | "insert" | "delete"; /** * A single diff operation in the edit script */ export interface DiffEntry { op: DiffOp; oldLine?: number; newLine?: number; content: string; } /** * Number of context lines around each hunk in unified diff output. */ export declare const UNIFIED_DIFF_CONTEXT = 3; export { myersDiff }; /** * Re-anchor changed lines after an edit. */ export declare function reanchorChangedLines(oldLines: string[], newLines: string[], hashWidth: number): ReanchoredLine[]; /** * Generate a unified diff (like `git diff`) between two file contents. */ export declare function generateUnifiedDiff(oldContent: string, newContent: string, filePath: string): string; /** * Count additions and deletions from a diff. */ export declare function countLineDiffs(oldContent: string, newContent: string): { additions: number; deletions: number; }; //# sourceMappingURL=diff.d.ts.map