import { InputInstance } from "../../input/src/instance.js"; import "../../input/index.js"; import { TooltipInstance } from "../../tooltip/src/tooltip.js"; import "../../tooltip/index.js"; import { AutocompleteData, AutocompleteDataItem, AutocompleteProps } from "./autocomplete.js"; import * as vue from "vue"; import { Ref } from "vue"; //#region ../../packages/components/autocomplete/src/autocomplete.vue.d.ts declare const __VLS_export: (__VLS_props: NonNullable>["props"], __VLS_ctx?: __VLS_PrettifyLocal>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable>["expose"], __VLS_setup?: Promise<{ props: vue.PublicProps & __VLS_PrettifyLocal & { onChange?: ((value: string | number) => any) | undefined; onClear?: (() => any) | undefined; "onUpdate:modelValue"?: ((value: string | number) => any) | undefined; onInput?: ((value: string | number) => any) | undefined; onFocus?: ((evt: FocusEvent) => any) | undefined; onSelect?: ((item: Record) => any) | undefined; onBlur?: ((evt: FocusEvent) => any) | undefined; }> & (typeof globalThis extends { __VLS_PROPS_FALLBACK: infer P; } ? P : {}); expose: (exposed: vue.ShallowUnwrapRef<{ /** @description the index of the currently highlighted item */highlightedIndex: Ref; /** @description autocomplete whether activated */ activated: Ref; /** @description remote search loading status */ loading: Ref; /** @description el-input component instance */ inputRef: Ref; /** @description el-tooltip component instance */ popperRef: Ref; /** @description fetch suggestions result */ suggestions: Ref, AutocompleteData>; /** @description triggers when a suggestion is clicked */ handleSelect: (item: T) => Promise; /** @description handle keyboard enter event */ handleKeyEnter: () => Promise; /** @description focus the input element */ focus: () => void; /** @description blur the input element */ blur: () => void; /** @description close suggestion */ close: () => void; /** @description highlight an item in a suggestion */ highlight: (index: number) => void; /** @description loading suggestion list */ getData: (queryString: string) => Promise; }>) => void; attrs: any; slots: { prepend?: (props: {}) => any; } & { append?: (props: {}) => any; } & { prefix?: (props: {}) => any; } & { suffix?: (props: {}) => any; } & { header?: (props: {}) => any; } & { loading?: (props: {}) => any; } & { default?: (props: { item: T; }) => any; } & { footer?: (props: {}) => any; }; emit: ((event: "change", value: string | number) => void) & ((event: "clear") => void) & ((event: "update:modelValue", value: string | number) => void) & ((event: "input", value: string | number) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "select", item: Record) => void) & ((event: "blur", evt: FocusEvent) => void); }>) => vue.VNode & { __ctx?: Awaited; }; declare const _default: typeof __VLS_export; type __VLS_PrettifyLocal = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {}; //#endregion export { _default };