import { ComponentProps } from '@fluentui/react-utilities'; import type { ForwardRefComponent } from '@fluentui/react-utilities'; import type { RadioBaseProps } from '@fluentui/react-radio'; import type { RadioBaseState } from '@fluentui/react-radio'; import type { RadioGroupBaseProps } from '@fluentui/react-radio'; import type { RadioGroupBaseState } from '@fluentui/react-radio'; import type { RadioGroupContextValues as RadioGroupContextValues_2 } from '@fluentui/react-radio'; import type { RadioGroupSlots as RadioGroupSlots_2 } from '@fluentui/react-radio'; import { RadioOnChangeData } from '@fluentui/react-radio'; import { RadioSlots as RadioSlots_2 } from '@fluentui/react-radio'; import * as React_2 from 'react'; import { renderRadio_unstable as renderRadio } from '@fluentui/react-radio'; import { renderRadioGroup_unstable as renderRadioGroup } from '@fluentui/react-radio'; /** * A Radio component for use inside a RadioGroup. */ export declare const Radio: React_2.ForwardRefExoticComponent, "input">, "onChange" | "size"> & { value?: string; labelPosition?: "after" | "below"; disabled?: boolean; onChange?: (ev: React_2.ChangeEvent, data: RadioOnChangeData) => void; } & React_2.RefAttributes>; /** * A radio group component for selecting one option. */ export declare const RadioGroup: ForwardRefComponent; /** * RadioGroup component context values */ declare type RadioGroupContextValues = RadioGroupContextValues_2; /** * RadioGroup component props */ export declare type RadioGroupProps = RadioGroupBaseProps; /** * RadioGroup component slots */ export declare type RadioGroupSlots = RadioGroupSlots_2; /** * RadioGroup component state */ export declare type RadioGroupState = RadioGroupBaseState; /** * Radio component props */ export declare type RadioProps = RadioBaseProps; /** * Radio component slots */ export declare type RadioSlots = RadioSlots_2; /** * Radio component state */ export declare type RadioState = RadioBaseState & { root: { /** * Data attribute set when the radio is disabled. */ 'data-disabled'?: string; /** * Data attribute reflecting the label position. */ 'data-label-position'?: RadioBaseState['labelPosition']; }; }; export { renderRadio } export { renderRadioGroup } /** * Returns the state for a Radio component, given its props and ref. * The returned state can be modified with hooks before being passed to `renderRadio`. */ export declare const useRadio: (props: RadioProps, ref: React_2.Ref) => RadioState; /** * Returns the state for a RadioGroup component, given its props and ref. * The returned state can be modified with hooks before being passed to `renderRadioGroup`. */ export declare const useRadioGroup: (props: RadioGroupProps, ref: React_2.Ref) => RadioGroupState; export declare const useRadioGroupContextValues: (state: RadioGroupState) => RadioGroupContextValues; export { }