export declare enum ECacheContext { Translations = 0, LabelInfo = 1, WSAPI = 2 } export declare class OCache { private static cache; private static init; static get(oKey: any, cacheContext: ECacheContext): T | undefined; static set(oKey: any, o: any, cacheContext: ECacheContext, ttlSeconds?: number): void; static use(oKey: any, cacheContext: ECacheContext, f: () => Promise, ttlSeconds?: number): Promise; static clear(cacheContext: ECacheContext, oKey: any): Promise; /** * Remove every entry whose string key starts with `oKeyBase` — the bare key * AND all per-parameter composite variants (`${oKeyBase}:…` / `${oKeyBase}`). * Use when a cache is keyed per parameter (paginated, per-template, per-window): * an exact-key `clear(oKeyBase)` would miss every variant. `oKeyBase` must be a string. */ static clearByPrefix(cacheContext: ECacheContext, oKeyBase: string): Promise; static clearContext(cacheContext: ECacheContext): Promise; static clearAll(): Promise; }