/** * Removes elements from an array and, inserts new elements in their place. * * @param items - The array to splice. * @param start - The index from which to start removing elements. * @param deleteCount - The number of elements to remove. * @param replacement - The elements to insert into the array in place of the deleted elements. * @signature * R.splice(items, start, deleteCount, replacement) * @example * R.splice([1,2,3,4,5,6,7,8], 2, 3, []); //=> [1,2,6,7,8] * R.splice([1,2,3,4,5,6,7,8], 2, 3, [9, 10]); //=> [1,2,9,10,6,7,8] * @dataFirst * @category Array */ declare function splice(items: ReadonlyArray, start: number, deleteCount: number, replacement: ReadonlyArray): Array; /** * Removes elements from an array and, inserts new elements in their place. * * @param start - The index from which to start removing elements. * @param deleteCount - The number of elements to remove. * @param replacement - The elements to insert into the array in place of the deleted elements. * @signature * R.splice(start, deleteCount, replacement)(items) * @example * R.pipe([1,2,3,4,5,6,7,8], R.splice(2, 3, [])) // => [1,2,6,7,8] * R.pipe([1,2,3,4,5,6,7,8], R.splice(2, 3, [9, 10])) // => [1,2,9,10,6,7,8] * @dataLast * @category Array */ declare function splice(start: number, deleteCount: number, replacement: ReadonlyArray): (items: ReadonlyArray) => Array; export { splice };