import { LRUCache } from 'lru-cache'; import { type Request, type Response, type SerializableLruOptions, type Stats } from './messages.js'; type DistributiveOmit = T extends unknown ? Omit : never; export type ExecPayload = DistributiveOmit; type NonNullish = {}; type AnyCache = LRUCache; type DispatchContext = { workerId?: number; }; export declare const caches: Map; export declare const stats: Map; export declare const versions: Map; export declare function getNamespaceVersion(namespace: string): number; export declare function getOrCreateCache(namespace: string, options?: SerializableLruOptions): AnyCache; export declare function dispatchOp(namespace: string, payload: ExecPayload, context?: DispatchContext): unknown; export declare function dispatchAndBroadcast(namespace: string, payload: ExecPayload, context?: DispatchContext): { value: unknown; version: number; }; export declare function handleRequest(request: Request, context?: DispatchContext): Response; export declare function installClusterListener(): void; export {}; //# sourceMappingURL=primary.d.ts.map