import { type ComponentPropsWithoutRef } from 'react'; import * as RadixRadioGroup from '@radix-ui/react-radio-group'; import { type VariantProps } from 'class-variance-authority'; import { type RadioGroupVariant } from './radio-group-context'; /** Agent-readiness curated handle for RadioGroup. */ export interface RadioGroupHandle { getValue: () => string; setValue: (value: string) => void; } declare const radioGroupVariants: (props?: ({ variant?: "vertical" | "horizontal" | "card" | "segmented" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined) => string; type RadixRootProps = ComponentPropsWithoutRef; export interface RadioGroupProps extends Omit, VariantProps { children: React.ReactNode; /** * `segmented` is a one-line strip of icon + label segments (give each * `Radio` an `icon`, and a `shortLabel` when the full label is long). It * fills its container's inline size; when the labels no longer fit, every * segment shows its icon alone with its label in a tooltip. Its `Radio` * children must be direct elements (a `.map` is fine) so the group can * measure them. */ variant?: RadioGroupVariant; label?: string; /** Rendered at the inline START of the legend line, `--spacing-xs` before * the text — a status chip or a marker, never a control. Its text joins * the group's accessible name, and it leads the question so a reader * never has to cross the line to learn what the mark refers to. */ labelStart?: React.ReactNode; /** Rendered at the inline end of the legend line — a status chip or a * marker, never a control. Its text joins the group's accessible name. */ labelEnd?: React.ReactNode; /** Segmented variant only: rendered just after the track, on the same * line and outside the radiogroup — e.g. an `InfoTip` explaining a * disabled segment. Its width is kept out of the labels' budget. */ controlEnd?: React.ReactNode; description?: string; error?: string; required?: boolean; } export declare const RadioGroup: import("react").ForwardRefExoticComponent>; export {}; //# sourceMappingURL=radio-group.d.ts.map