import { Option } from '../constants'; declare class Cache { hashKey: string | symbol; weakMap?: WeakMap; keys?: any[]; values?: T[]; constructor(); } interface Cache { get(this: Cache, x: any): Option; set(this: Cache, x: any, value: T): void; } export default Cache;