/** * Deletes a segment from an array using splice semantics. * * **Supported call styles:** * - Classic: `spliceDelete(array, indexTo, deleteCount)` → returns a new array * - Curried: `spliceDelete(indexTo, deleteCount)` → returns a function waiting for the array * * The input array is not mutated. * * ```ts * A.spliceDelete( * [1, 2, 3, 4], * 1, * 2, * ); // [1, 4] * * pipe( * ["alpha", "beta", "gamma"], * A.spliceDelete(0, 1), * ); // ["beta", "gamma"] * ``` * * @remarks * - Uses the same semantics as [`Array.prototype.splice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice) * * @see [`A.spliceInsert`](https://utils.duplojs.dev/en/v1/api/array/spliceInsert) For inserting values * @see [`A.spliceReplace`](https://utils.duplojs.dev/en/v1/api/array/spliceReplace) For replacing values * @see https://utils.duplojs.dev/en/v1/api/array/spliceDelete * * @namespace A * */ export declare function spliceDelete(indexTo: number, deleteCount: number): (array: readonly GenericElement[]) => GenericElement[]; export declare function spliceDelete(array: readonly GenericElement[], indexTo: number, deleteCount: number): GenericElement[];