import { ComponentPropsWithoutRef, ReactElement } from 'react'; import { LayoutUtilProps } from '../../types'; import { FieldLabelProps as FieldLabelElementProps } from '../FieldLabel'; import { FieldLabelProps as InternalFieldLabelProps } from '../../internal/types'; import { HelperProps } from '../../internal/components'; /** * Props for the RadioGroup component * @extends ComponentPropsWithoutRef<"fieldset"> * @extends LayoutUtilProps * @extends Omit */ export type RadioGroupProps = ComponentPropsWithoutRef<"fieldset"> & LayoutUtilProps & Omit & { /** * Required flag for label * @remarks This does not enforce error when nothing is selected */ required?: boolean; /** * Legend for the fieldset. * Passing `ReactNode` is deprecated — use a plain string with inline markdown instead. */ legend: string | ReactElement; /** * Additional props for the legend `FieldLabel` (for example `aiMark`, `className`). */ legendProps?: Omit; /** * When `true`, hides the visual label row. The sr-only `` always remains for AT. * @default false */ hideLabel?: boolean; /** * Error state for the field. Pass `true` to indicate error styling without a message. * Pass a string, string[], or ReactElement (deprecated) for error messages. */ error?: boolean | string | ReactElement | string[]; /** * @deprecated No longer used. Error messages always use `aria-live="assertive"`. */ errorAriaLive?: HelperProps["errorAriaLive"]; /** * Warning message(s) to display. Supports a single string or an array of strings. */ warning?: string | string[]; /** * Description text to display below the field. */ description?: HelperProps["description"]; /** * Hint text to display below the field. */ hint?: HelperProps["hint"]; }; /** * RadioGroup component for grouping related radio options. * * Features: * - Groups multiple radio options together * - Legend support for group labeling * - Required field indication * - Accessibility support with proper fieldset semantics * - Layout utility props for positioning and spacing * - Focus and blur event handling * - More info support for additional context * - Automatic alignment based on flex direction * * @example * * * * * * * @example * * * * */ export declare const RadioGroup: import('react').ForwardRefExoticComponent, HTMLFieldSetElement>, "ref"> & LayoutUtilProps & Omit & { /** * Required flag for label * @remarks This does not enforce error when nothing is selected */ required?: boolean; /** * Legend for the fieldset. * Passing `ReactNode` is deprecated — use a plain string with inline markdown instead. */ legend: string | ReactElement; /** * Additional props for the legend `FieldLabel` (for example `aiMark`, `className`). */ legendProps?: Omit; /** * When `true`, hides the visual label row. The sr-only `` always remains for AT. * @default false */ hideLabel?: boolean; /** * Error state for the field. Pass `true` to indicate error styling without a message. * Pass a string, string[], or ReactElement (deprecated) for error messages. */ error?: boolean | string | ReactElement | string[]; /** * @deprecated No longer used. Error messages always use `aria-live="assertive"`. */ errorAriaLive?: HelperProps["errorAriaLive"]; /** * Warning message(s) to display. Supports a single string or an array of strings. */ warning?: string | string[]; /** * Description text to display below the field. */ description?: HelperProps["description"]; /** * Hint text to display below the field. */ hint?: HelperProps["hint"]; } & import('react').RefAttributes>;