import type { Dispatch, SetStateAction } from "react"; declare type InputElement = HTMLInputElement | HTMLSelectElement; declare type ChangeEventHandler = React.ChangeEventHandler; declare type DefaultValue = string | number | readonly string[] | (() => string | number | readonly string[]); declare type SetValue = Dispatch>; /** * This hook can be used to control the state of a radio group or a select * element. * * @param defaultValue - The default value. If you want the user to specifically * choose a value, set this to the empty string. * @param onChange - An optional change event handler to also call when the * change event is triggered. * @returns a list containing the current value, a change event handler, and * then a manual value setter. */ export declare function useChoice(defaultValue: T, onChange?: ChangeEventHandler): readonly [T, ChangeEventHandler, SetValue]; export {};