import type { FileAction, InitOptions } from './types.js'; /** * Check which rendered files already exist on disk. * * @param files - Map of relative path → generated content (cluster templates + CLI files). * @param gitRoot - Absolute path to the git repository root. * @returns Map of conflicting relative paths → existing file content. */ export declare function checkConflicts(files: Map, gitRoot: string): Map; /** * Print a unified diff between the existing and generated file content. * * Uses the `diff` package's `createTwoFilesPatch()` to produce a standard * unified diff with `--- existing` / `+++ generated` headers. * * @param path - Relative file path (used in the diff header). * @param existing - Current file content on disk. * @param generated - New content that would be written. */ export declare function showDiff(path: string, existing: string, generated: string): void; /** * Resolve per-file actions for all rendered files, handling conflicts. * * - Non-conflicting files → `'overwrite'` (create new). * - `--force` flag → all conflicts → `'overwrite'`. * - Files in `MERGE_FILES` → `'merge'` (smart merge handled upstream by * `generateExtensionsJson` in the init flow). * - Otherwise → interactive per-file prompt: Overwrite / Skip / Show diff. * * @param files - Map of relative path → generated content. * @param conflicts - Map of conflicting relative paths → existing content. * @param options - Resolved init options (uses `force` and `yes` flags). * @returns Map of relative path → resolved `FileAction`. */ export declare function resolveConflicts(files: Map, conflicts: Map, options: InitOptions): Promise>; //# sourceMappingURL=conflicts.d.ts.map