/** Shared current-state and transition policy for every write-ahead mutation kind. */ import type { RuntimePromotionIntentKind, RuntimePromotionJournal, RuntimePromotionPendingIntent } from './runtime-promotion-journal-types.js'; declare const FORWARD_PHASES: readonly ["prepared", "source-verified", "destination-verified", "authored-prepared", "destination-ready", "runtime-staged", "destination-backed-up", "runtime-installed", "authored-committed", "source-retired", "authority-verified", "committed"]; declare const ROLLBACK_PHASES: readonly ["rollback-started", "runtime-rolled-back", "authored-rolled-back", "rolled-back"]; export declare function forwardPhaseAtLeast(actual: RuntimePromotionJournal['progress']['phase'], minimum: (typeof FORWARD_PHASES)[number]): boolean; export declare function rollbackPhaseAtLeast(actual: RuntimePromotionJournal['progress']['phase'], minimum: (typeof ROLLBACK_PHASES)[number]): boolean; export declare function runtimePromotionDestinationParentReady(journal: RuntimePromotionJournal): boolean; /** Static phase evidence makes a standalone canonical receipt fail closed. */ export declare function runtimePromotionPhaseEvidenceAllowed(journal: RuntimePromotionJournal): boolean; export declare function runtimePromotionRouteAllows(journal: RuntimePromotionJournal, kind: RuntimePromotionIntentKind): boolean; /** A freshly durable intent must describe a legal current phase and no performed create. */ export declare function runtimePromotionPendingIntentAllowed(journal: RuntimePromotionJournal, intent: RuntimePromotionPendingIntent): boolean; /** Exact phase that the matching postcondition must publish. */ export declare function runtimePromotionPostconditionPhaseAllowed(previous: RuntimePromotionJournal, next: RuntimePromotionJournal, intent: RuntimePromotionPendingIntent): boolean; export {}; //# sourceMappingURL=runtime-promotion-intent-policy.d.ts.map