/** * Builds a simple cache using a map and a compute function. * * @param compute The function to compute values in the cache * @param cache The map to use as a cache */ export declare function simpleCache(compute: (value: K) => V, cache?: Map): SimpleCache; export interface SimpleCache { cache: Map; get(key: K): V; }