import type { CSSProperties, ReactNode } from 'react'; import type { SxProp } from '../Layout/sx.cjs'; export type MultiSelectOption = { value: string; label: string; /** Optional muted description shown next to the label. */ description?: string; /** Optional icon rendered before the label. */ icon?: ReactNode; /** Optional group label — items with the same group end up together. */ group?: string; /** Prevent selection. */ disabled?: boolean; }; export type MultiSelectSize = 'sm' | 'md' | 'lg'; export type MultiSelectColor = 'primary' | 'danger' | 'warning' | 'success'; export interface MultiSelectProps { /** Flat list of options. `group` on each option produces sectioned dropdown. */ options: MultiSelectOption[]; /** Controlled selected values. */ value?: string[]; /** Uncontrolled initial selection. */ defaultValue?: string[]; /** Called when the selection changes. */ onValueChange?: (next: string[]) => void; /** Shown inside the trigger when nothing is selected. */ placeholder?: string; /** Placeholder inside the dropdown search input. */ searchPlaceholder?: string; /** Empty-state text inside the dropdown. */ emptyText?: string; /** Cap on how many can be selected. */ maxItems?: number; /** Show a clear-all (×) button in the trigger while anything is selected. */ clearable?: boolean; /** Show at most this many chips; the rest collapse into a "+N" chip. */ maxVisibleChips?: number; /** Show a "Select all / Clear" row above the options. Respects `maxItems` and disabled options. */ showSelectAll?: boolean; /** Size of the trigger. */ size?: MultiSelectSize; /** Validation color. */ color?: MultiSelectColor; /** Disable the control. */ disabled?: boolean; /** `id` for Field-threading. */ id?: string; /** aria-invalid / aria-describedby threaded in from Field. */ 'aria-invalid'?: boolean; 'aria-describedby'?: string; /** aria-label for the combobox. Falls back to the placeholder when no label is associated. */ 'aria-label'?: string; /** Id of the element that labels the combobox (Field threads this in). */ 'aria-labelledby'?: string; /** Extra class on the trigger. */ className?: string; /** Inline style applied to the trigger (the inline field). */ style?: CSSProperties; /** * One-off CSS, same as `Box`'s `sx`: each value may be a scalar or a * responsive breakpoint map (`{ base, sm, md, lg, xl }`). Applied to the * trigger. Scalar-only sx merges into inline style; responsive sx injects * a scoped class. */ sx?: SxProp; } /** * MultiSelect — a combobox with a searchable list and chip tokens for * the selected values. Built on @radix-ui/react-popover (positioning + * focus management) and cmdk (search + filtering). */ export declare function MultiSelect({ options, value, defaultValue, onValueChange, placeholder, searchPlaceholder, emptyText, maxItems, clearable, maxVisibleChips, showSelectAll, size, color, disabled, id, className, style, sx, 'aria-invalid': ariaInvalid, 'aria-describedby': ariaDescribedBy, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, }: MultiSelectProps): import("react/jsx-runtime").JSX.Element;