import { ReactElement } from 'react'; import { CommonProps } from '../common'; export interface RadioGroupProps extends CommonProps { /** * Layout to render the group. */ layout?: 'vertical' | 'horizontal'; /** * Radio group name, used for form submission, this MUST be unique in a page, otherwise same name radio group will share the same selection. */ name?: string; /** * Change event handler receiving selected radio's value. */ onChange: (value: string | number) => void; /** * An array of radio options to be selected. */ options: { disabled?: boolean; text: string | ReactElement; value: string | number; }[]; /** * Radio input value. */ value: string | number; } declare const RadioGroup: ({ name, value, layout, onChange, options, id, className, style, sx, "data-test-id": dataTestId, }: RadioGroupProps) => ReactElement; export default RadioGroup;