import type { CacheEntryType, CacheValue } from "@opennextjs/aws/types/overrides.js"; export type IncrementalCacheEntry = { value: CacheValue; lastModified: number; }; export declare const debugCache: (name: string, ...args: unknown[]) => void; export declare const FALLBACK_BUILD_ID = "no-build-id"; export declare const DEFAULT_PREFIX = "incremental-cache"; export type KeyOptions = { cacheType?: CacheEntryType; prefix: string | undefined; buildId: string | undefined; }; export declare function computeCacheKey(key: string, options: KeyOptions): string; export declare function isPurgeCacheEnabled(): boolean; /** Outcome of a Cloudflare cache purge API request. */ export type PurgeCacheStatus = "purge-success" | "missing-credentials" | "rate-limit-exceeded" | "purge-failed"; /** Outcome of a Cloudflare cache purge API request with a failure description. */ export type PurgeCacheResult = { status: "purge-success"; } | { status: Exclude; message: string; }; /** * Requests a Cloudflare cache purge for the provided tags without logging failures. * * Callers are responsible for reporting failures, either by logging or by rejecting. * * @param env Cloudflare environment containing the zone ID and API token. * @param tags Cache tags to purge. * @returns The purge status and, on failure, a description of the error. */ export declare function requestPurgeCacheByTags(env: CloudflareEnv, tags: string[]): Promise; /** * Purges Cloudflare cache entries associated with the provided tags. * * This calls the Cloudflare cache purge API directly, logs failures, and reports the outcome as a status value. * * @param env Cloudflare environment containing the zone ID and API token. * @param tags Cache tags to purge. * @returns The purge outcome: success, missing credentials, rate limiting, or failure. */ export declare function internalPurgeCacheByTags(env: CloudflareEnv, tags: string[]): Promise;