import { default as React, ReactNode } from 'react'; import { FieldsetProps } from '../fieldset/fieldset'; /** * Props for the RadioGroup component. * * @category RadioGroup */ export interface RadioGroupProps extends Omit { /** Shared name attribute for all radio buttons in the group. */ name: string; /** Initial selected value for uncontrolled usage. */ defaultValue?: string; /** Controlled selected value. */ value?: string; /** Called when the selected value changes. */ onChange?: (value: string) => void; /** Radio buttons rendered inside the group. */ children: ReactNode; } /** * Groups related radio buttons into a single selectable set. * * Supports controlled and uncontrolled usage. * * @category RadioGroup * @function * @param props RadioGroupProps * * * @example * // Uncontrolled * * * * * * * @example * // Controlled * const [value, setValue] = useState('a'); * * * * * */ export declare const RadioGroup: React.ForwardRefExoticComponent>;