declare type MapKey = string | number; /** * WARNING: TypeScript doesn't catch when a map key is a non-"MapKey" type */ declare function mapToObject(m: Map): Record; export { MapKey, mapToObject };