import type { Iteratee, TypeOfList } from '../types'; import type { List } from '@sdkset/types'; /** * 返回一个数组,数组由给定数组的并集组成,使用`===`做相等测试。 * 如果要处理对象元素, 需要传递`iteratee`函数来获取要对比的属性。 * * @example * uniq([1, 2, 1, 4, 1, 3]) * => [1, 2, 4, 3] * * @param array 给定数组 * @param isSorted 是否启用更快的算法(数组已升序) * @param iteratee 迭代器函数,通过 iteratee 进行转换,以简化速记语法 * @param context 上下文对象,若传递,则作为迭代器函数的执行上下文 this */ export declare function uniq>(array: V, isSorted?: boolean, iteratee?: I, context?: unknown): TypeOfList[];