import type { ComponentProps, ReactNode } from 'react'; export type RadioGroupSize = 'sm' | 'md'; export type RadioGroupOrientation = 'vertical' | 'horizontal'; export interface RadioGroupProps extends Omit, 'onChange' | 'defaultValue'> { /** Visible group name, rendered as the fieldset ``. */ label?: ReactNode; /** Help text under the options, linked to the group with `aria-describedby`. */ description?: ReactNode; /** Invalid state. A message replaces the description; `true` keeps it. */ error?: ReactNode | boolean; /** Form field name shared by every Radio. Generated when omitted. */ name?: string; /** Selected value (controlled). Use `''` for "nothing selected". */ value?: string; /** Initially selected value (uncontrolled). */ defaultValue?: string; /** Called with the new value when the user picks another option. */ onValueChange?: (value: string) => void; /** Stack the options (`vertical`) or lay them out in a wrapping row (`horizontal`). */ orientation?: RadioGroupOrientation; /** Dot size: 18px (`sm`) or 22px (`md`). */ size?: RadioGroupSize; /** Requires a selection: native `required` on every radio plus `aria-required` on the group. */ required?: boolean; } export interface RadioProps extends Omit, 'type' | 'size' | 'name' | 'checked' | 'defaultChecked' | 'value'> { /** The value this option stands for. Reported by the group and submitted with the form. */ value: string; /** Visible label, associated with the radio. */ label?: ReactNode; /** Help text under the label, linked with `aria-describedby`. */ description?: ReactNode; } /** Pick exactly one option from a small visible set: a fieldset of native radios drawn as brutalist dots. */ export declare function RadioGroup({ label, description, error, name, value, defaultValue, onValueChange, orientation, size, required, id, className, disabled, children, 'aria-describedby': describedBy, ...rest }: RadioGroupProps): import("react").JSX.Element; /** One option of a RadioGroup: a native radio drawn as a dot, with label and description. */ export declare function Radio({ value, label, description, id, className, disabled, required, onChange, 'aria-describedby': describedBy, ...rest }: RadioProps): import("react").JSX.Element;