import type { Cache } from '../types/cache.js';
/**
 * A cache using local memory.
 */
export declare class MemoryCache implements Cache {
    private readonly timeToLiveInSeconds;
    private static readonly maxEntries;
    private readonly cache;
    /**
     * @param timeToLiveInSeconds time-to-live for every key-value pair set in the cache
     */
    constructor(timeToLiveInSeconds: number);
    set<T = unknown>(key: string, value: T): Promise<void>;
    get<T = unknown>(key: string): Promise<T | undefined>;
    private evictOldestEntries;
}
//# sourceMappingURL=memory-cache.d.ts.map