import type { RuntimeMemoReadKeyInput, StoreRuntimeMemo } from "./types.js"; interface StoreMemoCacheFacade { deleteByEntity(entity: unknown): void; deleteByEntityAsync(entity: unknown): Promise; entityVersion(entity: unknown): number; get(key: string): Promise; getAsync(key: string, entity?: string): Promise; inspectRead(key: string, entity?: string): ReturnType; keyForRead(input: StoreMemoCacheReadKeyInput): string; run(key: string, entity: unknown, loader: () => Promise | T): Promise; setCacheValue(key: string, entity: unknown, value: unknown, options?: StoreMemoCacheSetOptions): void; setCacheValueAsync(key: string, entity: unknown, value: unknown, options?: StoreMemoCacheSetOptions): Promise; } type StoreMemoCacheReadKeyInput = Partial & { ctx?: RuntimeMemoReadKeyInput["context"]; op?: RuntimeMemoReadKeyInput["operation"]; opts?: RuntimeMemoReadKeyInput["options"]; }; interface StoreMemoCacheSetOptions { ttlMs?: number; version?: number; } declare function createStoreMemoCache(memo: StoreRuntimeMemo): StoreMemoCacheFacade; export { createStoreMemoCache, }; export type { StoreMemoCacheFacade, StoreMemoCacheReadKeyInput, StoreMemoCacheSetOptions, }; //# sourceMappingURL=cache.d.ts.map