/**
 * File writer — handles writing a single template file with
 * overwrite/lock logic, binary copy, and .origin file creation.
 *
 * Preservation regions: when a file has AURORA:<NAME>-START/END markers,
 * per-region hashes in the lockfile decide (on regeneration) whether to
 * propagate template improvements or to preserve the user's custom body.
 */
import type { FileLogger, GenerateOptions, GenerationResult } from './file-manager.js';
export interface WriteContext {
    result: GenerationResult;
    targetBasePath: string;
    targetRelativePath: string;
}
export declare function writeFile(logger: FileLogger, originFilePath: string, file: string, options: GenerateOptions, ctx: WriteContext): Promise<void>;
