import { ReactElement, ReactNode } from 'react'; import { InputProps } from '../typings'; export interface ControlRadioSetProps { id: string; onChange: (value: string, id: string) => void; options: Array; value?: string; optional?: boolean; autoFocus?: boolean; validationError?: ReactNode; themeRadioGroup?: string; themeRadioContainer?: string; themeRadio?: string; themeControlWrapper?: string; } declare function ControlRadioSet({ id, onChange, value, options, optional, autoFocus, validationError, themeRadioGroup, themeRadioContainer, themeRadio, themeControlWrapper }: ControlRadioSetProps): ReactElement; declare namespace ControlRadioSet { var propTypes: { /** Unique id for this control. Required if you want a `label`. */ id: any; /** * An array of objects that represent each option of the set. * Each object should contain two fields: * * - `label` which can either be a string or valid JSX * - `value` a unique string value * * Any additional fields added will be passed as attributes to the input * element. */ options: any; /** * Invoked when the control's value changes. * Passed two arguments: * * - The value. A string matching the `value` field of one of the `options` * props passed. * - The `id` prop. */ onChange: any; /** The control's value. Can be an empty string to indicate no value. */ value: any; /** If provided, aria-required=true is added to the control element. */ optional: any; /** When set, auto focus attributes are applied to the input that matches the `value` prop passed. */ autoFocus: any; /** A validation error to display beneath the control. */ validationError: any; /** Classes to apply to the element wrapping all radios. Use `flex gap12` for a horizontal layout. */ themeRadioGroup: any; /** Classes to apply to the radio container */ themeRadioContainer: any; /** Classes to apply to the radio element */ themeRadio: any; /** Classes to apply to the control wrapper */ themeControlWrapper: any; }; } export default ControlRadioSet;