import { Component } from 'preact'; import { BasePropsType } from '../../utils/Base'; export interface OptionProps { name: string; value: string; disabled: boolean; style: object; } export interface RadioProps extends BasePropsType { defaultValue?: string; name?: string; options?: OptionProps; value?: string; } export interface RadioGroupProps extends BasePropsType { defaultValue?: any; value?: any; name?: string; children?: any; options?: OptionProps[]; } export interface RadioGroupState { value: any; } export default class RadioGroup extends Component { static defaultProps: { disabled: boolean; }; constructor(props: RadioGroupProps); componentWillReceiveProps(nextProps: RadioGroupProps): void; onRadioChange: (ev: any) => void; render(): JSX.Element; }