/** Provider-neutral runtime support for atomic cache revisions. */ import type { CacheBackend, CacheRevisionSnapshot, RevisionedCacheBackend } from "./types.js"; /** Reserved logical-key namespace for revisioned Veryfront cache entries. */ export declare const REVISIONED_CACHE_KEY_PREFIX = "vf:revisioned:v1:"; /** Maximum source-key length before the reserved namespace is added. */ export declare const MAX_REVISIONED_CACHE_SOURCE_KEY_LENGTH: number; type CapturedRevisionMethods = Readonly<{ getWithRevision: RevisionedCacheBackend["getWithRevision"]; compareExchange: RevisionedCacheBackend["compareExchange"]; }>; /** * Capture the complete optional method group without invoking accessors or * reading properties. This helper is internal to core and intentionally is * not re-exported from cache barrels. * * @internal */ export declare function captureRevisionedCacheBackendMethods(backend: unknown): CapturedRevisionMethods | null; /** Test whether a backend exposes the complete atomic revision capability. */ export declare function isRevisionedCacheBackend(backend: CacheBackend): backend is RevisionedCacheBackend; /** Validate and detach a provider-returned revision snapshot. */ export declare function snapshotCacheRevisionResult(value: unknown): CacheRevisionSnapshot; /** Validate a provider-returned compare-exchange result. */ export declare function requireCacheExchangeResult(value: unknown): boolean; /** Add the reserved versioned namespace to one valid source key. */ export declare function buildRevisionedCacheKey(key: string): string; /** Test whether a key belongs to the valid revisioned-key builder image. */ export declare function isRevisionedCacheKey(key: unknown): key is string; export {}; //# sourceMappingURL=capabilities.d.ts.map