import { GlobalConfigInput } from '../config'; import { DefaultSchema, GetArgs, Keys } from './types'; export type GlobalCacheConfig = GlobalConfigInput; export declare class GlobalCache { #private; defineConfig(config: GlobalCacheConfig): void; get setup(): string; get teardown(): string; private get api(); /** * Get value by key or compute it if not found. */ get>(...args: GetArgs): Promise; /** * Fetch stale value. * - for non-persistant keys it would be the current value * - for persistent keys it would be the old value if it was changed during this run */ getStale>(key: K): Promise; /** * Fetch list of stale values by prefix. * - for non-persistant keys it would be the current value * - for persistent keys it would be the old value if it was changed during this run */ getStaleList(prefix: string): Promise; clearSession(): Promise; private computeValue; } export declare const globalCache: GlobalCache; //# sourceMappingURL=index.d.ts.map