export declare function collectByKey(f: (value: A) => K, list: A[]): Record;