//#region src/utils/cacheMemory.d.ts /** Public stringify kept for convenience / debugging (now faster & broader). */ declare const stableStringify: (value: unknown, _stack?: WeakSet) => string; /** Compute a compact, stable id for arbitrary key tuples. */ declare const computeKeyId: (keyParts: unknown[]) => string; /** ------------------------- In-memory cache ------------------------- **/ type CacheKey = unknown; declare const getCache: (...key: CacheKey[]) => T | undefined; type CacheSetArgs = [...keys: CacheKey[], value: T]; declare const setCache: (...args: CacheSetArgs) => void; declare const clearCache: (idOrKey: string) => void; declare const clearAllCache: () => void; declare const cacheMemory: { get: (...key: CacheKey[]) => T | undefined; set: (...args: CacheSetArgs) => void; clear: (idOrKey: string) => void; }; //#endregion export { CacheKey, cacheMemory, clearAllCache, clearCache, computeKeyId, getCache, setCache, stableStringify }; //# sourceMappingURL=cacheMemory.d.ts.map