import crypto from "crypto"; type Fetch = typeof fetch; export interface KeyCache { get(k: KT): Promise | VT | null | undefined; set(k: KT, v: VT): void; } export type KeyFetcher = (version: string) => Promise; export interface KeyFetcherOptions { baseURL?: string; cache?: KeyCache; fetch?: Fetch; } export declare const keyFetcher: (options?: KeyFetcherOptions) => KeyFetcher; export {};