/** * 分组 * @param list 列表 * @param key 关键字 * @returns */ declare function groupBy(list: T[], key: string): Record; declare function first(list: T[]): T | undefined; declare function last(list: T[]): T | undefined; declare function toList(val: T | T[]): T[]; declare const _default: { groupBy: typeof groupBy; first: typeof first; last: typeof last; toList: typeof toList; }; export default _default;