declare const arrayToMap: (array: T[], key: keyof T) => Record; export default arrayToMap;