/**
 * @template T
 * @param {T[]} array
 * @param {function} random
 * @param {function(T):number} weight
 * @param {*} [weightContext]
 * @param {number} [length]
 * @returns {T|undefined}
 */
export function weightedRandomFromArray<T>(array: T[], random: Function, weight: (arg0: T) => number, weightContext?: any, length?: number): T;
//# sourceMappingURL=weightedRandomFromArray.d.ts.map