import type { FleetManifest } from "./manifest.js"; export interface ManifestProvenance { command: string; goal: string; critique: boolean; childCount: number; timestamp: string; } export interface WriteManifestArgs { outPath: string; manifest: FleetManifest; provenance: Omit; log?: (msg: string) => void; now?: () => number; } /** * Atomically write a fleet manifest to outPath, emit a provenance sidecar, * and (on overwrite) preserve the prior manifest as .bak and log * an informative notice. * * Steps: * 1. ensureDir(dirname(outPath)) * 2. Check if outPath already exists * 3. If exists: tolerantly read+parse .meta.json (missing/corrupt → null), * rename outPath to .bak, log notice * 4. Atomically write new manifest via tmp+rename * 5. Write provenance sidecar to .meta.json */ export declare function writeManifestWithProvenance(args: WriteManifestArgs): Promise; //# sourceMappingURL=manifest-write.d.ts.map