/** * The memory cache utilities. */ export declare class MemoryCache { private readonly caches; private readonly cacheSize; constructor(cacheSize?: number); set(key: string, val: T): void; get(key: string): T | undefined; get(key: string, getDefault?: () => Promise | T): Promise; delete(key: string): void; clear(): void; private first; private getContextCache; }