import { PromiseSub } from "./promise"; declare enum CachePayLoadStatus { NONE = 0, DATA = 1, PROMISE = 2 } export declare type CachePayLoad = { status: CachePayLoadStatus; data?: any; promise?: Promise<[any, string[]]>; }; interface CacheConstructorOptions { cachePath: string; } interface CacheOptions { timeout?: number; tags?: string[]; persistanceType?: "mem" | "fs"; } export declare class Cache { private caches; private promises; private keyIdMap; private tagKeysGroup; private keyIdCounter; private cachePath; private static paths; constructor(options: CacheConstructorOptions); private ClearById; private keyToId; private GetCacheById; private SetCacheById; private PromiseCacheById; private CreatePromiseById; Clear(key: string): void; ClearByTag(tag: string): void; GetCache(key: string): CachePayLoad; SetCache(key: string, data: any, options: CacheOptions): void; GetCacheOrPromise(key: string, options?: CacheOptions): Promise>; } export {};