/** * Picks a random value from an enum or object. * * @template T - The type of enum or object. * @param enumObj - The enum or object to pick from. * @returns A random value from the enum/object. * * @throws {Error} If enumObj has no enumerable values. * * @example * // From enum * enum Color { Red = 'red', Green = 'green', Blue = 'blue' } * randomEnum(Color); // 'red', 'green', or 'blue' * * @example * // From object * const status = { ACTIVE: 'active', INACTIVE: 'inactive' }; * randomEnum(status); // 'active' or 'inactive' * * @note For numeric enums, returns the string keys, not numeric values. * * @complexity Time: O(n), Space: O(n) where n is number of enum values */ export declare function randomEnum>(enumObj: T): T[keyof T]; //# sourceMappingURL=randomEnum.d.ts.map