import { ListIteratee } from '../_internal/ListIteratee.js'; /** * Removes all elements from array that predicate returns truthy for and returns an array of the removed elements. * * @template L * @param {L extends readonly any[] ? never : L} array - The array to modify. * @param {ListIteratee} [predicate] - The function invoked per iteration. * @returns {Array} Returns the new array of removed elements. * * @example * const array = [1, 2, 3, 4]; * const evens = remove(array, n => n % 2 === 0); * console.log(array); // => [1, 3] * console.log(evens); // => [2, 4] */ declare function remove>(array: L extends readonly any[] ? never : L, predicate?: ListIteratee): Array; export { remove };