import { Option, ComboboxVisibleOption } from '@wolf-tui/shared'; export type UseComboboxStateProps = { options: () => Option[]; defaultValue?: string; visibleOptionCount?: number; placeholder?: string; noMatchesText?: string; onChange?: (inputValue: string) => void; onSelect?: (value: string) => void; }; export type ComboboxStateResult = { inputValue: () => string; cursorOffset: () => number; isOpen: () => boolean; visibleOptions: () => ComboboxVisibleOption[]; selectedValue: () => string | undefined; isDisabled: () => boolean; placeholder: () => string; noMatchesText: () => string; hasScrollUp: () => boolean; hasScrollDown: () => boolean; insertText: (text: string) => void; deleteChar: () => void; deleteForward: () => void; cursorLeft: () => void; cursorRight: () => void; cursorStart: () => void; cursorEnd: () => void; focusNextOption: () => void; focusPreviousOption: () => void; selectFocused: () => void; autofillFocused: () => void; close: () => void; }; export declare const useComboboxState: ({ options: optionsAccessor, defaultValue, visibleOptionCount, placeholder, noMatchesText, onChange, onSelect, }: UseComboboxStateProps) => ComboboxStateResult; //# sourceMappingURL=use-combobox-state.svelte.d.ts.map