import type { CacheBackend } from "../../cache/types.js"; export interface ReleaseModuleResponseCacheEntry { body: string; status: number; headers: Array<[string, string]>; } export interface ReleaseModuleResponseCacheKeyOptions { projectIdentity: string; projectDir: string; projectSlug?: string | null; branch?: string | null; releaseId: string; runtimeVersion: string; reactVersion?: string; dependencyPinningCacheKey?: string; moduleServerOrigin?: string; releaseDependencyManifestVersion?: number | null; serverExternalPackages?: readonly string[]; modulePath: string; } export interface ReleaseModuleResponseCacheHit { entry: ReleaseModuleResponseCacheEntry; source: "memory" | "distributed"; } export declare function buildReleaseModuleResponseCacheKey(options: ReleaseModuleResponseCacheKeyOptions): string; export declare function getReleaseModuleResponse(cacheKey: string): Promise; export declare function rememberReleaseModuleResponse(cacheKey: string, entry: ReleaseModuleResponseCacheEntry): Promise; export declare function clearReleaseModuleResponseCache(): void; export declare function __setReleaseModuleResponseDistributedCacheForTests(cache: CacheBackend | null | undefined): void; //# sourceMappingURL=module-response-cache.d.ts.map