import { UnionOmit } from '@co-hooks/util';
import { HTMLAttributes } from 'react';
import { RadioGroupRadio } from './Radio';
import { RadioGroupButton } from './Button';
export declare type RadioGroupType = 'radio' | 'button';
export interface IRadioGroupExtraProps {
    type: RadioGroupType;
}
export interface IRadioGroup<T> extends Partial<IRadioGroupExtraProps> {
    type?: RadioGroupType;
    disabled?: boolean;
    value?: T;
    onChange?: (value?: T) => void;
    onValueChange?: (value?: T) => void;
}
export declare type IRadioGroupProps<T> = UnionOmit<IRadioGroup<T>, HTMLAttributes<HTMLDivElement>>;
export declare function RadioGroup<T>(props: IRadioGroupProps<T>): JSX.Element;
export declare namespace RadioGroup {
    var Radio: typeof RadioGroupRadio;
    var Button: typeof RadioGroupButton;
}
