/** * Return the intersection of all given arrays. Output array will never contain undefined. * * Accepts an optional options object as the first argument: * * `by` is a function that transforms a complex object into something uniquely * identifying for the comparison. default is fast-json-stable-stringify. If the function * returns undefined, the item will not be included in the return array. * * `skipEmpty` changes the default behavior when one of the input arrays is empty, * normally an empty input array would mean the intersection is empty, but in some cases * (like specifying optional filters) an empty array should be ignored instead */ export declare function intersect(options: { by?: (itm: T) => string | number | undefined | null; skipEmpty?: boolean; }, ...arrs: (T[] | undefined | null)[]): T[]; export declare function intersect(...arrs: (T[] | undefined | null)[]): T[];