type Identity = Readonly<{ device: string; inode: string; }>; type PlannedFile = Readonly<{ role: string; path: string; length: number; sha256: string; }>; export type MetalPublicationPlan = Readonly<{ renameMode: "excl"; expectedDestination: "missing"; }> | Readonly<{ renameMode: "replace-empty"; expectedDestination: "empty"; oldDestination: Identity; }> | Readonly<{ renameMode: "swap"; expectedDestination: "owned"; oldDestination: Identity; oldModuleName: string; oldRecordSHA256: string; oldFiles: readonly PlannedFile[]; ownership: Readonly<{ ownerConfiguration: string; configuration: Identity; }>; }>; /** Recognize owned plan metadata; filesystem checks still determine publication authority. */ export declare function parseMetalPublicationPlan(value: unknown, parent: Identity, stage?: Identity): MetalPublicationPlan | undefined; /** Metadata recognition is not integrity, publication-outcome, or cleanup authority. */ export interface InterruptedMetalPublication { readonly transactionId: string; readonly phase: "intent" | "staging" | "prepared"; readonly parent: Identity; readonly destinationName: string; readonly outputPath: string; readonly moduleName: string; readonly stage?: Identity & Readonly<{ name: string; }>; readonly publication?: MetalPublicationPlan; } export interface MetalPublicationRecoveryReport { readonly transaction?: InterruptedMetalPublication; /** Validated metadata only; the live publisher must join this to its original receipt. */ readonly prepared?: Readonly<{ recordSHA256: string; files: readonly Readonly<{ role: string; path: string; length: number; sha256: string; }>[]; }>; readonly recoveryPaths: readonly string[]; } /** Decode only the fixed read-only recovery branch, with a bounded outstanding frame. */ export declare function readMetalPublicationRecovery(header: Record, receive: () => Promise>, parentPath: string, mode?: "recovery" | "reconciliation"): Promise; export {}; //# sourceMappingURL=publication-recovery.d.ts.map