import type { CacheEntryType, CacheValue, IncrementalCache, WithLastModified } from "@opennextjs/aws/types/overrides.js"; export declare const CACHE_DIR = "cdn-cgi/_next_cache"; export declare const NAME = "cf-static-assets-incremental-cache"; /** * This cache uses Workers static assets. * * It should only be used for applications that do NOT want revalidation and ONLY want to serve prerendered data. */ declare class StaticAssetsIncrementalCache implements IncrementalCache { readonly name = "cf-static-assets-incremental-cache"; /** * Reads a cache entry from the Workers static assets. * * @param key The cache key. * @param cacheType The type of the cache entry. * @returns The cache entry, or `null` when it does not exist, the key is invalid, or the read fails. * @throws {IgnorableError} When the `ASSETS` binding is not configured. */ get(key: string, cacheType?: CacheType): Promise> | null>; set(key: string, _value: CacheValue, cacheType?: CacheType): Promise; delete(): Promise; /** * Returns the URL of the asset holding the cache entry for `key`. * * The key is opaque and may contain characters that are meaningful in a URL (`%`, `$`, `?`, ...). * The asset server decodes each segment of the URL path to locate the file, and redirects when the * path is not in canonical form. Each segment is encoded the same way the asset server does so that: * - the decoded path is exactly the key, and can not resolve to a different entry, * - the URL is canonical, and the asset server serves the file without redirecting. * * @param key The cache key. * @param cacheType The type of the cache entry. * @returns The asset URL, or `null` when the key contains a `.` or `..` segment that the URL parser would resolve. * @throws {Error} When `cacheType` is "composable", which is not supported. */ protected getAssetUrl(key: string, cacheType?: CacheEntryType): string | null; } declare const _default: StaticAssetsIncrementalCache; export default _default;