type KeyValuePair = { key: K; value: V; }; declare const toMap: (arr: T[], fn: (a: T) => KeyValuePair) => Map; export default toMap;