/** * Inserts elements into an array using splice semantics. * * **Supported call styles:** * - Classic: `spliceInsert(array, indexFrom, elements)` → returns a new array * - Curried: `spliceInsert(indexFrom, elements)` → returns a function waiting for the array * * The input array is not mutated. * * ```ts * A.spliceInsert( * [1, 2, 3], * 1, * [9], * ); // [1, 9, 2, 3] * * const input = ["alpha", "beta"]; * pipe( * input, * A.spliceInsert(0, ["start"]), * ); // ["start", "alpha", "beta"] * * A.spliceInsert( * [1, 2], * 2, * [3], * ); // [1, 2, 3] * ``` * * @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.spliceDelete`](https://utils.duplojs.dev/en/v1/api/array/spliceDelete) For deleting 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/spliceInsert * * @namespace A * */ export declare function spliceInsert(indexFrom: number, elements: GenericElement[]): (array: readonly GenericElement[]) => GenericElement[]; export declare function spliceInsert(array: readonly GenericElement[], indexFrom: number, elements: GenericElement[]): GenericElement[];