import type { StablePromotionDirectory } from './runtime-promotion-filesystem-io.js'; import type { RuntimePromotionFilesystemDependencies, RuntimePromotionFilesystemMutation } from './runtime-promotion-filesystem-types.js'; export type ExactMarkerInspection = { readonly status: 'absent'; } | { readonly status: 'exact'; } | { readonly status: 'partial-prefix'; } | { readonly status: 'mismatch'; }; export declare function readStablePromotionMarkerContent(markerPath: string): string; /** Stable no-follow digest for a journal-bound cache marker. */ export declare function digestStablePromotionFile(path: string, maxBytes: number): string; export declare function inspectExactPromotionMarker(markerPath: string, expectedContent: string): ExactMarkerInspection; export declare function publishPromotionMarker(parent: StablePromotionDirectory, markerPath: string, content: string, dependencies: RuntimePromotionFilesystemDependencies, operation: RuntimePromotionFilesystemMutation, revalidateBeforeCreate?: () => void): void; /** * Turn exact bytes observed after a prior crash into a fresh durability * barrier before the marker authorizes any destructive continuation. */ export declare function ensureDurableExactPromotionMarker(parent: StablePromotionDirectory, markerPath: string, expectedContent: string, dependencies: RuntimePromotionFilesystemDependencies): void; export declare function removeExactPromotionMarker(parent: StablePromotionDirectory, markerPath: string, expectedContent: string, dependencies: RuntimePromotionFilesystemDependencies, operation?: RuntimePromotionFilesystemMutation): boolean; export declare function removePartialPromotionMarker(parent: StablePromotionDirectory, markerPath: string, expectedContent: string, dependencies: RuntimePromotionFilesystemDependencies): void; //# sourceMappingURL=runtime-promotion-filesystem-marker-io.d.ts.map