/// import LRU = require("lru-cache"); import https = require("https"); import { Meta } from "./types"; declare type CachedMeta = { meta: Meta; etag?: string; timestamp: number; }; export declare class Cache { agent: https.Agent; cache: LRU>; logger: typeof console; registry: string; headers: Record; fetchCount: number; pendingRefreshes: LRU>; constructor({ maxSockets, cacheSize, logger, registry, headers, }?: { maxSockets?: number; cacheSize?: number; logger?: typeof console; registry?: string; headers?: Record; }); exists(qualified: string): Promise; refreshMeta(qualified: string, etag?: string): Promise; getMeta(qualified: string, requestedVersion?: string): Promise; export(): Promise>; import(data: Record): void; } export {};