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