export interface ObjectType { [key: string]: T[]; } declare function groupBy(data: T[], condition: (item: T) => string): ObjectType; declare function groupBy(data: T[], condition: string): ObjectType; export default groupBy;