import type { FileAction, FileResult } from './types.js'; /** * Write rendered template files to disk, respecting per-file actions and dry-run mode. * * @param files - Map of relative path → generated content (from `renderProject`). * @param actions - Map of relative path → resolved `FileAction` (from `resolveConflicts`). * @param gitRoot - Absolute path to the git repository root. * @param dryRun - When true, record actions without writing to disk. * @returns Array of `FileResult` describing what happened to each file. */ export declare function writeFiles(files: Map, actions: Map, gitRoot: string, dryRun: boolean): Promise; /** * Collect existing files that support smart merge via `renderProject`. * * Currently reads `.vscode/extensions.json` if present, so the template engine * can merge existing VS Code extension recommendations with generated ones. * * @param gitRoot - Absolute path to the git repository root. * @returns Map of relative path → existing file content. */ export declare function collectExistingFiles(gitRoot: string): Map; //# sourceMappingURL=writer.d.ts.map