import type { ICache } from '@citrineos/base'; import type { ClassConstructor } from 'class-transformer'; /** * Implementation of cache interface with memory storage */ export declare class MemoryCache implements ICache { private _cache; private _keySubscriptionMap; private _keySubscriptionPromiseMap; private _timeoutMap; constructor(); exists(key: string, namespace?: string): Promise; existsAnyInNamespace(namespace: string): Promise; remove(key: string, namespace?: string): Promise; onChange(key: string, waitSeconds: number, namespace?: string, classConstructor?: () => ClassConstructor): Promise; get(key: string, namespace?: string, classConstructor?: () => ClassConstructor): Promise; set(key: string, value: string, namespace?: string, expireSeconds?: number): Promise; setIfNotExist(key: string, value: string, namespace?: string, expireSeconds?: number): Promise; updateExpiration(key: string, expireSeconds: number, namespace?: string): Promise; private resolveOnChange; }