/** * Group items in an iterable based on some key. * @param items * @param key */ export declare function groupBy(items: ReadonlyArray | IterableIterator, key: (item: T) => K): IterableIterator>;