import { type Iteratee } from '../internal/iteratee.js'; import type { MapKeySelector } from '../types.js'; /** * Group array items by a key selector. * Returns a Map by default (better for non-string keys). * * @param arr - Input array * @param iteratee - Function or property path string that returns a key for each item * @returns Map of key to array of items * * @example * groupByHot(users, 'department') * groupByHot(users, user => user.role) */ export declare function groupByHot(arr: readonly T[], iteratee: Iteratee | MapKeySelector): Map; /** * Group array items by a key selector. * Returns a plain object when asObject is true. * * @param arr - Input array * @param iteratee - Function or property path string that returns a key for each item * @param asObject - When true, returns a plain object instead of Map * @returns Object of key to array of items * * @example * groupByHot(users, 'department', true) */ export declare function groupByHot(arr: readonly T[], iteratee: Iteratee, asObject: true): Record; //# sourceMappingURL=groupBy.d.ts.map