import React, { ReactNode } from 'react'; import { CommonCheckboxProps } from '../Checkbox/InternalCheckbox'; import { BaseCommonProps } from '../Input/input'; interface InternalRadioProps extends CommonCheckboxProps { /** * radio 选项的样式类型 * @default default */ radioType?: 'default' | 'button'; } declare type Value = string | number | boolean; export declare type RadioValue = Value; export interface RadioGroupProps extends Omit, 'onChange'> { /** 输入值发生变更时的回调, value 不可能出现 null */ onChange?: (value: T) => void; /** * radio 选项的样式类型 * @default default */ radioType?: 'default' | 'button'; /** 内容(包含 `Radio` ) */ children: ReactNode; } export declare function RadioGroup({ value: valueFromProps, defaultValue, disabled, onChange: onChangeFromProps, radioType, size, children }: RadioGroupProps): React.JSX.Element; export interface RadioProps extends InternalRadioProps { /** 该选项对应的值,在 Group 中使用时需要设置,Radio 单独使用时将被忽略 */ value?: T; } export declare function Radio({ value, ...restProps }: RadioProps): React.JSX.Element; export {};