export declare function groupBy(source: T[], by: keyof T): { [key in T[keyof T]]: T[]; };