export default function (array: T[], key: string): Promise<{ [index: string]: T[]; }>;