import type { RDAPResponse } from '../../shared/types'; import type { ICache } from './CacheManager'; export declare class StaleWhileRevalidateCache implements ICache { private readonly entries; private readonly maxSize; private readonly revalidateCallback?; constructor(maxSize?: number, revalidateCallback?: (key: string, freshValue: RDAPResponse) => void); get(key: string): Promise; set(key: string, value: RDAPResponse, ttl?: number): Promise; delete(key: string): Promise; clear(): Promise; has(key: string): Promise; size(): Promise; private evictOldest; } //# sourceMappingURL=StaleWhileRevalidateCache.d.ts.map