import type { ArrayElement } from './types.js'; export declare const EMPTY_ARRAY: Array; /** Converts `value` to an array if it's not already. */ export declare const to_array: (value: T) => T extends ReadonlyArray ? T : Array; /** * Removes an element from `array` at `index` in an unordered manner. * @mutates array - swaps element at index with last element, then pops */ export declare const remove_unordered: (array: Array, index: number) => void; /** * Returns a function that returns the next item in the `array` * in a linear sequence, looping back to index 0 when it reaches the end. */ export declare const to_next: >(array: T) => (() => ArrayElement); //# sourceMappingURL=array.d.ts.map