/**
*
* 数组的并集
*
* 请注意,参数有不为数组时直接抛出 TypeError
* @param arrays - 多个数组
* @returns 联合后的数组
*
*
* @example
*
* ```ts
* import { union } from 'a-js-tools';
*
* const log = console.log;
*
* // []
* log(union());
*
* // [1, 2, 3]
* log(union([1, 2, 3]));
*
* // TypeError
* log(union([1, 2, 3], 'i'));
* log(union([1, 2, 3], undefined));
* log(union([1, 2, 3], null));
* log(union([1, 2, 3], 4));
* log(union([1, 2, 3], {}));
* log(union([1, 2, 3], false));
*
* // [1, 2, 3, 4, 6]
* log(union([1, 2, 3], [2, 4, 6]));
*
* // [1, 2, 3, 4, 6]
* log(union([1, 2, 3], [2, 4, 6], [1, 2, 3]));
*
* // [1, 2, 3, 4, 6]
* log(union([1, 2, 3], [2, 4, 6], [1, 2, 3], [1, 2, 3]));
* ```
*
*/
export declare function union(...arrays: T[][]): T[];