/** * Exact, read-only cache-marker classifier shared by Init preflight and status. * * Core's general cache reader is intentionally tolerant for ordinary no-Init * operation. Adoption authority is stricter: the marker must have the exact * versioned/legacy shape and pass the same anchored owner-controlled read used * by transactional Init. */ import { type EphemeralMarker, type EphemeralProjectPaths, type LegacyEphemeralMarker } from '@opensip-cli/core'; export type RuntimePromotionParsedMarker = { readonly kind: 'current'; readonly marker: EphemeralMarker; } | { readonly kind: 'legacy'; readonly marker: LegacyEphemeralMarker; }; export interface RuntimePromotionMarkerRecord { readonly marker: RuntimePromotionParsedMarker; readonly sha256: string; } /** Parse only the exact marker shapes that Init may nominate as authority. */ export declare function parseRuntimePromotionMarker(raw: string): RuntimePromotionParsedMarker | undefined; /** True only for the active marker bound to the current cache generation. */ export declare function currentRuntimePromotionMarkerMatches(marker: EphemeralMarker, paths: EphemeralProjectPaths): boolean; /** * Read and classify one candidate through Init's exact anchored trust posture. * Invalid, missing, unsafe, or concurrently replaced records are all * non-selectable; callers expose only that bounded fact. */ export declare function readRuntimePromotionMarkerRecord(runtimeDir: string): RuntimePromotionMarkerRecord | undefined; //# sourceMappingURL=runtime-promotion-marker.d.ts.map