import React from 'react'; import * as RadioRadix from '@radix-ui/react-radio-group'; import type { RadioGroupItemProps, RadioGroupProps } from '@radix-ui/react-radio-group'; import type { Error } from '../../types/shared/form'; export type RadioProps = Omit & { name: string; /** Display an error message */ error?: Error; /** Toggles display of the title */ titleHidden?: boolean; /** Callback when the selected choices change */ onChange?(selected: string, name: string | undefined): void; }; export interface RadioItemProps extends RadioGroupItemProps { value: string; /** Additional text to aide in use */ helpText?: React.ReactNode; /** add classname */ className?: string; } declare const RadioGroup: React.ForwardRefExoticComponent & { name: string; /** Display an error message */ error?: Error; /** Toggles display of the title */ titleHidden?: boolean; /** Callback when the selected choices change */ onChange?(selected: string, name: string | undefined): void; } & React.RefAttributes>; declare const RadioItem: ({ children, className, ...props }: RadioItemProps) => import("react/jsx-runtime").JSX.Element; export { RadioItem, RadioGroup };