type Index = { [key: string]: T; }; type KeyValueGenerator = (key: K, value: V, accum: Index) => Index | null; export declare function keyValueBy(arr: T[]): Index; export declare function keyValueBy(arr: T[], keyValue: KeyValueGenerator, initialValue?: Index): Index; export declare function keyValueBy(obj: Index, keyValue: KeyValueGenerator, initialValue?: Index): Index; export {};