import React from 'react'; import { type FieldsetOrientation } from './Fieldset.js'; export type RadioSize = 'sm' | 'md' | 'lg'; export type RadioIntent = 'brand' | 'neutral' | 'danger'; /** Whether this is inside a RadioGroup — for SelectableTile. Not exported from the package. */ export declare const useIsInRadioGroup: () => boolean; export interface RadioProps extends Omit, 'size' | 'type' | 'value'> { value: string; size?: RadioSize; intent?: RadioIntent; /** Whether this radio is disabled. Falls back to the group's `isDisabled`. */ isDisabled?: boolean; /** * @deprecated Use `isDisabled`. Accepted as an alias for one minor version. */ disabled?: boolean; children?: React.ReactNode; } export declare const Radio: React.ForwardRefExoticComponent>; export interface RadioGroupProps extends Omit, 'onChange'> { /** Shared input name. Generated when omitted. */ name?: string; value?: string; defaultValue?: string; onChange?: (value: string) => void; /** The question the options answer. Renders as the ``. */ label?: React.ReactNode; /** Help text beneath the options. Replaced by `errorMessage` while invalid. */ description?: React.ReactNode; /** Shown in the description's place while `isInvalid` is set. */ errorMessage?: React.ReactNode; /** Shows `errorMessage` in the description's place. */ isInvalid?: boolean; /** One option must be chosen before the form submits. */ isRequired?: boolean; orientation?: FieldsetOrientation; size?: RadioSize; intent?: RadioIntent; /** Whether every radio in the group is disabled. */ isDisabled?: boolean; /** * @deprecated Use `isDisabled`. Accepted as an alias for one minor version. */ disabled?: boolean; children?: React.ReactNode; } /** * Renders a `
` with a `` rather than a div with * `role="radiogroup"`. Both are announced correctly, but a fieldset also groups * the inputs for form submission and native validation, which the ARIA version * does not. * * The fieldset itself is Fieldset's shell, shared with CheckboxGroup, so the * two choice groups take the same label, help, error and orientation props. */ export declare const RadioGroup: React.ForwardRefExoticComponent>; //# sourceMappingURL=Radio.d.ts.map