export declare const toArray: (map: Map, fn: (key: K, value: V) => T) => T[];