import type { ReactNode } from 'react'; export interface ToggleGroupOption { value: T; label: string; /** Before the label, such as a `StatusDot` in the status's tone or a provider's logo. */ icon?: ReactNode; /** How many items the option matches, after the label. */ count?: number | undefined; disabled?: boolean | undefined; /** `warning`: an option asking to be looked at, such as "Needs attention", whose label takes * the warning tone while it is off. */ tone?: 'warning' | undefined; testId?: string; } export interface ToggleGroupProps { /** Names the group for assistive technology. Leave it out inside a * `Field group`, whose legend names it. */ label?: string | undefined; options: readonly ToggleGroupOption[]; /** The pressed options. Empty filters nothing out. */ value: readonly T[]; /** Called with the pressed options in the order `options` lists them. */ onValueChange: (value: T[]) => void; /** Several options may be pressed at once; `false` allows one or none. */ multiple?: boolean | undefined; /** Leads with an "All" option, pressed while nothing else is, that clears * the others. `{ count }` shows the total beside it. */ all?: boolean | { count?: number | undefined; } | undefined; /** The All option's words, for one that names what it covers, such as "All types". */ allLabel?: ReactNode; size?: 'sm' | 'md' | undefined; disabled?: boolean | undefined; /** Names an element that says more about the group, such as a live summary * of what the filter lets through. */ 'aria-describedby'?: string | undefined; testId?: string; className?: string | undefined; /** Whether an option that's off dims its icon so the pressed ones lead (default true). * `false` keeps icons whose color means something, such as status lamps, at full strength; * the fill and check still say which are on. */ dimIcons?: boolean | undefined; } /** Options that narrow a list, such as run statuses or job states, as a row of * toggle buttons that wraps on a narrow screen. Pressing one adds it to the * filter and pressing it again takes it out, so an empty filter shows * everything; with `multiple={false}` pressing one replaces the last. Each * option may carry an icon, such as a status dot, and a count. * * Use `SegmentedControl` instead for a setting that always has exactly one * value, such as a time range, what to group by, or which view of the same * data to show. A filter that may be off, or takes several values, is a * `ToggleGroup`. */ export declare function ToggleGroup({ label, options, value, onValueChange, multiple, all, allLabel, size, disabled, 'aria-describedby': describedBy, testId, className, dimIcons, }: ToggleGroupProps): import("react").JSX.Element;