import type { AgentSystemBlueprint } from "./agent-blueprint.js"; export interface BlueprintWriteTransaction { rollback(): void; finalize(): void; } /** * Stage every generated file before replacing anything. Existing files are * renamed to backups during commit and retained until finalize(), allowing the * caller to roll the whole system back when registry reload/validation fails. */ export declare function writeBlueprintFilesAtomically(targetAgentDir: string, blueprint: AgentSystemBlueprint): BlueprintWriteTransaction;