export declare function arrayToObject(arr: T[], key?: string): { [key: string]: T; };