type DictionaryKey = string | number; type GetKey = (item: T) => unknown; type Key, R = ReturnType> = R extends DictionaryKey ? R : never; type ArrayToDictionary = { >(array: T[], getKey: Fn, multiple?: false): Record, T>; >(array: T[], getKey: Fn, multiple: true): Record, T[]>; }; export declare const arrayToDictionary: ArrayToDictionary; export {}; //# sourceMappingURL=arrayToDictionary.d.ts.map