import { ValueIteratee } from '../_internal/ValueIteratee.js'; /** * Creates an array of unique values that are included in all given arrays, using an iteratee to compute equality. * * @template T, U * @param {ArrayLike | null} array - The array to inspect. * @param {ArrayLike} values - The values to compare. * @param {ValueIteratee} iteratee - The iteratee invoked per element. * @returns {T[]} Returns the new array of intersecting values. * * @example * intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor); * // => [2.1] */ declare function intersectionBy(array: ArrayLike | null, values: ArrayLike, iteratee: ValueIteratee): T[]; /** * Creates an array of unique values that are included in all given arrays, using an iteratee to compute equality. * * @template T, U, V * @param {ArrayLike | null} array - The array to inspect. * @param {ArrayLike} values1 - The first values to compare. * @param {ArrayLike} values2 - The second values to compare. * @param {ValueIteratee} iteratee - The iteratee invoked per element. * @returns {T[]} Returns the new array of intersecting values. * * @example * intersectionBy([2.1, 1.2], [2.3, 3.4], [2.5], Math.floor); * // => [2.1] */ declare function intersectionBy(array: ArrayLike | null, values1: ArrayLike, values2: ArrayLike, iteratee: ValueIteratee): T[]; /** * Creates an array of unique values that are included in all given arrays, using an iteratee to compute equality. * * @template T, U, V, W * @param {ArrayLike | null | undefined} array - The array to inspect. * @param {ArrayLike} values1 - The first values to compare. * @param {ArrayLike} values2 - The second values to compare. * @param {...Array | ValueIteratee>} values - The other arrays to compare, and the iteratee to use. * @returns {T[]} Returns the new array of intersecting values. * * @example * intersectionBy([2.1, 1.2], [2.3, 3.4], [2.5], [2.6, 1.7], Math.floor); * // => [2.1] */ declare function intersectionBy(array: ArrayLike | null | undefined, values1: ArrayLike, values2: ArrayLike, ...values: Array | ValueIteratee>): T[]; /** * Creates an array of unique values that are included in all given arrays. * * @template T * @param {ArrayLike | null} [array] - The array to inspect. * @param {...Array>} values - The values to compare. * @returns {T[]} Returns the new array of intersecting values. * * @example * intersectionBy([2, 1], [2, 3]); * // => [2] */ declare function intersectionBy(array?: ArrayLike | null, ...values: Array>): T[]; /** * Creates an array of unique values that are included in all given arrays, using an iteratee to compute equality. * * @template T * @param {...Array | ValueIteratee>} values - The arrays to compare and the iteratee to use. * @returns {T[]} Returns the new array of intersecting values. * * @example * intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor); * // => [2.1] */ declare function intersectionBy(...values: Array | ValueIteratee>): T[]; export { intersectionBy };