import React from 'react'; import RadioGroup from './radio-group'; import RadioDescription from './radio-description'; import { NormalSizes } from '../utils/prop-types'; interface RadioEventTarget { checked: boolean; } export interface RadioEvent { target: RadioEventTarget; stopPropagation: () => void; preventDefault: () => void; nativeEvent: React.ChangeEvent; } interface Props { checked?: boolean; value?: string | number; size?: NormalSizes; className?: string; disabled?: boolean; onChange?: (e: RadioEvent) => void; } declare const defaultProps: { size: "mini" | "small" | "medium" | "large"; disabled: boolean; className: string; }; type NativeAttrs = Omit, keyof Props>; export type RadioProps = Props & typeof defaultProps & NativeAttrs; type RadioComponent

= React.FC

& { Group: typeof RadioGroup; Desc: typeof RadioDescription; Description: typeof RadioDescription; }; type ComponentProps = Partial & Omit & NativeAttrs; declare const _default: RadioComponent; export default _default;