/** Cache mode for a route. */ export type CacheMode = "public" | "private" | "dynamic"; /** Cache policy declared by the route's data module. */ export interface CachePolicy { mode: CacheMode; revalidate: number; tags?: string[]; } /** Default cache policy when none is declared. */ export declare const DEFAULT_CACHE_POLICY: CachePolicy; /** * Normalizes a raw cache export from a data module into a CachePolicy. * Returns the default policy if the input is invalid or missing. */ export declare function normalizeCachePolicy(raw: unknown): CachePolicy; /** * Determines whether a route's cache policy allows public caching for the * given request. * * Per ยง9.1: * - "dynamic" โ†’ never cache * - "private" โ†’ never cache publicly (requires private adapter) * - "public" โ†’ cache only if request has no Cookie/Authorization */ export declare function shouldCachePublic(policy: CachePolicy, request: Request): boolean;