/**
 * Randomly choose an element from an array-like object.
 * @returns `undefined` if the array is empty.
 * @returns a random element from the array if at least one element is present.
 * @example choice([1, 2, 3]) // 2
 */
export declare const choice: <E>(choices: ArrayLike<E>) => E | undefined;
