export declare function groupBy>(values: TValue[], predicate: (value: TValue) => string, maxResultsPerGroup?: number): Record;