type IsEquals = (a: TFirst, b: TSecond) => boolean; /** * Excludes the values from `other` array. * Elements are compared by custom comparator isEquals. * * @param array - The source array. * @param other - The values to exclude. * @param isEquals - The comparator. * @signature * R.differenceWith(array, other, isEquals) * @example * R.differenceWith( * [{a: 1}, {a: 2}, {a: 3}, {a: 4}], * [{a: 2}, {a: 5}, {a: 3}], * R.equals, * ) // => [{a: 1}, {a: 4}] * @dataFirst * @lazy * @category Array */ declare function differenceWith(array: ReadonlyArray, other: ReadonlyArray, isEquals: IsEquals): Array; /** * Excludes the values from `other` array. * Elements are compared by custom comparator isEquals. * * @param other - The values to exclude. * @param isEquals - The comparator. * @signature * R.differenceWith(other, isEquals)(array) * @example * R.differenceWith( * [{a: 2}, {a: 5}, {a: 3}], * R.equals, * )([{a: 1}, {a: 2}, {a: 3}, {a: 4}]) // => [{a: 1}, {a: 4}] * R.pipe( * [{a: 1}, {a: 2}, {a: 3}, {a: 4}, {a: 5}, {a: 6}], // only 4 iterations * R.differenceWith([{a: 2}, {a: 3}], R.equals), * R.take(2), * ) // => [{a: 1}, {a: 4}] * @dataLast * @lazy * @category Array */ declare function differenceWith(other: ReadonlyArray, isEquals: IsEquals): (array: ReadonlyArray) => Array; export { differenceWith };