import type { Comparator } from "./ord.ts"; export declare function union(larger: T[], smaller: T[]): T[]; export declare function intersection(a: T[], b: T[]): T[]; export declare function isArrayEmpty(arr: T[]): arr is []; export declare function createArrayComparator(compare: (a: T, b: T) => number): (a: T[], b: T[]) => number; /** * Function type for removing duplicates from an array. */ export type Deduplicator = (data: T[]) => T[]; export interface DeduplicatorOptions { /** @default 12 */ threshold?: number; } export declare function createDeduplicator(compare: Comparator, { threshold }?: DeduplicatorOptions): Deduplicator; /** * Function type for intersecting two arrays of the same type. */ export type Intersector = (a: T[], b: T[]) => T[]; export declare function createIntersector(compare: Comparator): Intersector; //# sourceMappingURL=array.d.ts.map