import * as React from "react"; import { ConfigConsumerProps } from "../Config"; interface IRadioGroupProps { /** * 组件包含的内容 * * @default null **/ children?: any; /** * 自定义组件类名 * * @default '' **/ className?: string; /** * 选项改变时的回调函数 * * @default (e: Event) => void **/ onChange?: (e: Event) => void; /** * RadioGroup 下所有 input[type="radio"] 的 name 属性 * * @default **/ name: string; /** * 设置当前选中的值 * * @default **/ value: any; /** * 默认前缀 * * @default 'lg' **/ prefixCls?: string; } interface IRadioGroupState { /** * 根据 value 进行比较,判断是否选中 * * @default **/ value?: any; } declare class RadioGroup extends React.PureComponent { static defaultProps: { children: null; className: string; onChange: () => null; }; constructor(props: IRadioGroupProps); componentWillReceiveProps(nextProps: any): void; getChildren: () => any; handleRadioChange(e: any): void; renderRadioGroup: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export default RadioGroup;