/** * Restore swap and slot bookkeeping (ADR-0001 "Backup Port", B5 steps 6-8). * Renames only: callers check that all paths share one filesystem. */ import { rename } from 'node:fs/promises'; /** One path to replace: `staged` moves in, the current `live` moves to the slot. */ export interface RestoreTarget { live: string; staged: string | null; } /** Filesystem calls of the swap; tests replace `rename` to inject failures. */ export declare const fsOps: { rename: typeof rename; }; /** Moves live → slot and staged → live; rolls back in reverse on failure (K2, R4). */ export declare function swapIntoPlace(root: string, oid: string, targets: RestoreTarget[], stamp: string): Promise; export declare function incompleteSlots(root: string): Promise; export declare function rotateSlots(root: string): Promise; export declare function cleanStaging(root: string): Promise; //# sourceMappingURL=restore-slots.d.ts.map