/** * Removes and returns an entry from a given array, at a designated index position. * WARNING: This is not a pure function and will alter the given array internally * * @example * ```ts * popIndex([1,2,3], 1); // -> 2 (array will then be [1, 3]) * ``` * * @param list - The Array to remove the item from * @param index - At what index to remove from * @returns - An array with two entries: the first entry is the value just removed and the second * is the new array with the entry removed. */ export declare function popIndexPure(list: unknown[], index: number): [unknown, unknown[]]; /** * Removes and returns an entry from a given array, at a designated index position. * WARNING: This is not a pure function and will alter the given array internally * * @example * ```ts * popIndex([1,2,3], 1); // -> 2 (array will then be [1, 3]) * ``` * * @param list - The Array to remove the item from * @param index - At what index to remove from */ declare function popIndex(list: unknown[], index: number): unknown; export default popIndex;