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