import { ValueIteratee } from '../_internal/ValueIteratee.js'; /** * Removes all specified values from an array using an iteratee function. * * This function changes `arr` in place. * If you want to remove values without modifying the original array, use `differenceBy`. * * @template T * @param {T[]} array - The array to modify. * @param {ArrayLike} [values] - The values to remove. * @param {((value: T) => unknown) | PropertyKey | [PropertyKey, any] | Partial} [iteratee] - The iteratee invoked per element. * @returns {T[]} Returns `array`. * * @example * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }]; * * pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x'); * console.log(array); * // => [{ 'x': 2 }] */ declare function pullAllBy(array: T[], values?: ArrayLike, iteratee?: ValueIteratee): T[]; /** * Removes all specified values from an array using an iteratee function. * * This function changes `arr` in place. * If you want to remove values without modifying the original array, use `differenceBy`. * * @template L * @param {L} array - The array to modify. * @param {ArrayLike} [values] - The values to remove. * @param {((value: L[0]) => unknown) | PropertyKey | [PropertyKey, any] | Partial} [iteratee] - The iteratee invoked per element. * @returns {L} Returns `array`. * * @example * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }]; * * pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x'); * console.log(array); * // => [{ 'x': 2 }] */ declare function pullAllBy>(array: L extends readonly any[] ? never : L, values?: ArrayLike, iteratee?: ValueIteratee): L; /** * Removes all specified values from an array using an iteratee function. * * This function changes `arr` in place. * If you want to remove values without modifying the original array, use `differenceBy`. * * @template T, U * @param {T[]} array - The array to modify. * @param {ArrayLike} values - The values to remove. * @param {((value: T | U) => unknown) | PropertyKey | [PropertyKey, any] | Partial} iteratee - The iteratee invoked per element. * @returns {T[]} Returns `array`. * * @example * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }]; * * pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x'); * console.log(array); * // => [{ 'x': 2 }] */ declare function pullAllBy(array: T[], values: ArrayLike, iteratee: ValueIteratee): T[]; /** * Removes all specified values from an array using an iteratee function. * * This function changes `arr` in place. * If you want to remove values without modifying the original array, use `differenceBy`. * * @template L, U * @param {L} array - The array to modify. * @param {ArrayLike} values - The values to remove. * @param {((value: L[0] | U) => unknown) | PropertyKey | [PropertyKey, any] | Partial} iteratee - The iteratee invoked per element. * @returns {L} Returns `array`. * * @example * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }]; * * pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x'); * console.log(array); * // => [{ 'x': 2 }] */ declare function pullAllBy, U>(array: L extends readonly any[] ? never : L, values: ArrayLike, iteratee: ValueIteratee): L; export { pullAllBy };