export type WriteMode = "ask" | "force" | "skip" | "append"; export interface WriteOptions { mode: WriteMode; } export declare function setWriteMode(mode: WriteMode): void; export declare function getWriteMode(): WriteMode; /** * Write file with conflict handling * - If file doesn't exist: write directly * - If file exists and content is identical: skip silently * - If file exists and mode is 'force': overwrite * - If file exists and mode is 'skip': skip * - If file exists and mode is 'append': append to end * - If file exists and mode is 'ask': prompt user */ export declare function writeFile(filePath: string, content: string, options?: { executable?: boolean; }): Promise; /** * Ensure directory exists */ export declare function ensureDir(dirPath: string): void; //# sourceMappingURL=file-writer.d.ts.map