export declare type MapFunc = (element: T) => U; declare global { interface Map { entries_to_array(this: Map): [K, V][]; entries_map_to_array(this: Map, fn: MapFunc<[K, V], U>): U[]; keys_to_array(this: Map): K[]; keys_map_to_array(this: Map, fn: MapFunc): U[]; values_to_array(this: Map): V[]; values_map_to_array(this: Map, fn: MapFunc): U[]; } }