import { Seconds } from '@cardano-sdk/core'; import NodeCache from 'node-cache'; export declare type Key = string | number; export declare type AsyncAction = () => Promise; export declare class InMemoryCache { protected cache: NodeCache; protected ttlDefault: number; constructor(ttl: Seconds | 0, cache?: NodeCache); get(key: Key, asyncAction: AsyncAction, ttl?: number): Promise; getVal(key: Key): T | undefined; set(key: Key, value: T, ttl?: number): boolean; invalidate(keys: Key | Key[]): void; keys(): string[]; shutdown(): void; clear(): void; } //# sourceMappingURL=InMemoryCache.d.ts.map