/** * Unified Diff Generator * * Simple utility for generating unified diff format without external dependencies. * Used by dry-run mode to preview file changes. */ export interface DiffResult { /** Lines added */ additions: number; /** Unified diff text */ diffText: string; /** Lines deleted */ deletions: number; /** Whether there are any changes */ hasChanges: boolean; } /** * Generate a unified diff between old and new content * * @param oldContent - Original file content * @param newContent - New file content * @param filePath - Path to the file (for header) * @returns DiffResult with unified diff format */ export declare function generateUnifiedDiff(oldContent: string, newContent: string, filePath: string): DiffResult; /** * Format a diff result for console display * * @param diff - The diff result to format * @param filePath - Path to the file * @returns Formatted string with ANSI colour codes */ export declare function formatDiffForDisplay(diff: DiffResult, filePath: string): string; /** * Create a diff result for a new file */ export declare function createNewFileDiff(content: string, filePath: string): DiffResult; /** * Create a diff result for a deleted file */ export declare function createDeletedFileDiff(content: string, filePath: string): DiffResult; //# sourceMappingURL=diff-generator.d.ts.map