export declare type MapFunc = (element: T) => U; declare global { interface Set { to_array(this: Set): T[]; map_to_array(this: Set, fn: MapFunc): T[]; } }