/** * Shuffles the specified array.\ * This is Algorithm P (Shuffling) from the Donald E. Knuth book The Art of Computer Programming. * @param array The array to be shuffled. * @param numberOfPasses The number of times to shuffle the array. * @typeparam TItem The type of items stored in the array. * @returns A shuffled copy of array. * @throws [[InvalidParameterError]] If array is not an array. * @throws [[InvalidParameterError]] If numberOfPasses is less than 1. */ export declare function shuffleArray(array: TItem[], numberOfPasses?: number): TItem[];