import { FocusEventHandler, MouseEvent, ReactElement } from 'react'; import { FieldComponentProps } from '@cezembre/forms'; import { IconName } from './icon'; import { ButtonShape, ButtonSize, ButtonTheme } from './button'; export interface RadioOption { value: V; element?: ReactElement | string | number; } export interface RadioOptionProps { option?: RadioOption; onClick?: (event: MouseEvent) => unknown; onFocus?: FocusEventHandler; onBlur?: FocusEventHandler; active?: boolean; size?: ButtonSize; shape?: ButtonShape; theme?: ButtonTheme; leftIcon?: IconName; rightIcon?: IconName; } export interface RadioProps extends FieldComponentProps { label?: string; options?: RadioOption[]; canReset?: boolean; instructions?: ReactElement | string; } export declare function Radio({ value, error, warning, isActive, name, onChange, label, options, canReset, instructions, }: RadioProps): ReactElement;