/** * Returns a uniformly random permutation of [0, ..., n-1] (Fisher-Yates). * @param {number} n * @returns {number[]} * @private */ export function randomPermutationIndices(n: number): number[]; /** * Shuffles an array in place (Fisher-Yates) along the given axis and returns it. * * For nested arrays only the order of the slices along `axis` changes; the same permutation * is applied to every slice, so rows (axis 0) or columns (axis 1) move as a whole, as numpy. * * @example * shuffle([1, 2, 3, 4]) * shuffle([[1, 2], [3, 4]], 1) // swaps columns * * @param {Array} array - The array to shuffle in place. * @param {number} [axis=0] - Axis along which to shuffle. * @returns {Array} The same array, shuffled. */ export function shuffle(array: any[], axis?: number): any[];