export declare type CacheKey = { [keyName: string]: CacheKey; } | CacheKey[] | string | number | boolean | Date; export interface ObjectCacheMethod { (argument: { objectId: string; cacheKey: CacheKey; cacheDurationMs?: number; lock?: boolean; read?: boolean; write?: boolean; passthru?: boolean; }, methodToGetValue: { (): Promise; }): Promise; } export interface ObjectCacheInvalidateMethod { (argument: { objectId: string; }): Promise; } export declare function makeBaseCacheKey({ objectId, cacheKey, }: { objectId: string; cacheKey: CacheKey; }): string; export declare const objectCacheInvalidate: ObjectCacheInvalidateMethod; export declare const objectCache: ObjectCacheMethod;