import { Cache, type CacheQueryOptions } from "./index.js"; /** * Handle cache response/error messages from main thread. * Called by worker.ts when receiving cache:response or cache:error messages. */ export declare function handleCacheResponse(message: any): void; /** * Configuration options for PostMessageCache */ export interface PostMessageCacheOptions { /** Timeout for cache operations in milliseconds (default: 30000) */ timeout?: number; } /** * Worker-side cache that forwards operations to main thread via postMessage. * Used for MemoryCache in multi-worker environments so all workers share state. */ export declare class PostMessageCache extends Cache { #private; constructor(name: string, options?: PostMessageCacheOptions); match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; put(request: RequestInfo | URL, response: Response): Promise; delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise; clear(): Promise; }