import * as React from 'react';
import { ErrorType, GrowthBehavior, Themeable } from '@workday/canvas-kit-react/common';
import { RadioProps } from './Radio';
/**
 * @deprecated ⚠️ `RadioGroupProps` in Main has been deprecated and will be removed in a future major version. Please use [`Radio` in Preview](https://workday.github.io/canvas-kit/?path=/docs/preview-inputs-radio--docs) instead.
 */
export interface RadioGroupProps extends Themeable, GrowthBehavior {
    /**
     * The Radio button children of the RadioGroup (must be at least two).
     */
    children: React.ReactElement<RadioProps>[];
    /**
     * The selected value of the RadioGroup. If a string is provided, the Radio button with the corresponding value will be selected. If a number is provided, the Radio button with the corresponding index will be selected.
     * @default 0
     */
    value?: string | number;
    /**
     * The common `name` passed to all Radio button children of the RadioGroup. This enables you to avoid specifying the `name` for each child.
     */
    name?: string;
    /**
     * The type of error associated with the RadioGroup (if applicable).
     */
    error?: ErrorType;
    /**
     * The function called when the RadioGroup state changes. The value passed to the callback function will be the value of the selected Radio button if it has one; otherwise, the index of the selected Radio button will be passed in.
     */
    onChange?: (value: string | number) => void;
}
/**
 * @deprecated ⚠️ `RadioGroup` in Main has been deprecated and will be removed in a future major version. Please use [`Radio` in Preview](https://workday.github.io/canvas-kit/?path=/docs/preview-inputs-radio--docs) instead.
 */
export declare class RadioGroup extends React.Component<RadioGroupProps> {
    static ErrorType: typeof ErrorType;
    render(): React.ReactNode;
    private renderChild;
    private onRadioChange;
}
//# sourceMappingURL=RadioGroup.d.ts.map