/** * 深度合并多个对象 * @description 将多个对象的属性深度合并,数组属性会被展开合并,非数组属性会被转换为数组 * @template T - 对象值的类型 * @param {...Record[]} objs - 要合并的对象数组 * @returns {Record} 合并后的新对象 * @throws {TypeError} 当输入参数不是对象时抛出 * @example * merge( * { a: 1, b: [2] }, * { a: 2, b: [3], c: 'foo' } * ); * // => { a: [1, 2], b: [2, 3], c: ['foo'] } */ export declare function merge(...objs: Array>): Record;