import { FormRenderProps, VariantProps } from '../../../utils'; /** * Multi-select autocomplete backed by `react-hook-form`. * * Key behaviours: * - Values stored as **`string[]`** in the form field. * - Accepts CSV strings and normalises them automatically (backward-compat * with older API responses). * - Shows individual chips for up to `maxChips` selections, then collapses * into a single **"N selected"** chip with a tooltip listing all labels. * - The "N selected" chip has a **delete button** that clears all selections. * - **`onChangeFn` is only called on genuine user interactions** (select / * remove / clear). Pre-populating the form with `defaultValues` or calling * `reset()` does **not** trigger `onChangeFn`, preventing unwanted API calls. * - `onChangeFn` receives a `string[]` (not a CSV string). */ declare const MultiSelectAutocomplete: ({ props, variant, maxChips, }: { props: FormRenderProps; variant: VariantProps; /** * Maximum number of chips shown individually before collapsing into * "N selected". Default: `2`. */ maxChips?: number; }) => import("react/jsx-runtime").JSX.Element; export default MultiSelectAutocomplete;