type Note = string; /** * Create a numeric range * * @param {Number} from * @param {Number} to * @return {Array} * * @example * Array.range(-2, 2) // => [-2, -1, 0, 1, 2] * Array.range(2, -2) // => [2, 1, 0, -1, -2] */ export declare function range(from: number, to: number): number[]; /** * * Rotates a list a number of times. It"s completly agnostic about the * contents of the list. * * @param {Integer} times - the number of rotations * @param {Array} array * @return {Array} the rotated array * @example * Array.rotate(1, [1, 2, 3]) // => [2, 3, 1] */ export declare function rotate(times: number, arr: any[]): any[]; /** * Return a copy of the array with the null values removed * @function * @param {Array} array * @return {Array} * * @example * Array.compact(["a", "b", null, "c"]) // => ["a", "b", "c"] */ export declare const compact: (arr: any[]) => any[]; /** * Sort an array of notes in ascending order * * @param {String|Array} notes * @return {Array} sorted array of notes */ export declare function sort(src: string[]): Note[]; /** * Get sorted notes with duplicates removed * * @function * @param {Array} notes */ export declare function unique(arr: any[]): any[]; /** * Randomizes the order of the specified array in-place, using the Fisher–Yates shuffle. * * @private * @function * @param {Array|String} arr - the array * @return {Array} the shuffled array * * @example * Array.shuffle(["C", "D", "E", "F"]) */ export declare var shuffle: (arr: any[], rnd?: () => number) => any[]; /** * Get all permutations of an array * http://stackoverflow.com/questions/9960908/permutations-in-javascript * * @param {Array} array - the array * @return {Array} an array with all the permutations */ export declare const permutations: (arr: any[]) => any[][];