import '../sass/form.sass'; import '../../dropdown/dropdown.sass'; import './autocomplete.sass'; import { Eq } from 'fp-ts/lib/Eq'; import { FunctionN, Predicate } from 'fp-ts/lib/function'; import { PropType, VNode } from 'vue'; export interface AutocompleteItem { id: string; isSelected: boolean; isHovered: boolean; text: string; value: T; index: number; } export declare const BAutocomplete: import("vue").DefineComponent<{ selectedItems: { type: PropType; required: true; }; items: { type: PropType; default: import("fp-ts/lib/function").Lazy; }; itemFilter: { type: PropType>>; required: false; }; itemId: { type: PropType<(item: unknown) => any>; default: string; }; itemText: { type: PropType<(item: unknown) => any>; default: string; }; closeOnSelect: { type: PropType; default: boolean; }; clearOnSelect: { type: PropType; default: boolean; }; openOnFocus: { type: PropType; default: boolean; }; onSelected: { type: PropType>; required: false; }; "onUpdate:selectedItems": { type: PropType>; default: import("fp-ts/lib/function").Lazy>; }; modelValue: { type: PropType; required: false; }; 'onUpdate:modelValue': { type: PropType>; default: import("fp-ts/lib/function").Lazy>; }; themeMap: { type: PropType; required: boolean; default: import("fp-ts/lib/function").Lazy; }; isThemeable: { type: PropType; required: boolean; default: boolean; }; eq: { type: PropType>; default: import("fp-ts/lib/function").Lazy>; }; isFocused: { type: PropType; default: boolean; }; onFocus: { type: PropType<(e?: Event | undefined) => void>; required: false; }; onBlur: { type: PropType<(e?: Event | undefined) => void>; required: false; }; focusOnMount: { type: PropType; default: boolean; }; isDisabled: { type: PropType; required: boolean; default: boolean; }; isReadonly: { type: PropType; required: boolean; default: boolean; }; disableIfReadonly: { type: PropType; required: boolean; default: boolean; }; useNativeValidation: { type: PropType; default: boolean; }; isValid: { type: PropType; default: boolean; }; 'onUpdate:isValid': { type: PropType>; default: import("fp-ts/lib/function").Lazy<() => void>; }; variant: { type: PropType; default: ""; }; type: { type: PropType; }; autocomplete: { type: PropType; }; placeholder: { type: PropType; }; size: { type: PropType; default: import("../../..").SizeVariant; }; isRequired: { type: BooleanConstructor; default: boolean; }; isExpanded: { type: PropType; default: boolean; }; isLoading: { type: PropType; default: boolean; }; isRounded: { type: PropType; default: boolean; }; maxlength: { type: PropType; }; icon: null; usePasswordReveal: { type: PropType; default: undefined; }; }, () => VNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{ isThemeable: boolean; themeMap: import("../../..").ThemeColorMap; variant: import("../../..").ColorVariant; size: import("../../..").SizeVariant; isExpanded: boolean; isRounded: boolean; isLoading: boolean; isFocused: boolean; isDisabled: boolean; focusOnMount: boolean; "onUpdate:modelValue": FunctionN<[string], void>; isReadonly: boolean; disableIfReadonly: boolean; useNativeValidation: boolean; isValid: boolean; "onUpdate:isValid": FunctionN<[boolean], void>; isRequired: boolean; usePasswordReveal: boolean; selectedItems: unknown[]; "onUpdate:selectedItems": FunctionN<[unknown[]], void>; items: unknown[]; itemId: (item: unknown) => any; itemText: (item: unknown) => any; closeOnSelect: boolean; clearOnSelect: boolean; openOnFocus: boolean; eq: Eq; } & { icon?: any; type?: string | undefined; onFocus?: ((e?: Event | undefined) => void) | undefined; onBlur?: ((e?: Event | undefined) => void) | undefined; modelValue?: string | undefined; autocomplete?: string | undefined; placeholder?: string | undefined; maxlength?: string | number | undefined; itemFilter?: FunctionN<[string], Predicate> | undefined; onSelected?: FunctionN<[unknown], void> | undefined; }>, { isThemeable: boolean; themeMap: import("../../..").ThemeColorMap; variant: import("../../..").ColorVariant; size: import("../../..").SizeVariant; isExpanded: boolean; isRounded: boolean; isLoading: boolean; isFocused: boolean; isDisabled: boolean; focusOnMount: boolean; "onUpdate:modelValue": FunctionN<[string], void>; isReadonly: boolean; disableIfReadonly: boolean; useNativeValidation: boolean; isValid: boolean; "onUpdate:isValid": FunctionN<[boolean], void>; isRequired: boolean; usePasswordReveal: boolean; "onUpdate:selectedItems": FunctionN<[unknown[]], void>; items: unknown[]; itemId: (item: unknown) => any; itemText: (item: unknown) => any; closeOnSelect: boolean; clearOnSelect: boolean; openOnFocus: boolean; eq: Eq; }>;