import type { RuntimeManifestIdentity, VerifiedRuntimeManifest } from './runtime-manifest.js'; import type { RuntimePromotionFilesystemCapabilityState } from './runtime-promotion-filesystem-authority.js'; import type { StablePromotionDirectory } from './runtime-promotion-filesystem-io.js'; /** Validate one optional manifest identity against its journal projection. */ export declare function assertRollbackIdentity(recorded: RuntimeManifestIdentity | null, expected: RuntimeManifestIdentity | null, description: string): void; /** Remove an operation-created runtime stage after proving its exact ownership. */ export declare function removeCreatedParentStage(state: RuntimePromotionFilesystemCapabilityState, parent: StablePromotionDirectory, expected: RuntimeManifestIdentity | null): boolean; /** Remove an installed runtime exactly once and settle its rollback marker. */ export declare function rollbackInstalledState(state: RuntimePromotionFilesystemCapabilityState, parent: StablePromotionDirectory, installed: RuntimeManifestIdentity, backup: RuntimeManifestIdentity | null): boolean; /** Restore or validate the exact pre-install destination backup. */ export declare function restoreDestinationBackup(state: RuntimePromotionFilesystemCapabilityState, parent: StablePromotionDirectory, expected: RuntimeManifestIdentity): { readonly restored: VerifiedRuntimeManifest; readonly changed: boolean; }; //# sourceMappingURL=runtime-promotion-filesystem-rollback-runtime.d.ts.map