import React from "react"; import { FlexProps } from "../Flex"; import { RadioProps } from "../Radio"; export interface RadioGroupProps extends FlexProps { /** Ability to deselect the selection */ deselectable?: boolean; /** Disable interactions */ disabled?: boolean; /** Text to display when disabled */ disabledText?: string; /** Callback when selected */ onSelect?: (selectedOption: T) => void; /** Default value of radio button */ defaultValue?: T; /** Child elements */ children: Array>> | React.ReactElement>; } interface RadioGroupState { selectedOption: T | null; } /** * A stateful collection of Radio buttons */ export declare class RadioGroup extends React.Component, RadioGroupState> { state: { selectedOption: NonNullable | null; }; componentDidUpdate(prevProps: any): void; onSelect: ({ value }: { value: any; }) => void; renderRadioButtons(): React.ReactElement, string | React.JSXElementConstructor>[]; render(): React.JSX.Element; } export {};