import { Ref } from 'vue'; import { SelectContext } from '../lib/context'; import { CreateItemMode } from '../lib/create-item'; import { FilterByFn } from '../lib/filter'; import { SelectModelValue } from '../types/model'; import { SelectOption } from '../types/option'; import { useSelectCollection } from './useSelectCollection'; type SelectStateEvents = { onMenuOpened?: () => void; onMenuClosed?: () => void; onSearch?: (value: string) => void; onCreate?: (value: string) => void; onOptionSelected?: (value: OptionValue) => void; onOptionDeselected?: (value: OptionValue | null) => void; }; type UseSelectStateParams = { modelValue: Ref>; multiple: Ref; disabled: Ref; searchable: Ref; clearable: Ref; loading: Ref; closeOnSelect?: Ref; resetSearchOnBlur?: Ref; resetSearchOnSelect?: Ref; hideSelected?: Ref; createItem?: Ref; propOptions: Ref[]>; filterBy: Ref>; collection: ReturnType>; events?: SelectStateEvents; }; export declare function useSelectState(params: UseSelectStateParams): { context: SelectContext; }; export {};