/** * Adds elements to the start of an array. * * **Supported call styles:** * - Classic: `unshift(array, element, ...elements)` → returns a new array * - Curried: `unshift(element)` → returns a function waiting for the array * * The input array is not mutated. * * ```ts * A.unshift( * [2, 3], * 1, * ); // [1, 2, 3] * * A.unshift( * [3, 4], * 1, * 2, * ); // [1, 2, 3, 4] * * const input = ["beta", "gamma"]; * pipe( * input, * A.unshift("alpha"), * ); // ["alpha", "beta", "gamma"] * ``` * * @remarks * - Classic style supports multiple elements via rest parameters * - Curried style adds only a single element * * @see [`A.push`](https://utils.duplojs.dev/en/v1/api/array/push) For adding at the end * @see https://utils.duplojs.dev/en/v1/api/array/unshift * * @namespace A * */ export declare function unshift(element: NoInfer): (array: readonly GenericElement[]) => GenericElement[]; export declare function unshift(array: readonly GenericElement[], element: NoInfer, ...elements: NoInfer[]): GenericElement[];