export interface Cache { get(key: K): V | undefined; set(key: K, value: V): void; } export interface Cache2 { get(from: K1, to: K2): V | undefined; set(from: K1, to: K2, value: V): void; } /** * A `RecursiveMap` acts as a hierarchical cache, allowing values to be retrieved from * either the current map or a specified parent cache if the value is not found locally. */ export declare class RecursiveMap implements Cache { private map; private parent?; constructor(parent?: Cache); get(key: K): V | undefined; set(key: K, value: V): void; }