/** * Combobox — type-to-filter over RAW tool output (W2 §The Kit). * Select's shape for a list too long to scan; the same labelField/valueField. */ import { Combobox as Base } from "@base-ui/react/combobox"; import { type ComponentProps } from "react"; import { type KitStyled, type KitEngine, type KitRendered } from "../tokens.js"; import { type KitChoice, type KitOption } from "./options.js"; interface ComboboxOwnProps extends KitStyled { label?: string; /** Raw items — primitives or objects. An item's own `disabled` and `group` * keys make it unselectable and file it under a heading. */ options: KitOption[]; labelField?: string; valueField?: string; value?: string; placeholder?: string; hint?: string; disabled?: boolean; /** Bound change handler; receives the chosen value. */ onChange?: (value: string) => void; } /** Plus any Base UI `` prop, handed straight to the combobox. * `style` stays the Kit's own — it dresses the ROOT the label and hint share. * Pinned to `KitChoice`: unpinned, the Root's item generic resolves to * `unknown` and the spread drags the whole element's inference down with it. */ export type ComboboxProps = ComboboxOwnProps & KitEngine>, ComboboxOwnProps>; export declare function Combobox({ label, options: rawOptions, labelField, valueField, value, placeholder, hint, disabled, onChange, style, children, pending, ...engine }: ComboboxProps & KitRendered): import("react").JSX.Element; export {};