import { ReactElement, ReactNode, ChangeEvent } from 'react'; import { CommonProps } from '../common'; export interface RadioButtonProps extends Omit { /** * Whether the radio is checked. */ checked?: boolean; /** * Whether the radio is disabled. */ disabled?: boolean; /** * Id of element. */ id?: string; /** * Visual intent color to apply to radio button. */ intent?: 'basic' | 'primary' | 'danger' | 'success' | 'warning' | 'error'; /** * Radio name, used for form submission. */ name?: string; /** * Change event handler. Use `event.target.checked` to see whether the radio will be changed to checked. */ onChange?: (e: ChangeEvent) => void; /** * Size of the button. */ size?: 'small' | 'medium' | 'large'; /** * Radio text. */ text: ReactNode; /** * Radio input value when do form submission. */ value: string | number; } declare const RadioButton: ({ name, text, value, disabled, checked, onChange, size, id, intent, className, style, sx, "data-test-id": dataTestId, }: RadioButtonProps) => ReactElement; export default RadioButton;