import "./choice_list.css"; import type * as React from "react"; import { useRender } from "@base-ui/react/use-render"; import { type StyleProps } from "./style_props"; export interface ChoiceOption { label: string; value: string; description?: string; } export interface ChoiceListProps extends StyleProps { options: ChoiceOption[]; /** An option's `value`, or with `allowCustom` the free text of an "Other" answer. */ value?: string; onSelect: (value: string) => void; /** * An always-visible text field whose text is the value; any `value` matching no option reads as * custom. */ allowCustom?: boolean; /** The question the group answers, announced before its options. */ accessibilityLabel: string; testID?: string; ref?: React.Ref; render?: useRender.RenderProp; } /** * A vertical single-select set of divider-separated answers — a form's radio set, a wizard step, * the agent's quick replies. A Base UI radio group: one tab stop, arrows between options, * `aria-checked`. With `allowCustom`, an inline text field captures an answer the set lacks. */ export declare function ChoiceList({ options, value, onSelect, allowCustom, accessibilityLabel, testID, render, ref, ...props }: ChoiceListProps): React.ReactElement>;