import type { HTMLAttributes, ReactNode } from 'react'; import { type SegmentLayout, type SegmentTone } from './segmented.js'; export interface SegmentedOption { value: T; label: string; icon?: ReactNode; /** Beside the label, or in the corner when only the icon shows. */ badge?: ReactNode; /** How many things the choice holds, as a pill after the label. */ count?: number | undefined; /** Colors the label and the count, for a choice that needs attention. */ tone?: SegmentTone | undefined; /** Can't be chosen now; it still shows, and the rest still work. */ disabled?: boolean | undefined; testId?: string; } /** What else reaches the group's root element, such as `onContextMenu` for a * menu on the whole control, `id` or `aria-describedby`. Its look and its * value stay the control's own. */ export type SegmentedControlRootProps = Omit, 'children' | 'className' | 'style' | 'defaultValue' | 'onChange' | 'dir' | 'aria-label'>; /** A few mutually exclusive choices side by side, one always current, such as * a time range or what to group by. To move between views or pages, use * `Tabs` with `variant="segmented"`, which looks the same. To filter a list * by values that may all be off, or several at once, use `ToggleGroup`. Name * it with `label`, or leave that out inside a `Field group`, whose legend * names it. */ export declare function SegmentedControl({ label, options, value, onValueChange, fill, iconOnly, size, disabled, testId, ...rest }: SegmentedControlRootProps & SegmentLayout & { label?: string | undefined; options: SegmentedOption[]; value: T; onValueChange?: (value: T) => void; /** None of the choices can be changed now, such as for a reader without * the right to; the current one still shows. */ disabled?: boolean | undefined; testId?: string; }): import("react").JSX.Element;