import { ReactNode } from 'react'; export interface ComboboxOption { value: string; label: string; } interface ComboboxPropsBase { options: ComboboxOption[]; placeholder?: string; searchPlaceholder?: string; disabled?: boolean; error?: string; loading?: boolean; onSearch?: (query: string) => void; className?: string; creatable?: boolean; /** * Static hint rendered inside the open panel, under the search box, whenever * `creatable` is on — it stays visible before AND after typing, so the * "a new value can be entered here" affordance does not depend on the user * already having typed (the create row only appears once there is a query). * Caller-supplied content (no package default literal — see the shared-copy * rule); ignored when `creatable` is false. Closed-state affordance stays the * caller's `placeholder`. (NB-COMBO-CREATE-HINT-01) */ createHint?: ReactNode; } interface ComboboxPropsSingle extends ComboboxPropsBase { multiple?: false; value?: string; onChange?: (value: string) => void; } interface ComboboxPropsMultiple extends ComboboxPropsBase { multiple: true; value?: string[]; onChange?: (value: string[]) => void; } export type ComboboxProps = ComboboxPropsSingle | ComboboxPropsMultiple; export declare function Combobox({ options, value, onChange, placeholder, searchPlaceholder, multiple, disabled, error, loading, onSearch, className, creatable, createHint, }: ComboboxProps): import("react").JSX.Element; export {}; //# sourceMappingURL=Combobox.d.ts.map