import React, { ReactNode, SyntheticEvent } from 'react'; import { RadioValue } from './radio-option/radio-option'; export declare type OptionPropType = { isDisabled?: boolean; label?: ReactNode; name?: string; value?: RadioValue; testId?: string; }; export declare type OptionsPropType = Array; export interface RadioProps { /** Once set, controls the selected value on the `Radio` */ value?: RadioValue | null; /** Sets the initial selected value on the `Radio` */ defaultValue?: RadioValue | null; /** Sets the disabled state of all `Radio` elements in the group */ isDisabled?: boolean; /** Sets the required state of all `Radio` elements in the group */ isRequired?: boolean; /** An array of objects, each object is mapped onto a `Radio` element within the group. Name must be unique to the group. */ options: OptionsPropType; /** Function that gets fired after each invalid event */ onInvalid?: (event: SyntheticEvent) => void; /** Function that gets after each change event */ onChange?: (e: React.ChangeEvent) => void; /** Sets the `name` prop on each of the `Radio` elements in the group */ name?: string; } export declare const Radio: (props: RadioProps) => JSX.Element; export default Radio;