declare const aggregate: (array: T[], key: (value: T) => K) => Map; export default aggregate;