declare const objFromArray: (arr: any[], key?: string) => any; export default objFromArray;