import { EpPropMergeType } from "../../../utils/vue/props/types.js"; import { TooltipInstance } from "../../tooltip/src/tooltip.js"; import { ScrollbarDirection, ScrollbarInstance } from "../../scrollbar/src/scrollbar.js"; import { SelectEmits, SelectProps } from "./select.js"; import { OptionBasic, OptionPublicInstance, OptionValue, SelectStates } from "./type.js"; import * as _$vue from "vue"; import { Component } from "vue"; import * as _$_vueuse_core0 from "@vueuse/core"; //#region ../../packages/components/select/src/useSelect.d.ts declare const useSelect: (props: SelectProps, emit: SelectEmits) => { inputId: _$vue.Ref; contentId: _$vue.Ref; nsSelect: { namespace: _$vue.ComputedRef; b: (blockSuffix?: string) => string; e: (element?: string) => string; m: (modifier?: string) => string; be: (blockSuffix?: string, element?: string) => string; em: (element?: string, modifier?: string) => string; bm: (blockSuffix?: string, modifier?: string) => string; bem: (blockSuffix?: string, element?: string, modifier?: string) => string; is: { (name: string, state: boolean | undefined): string; (name: string): string; }; cssVar: (object: Record) => Record; cssVarName: (name: string) => string; cssVarBlock: (object: Record) => Record; cssVarBlockName: (name: string) => string; }; nsInput: { namespace: _$vue.ComputedRef; b: (blockSuffix?: string) => string; e: (element?: string) => string; m: (modifier?: string) => string; be: (blockSuffix?: string, element?: string) => string; em: (element?: string, modifier?: string) => string; bm: (blockSuffix?: string, modifier?: string) => string; bem: (blockSuffix?: string, element?: string, modifier?: string) => string; is: { (name: string, state: boolean | undefined): string; (name: string): string; }; cssVar: (object: Record) => Record; cssVarName: (name: string) => string; cssVarBlock: (object: Record) => Record; cssVarBlockName: (name: string) => string; }; states: { inputValue: string; options: Map, OptionPublicInstance> & Omit, OptionPublicInstance>, keyof Map>; cachedOptions: Map, OptionPublicInstance> & Omit, OptionPublicInstance>, keyof Map>; optionValues: OptionValue[]; selected: { index: number; value: OptionValue; currentLabel: OptionPublicInstance["currentLabel"]; isDisabled?: OptionPublicInstance["isDisabled"] | undefined; }[]; hoveringIndex: number; inputHovering: boolean; selectionWidth: number; collapseItemWidth: number; previousQuery: string | null; selectedLabel: string; menuVisibleOnFocus: boolean; isBeforeHide: boolean; }; isFocused: _$vue.Ref; expanded: _$vue.Ref; optionsArray: _$vue.ComputedRef; hoverOption: _$vue.Ref; selectSize: _$vue.ComputedRef<"" | "default" | "small" | "large">; filteredOptionsCount: _$vue.ComputedRef; updateTooltip: () => void; updateTagTooltip: () => void; debouncedOnInputChange: _$_vueuse_core0.UseDebounceFnReturn<() => void>; onInput: (event: Event) => void; deletePrevTag: (e: KeyboardEvent) => void; deleteTag: (event: MouseEvent, tag: OptionBasic) => void; deleteSelected: (event: Event) => void; handleOptionSelect: (option: OptionPublicInstance) => void; scrollToOption: (option: OptionPublicInstance | OptionPublicInstance[] | SelectStates["selected"]) => void; hasModelValue: _$vue.ComputedRef; shouldShowPlaceholder: _$vue.ComputedRef; currentPlaceholder: _$vue.ComputedRef; mouseEnterEventName: string | null; needStatusIcon: _$vue.ComputedRef; showClearBtn: _$vue.ComputedRef; iconComponent: _$vue.ComputedRef (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown>>; iconReverse: _$vue.ComputedRef; validateState: _$vue.ComputedRef<"" | "success" | "error" | "validating">; validateIcon: _$vue.ComputedRef; showNewOption: _$vue.ComputedRef; updateOptions: () => void; collapseTagSize: _$vue.ComputedRef<"default" | "small">; setSelected: () => void; selectDisabled: _$vue.ComputedRef; emptyText: _$vue.ComputedRef; handleCompositionStart: (event: CompositionEvent) => void; handleCompositionUpdate: (event: CompositionEvent) => void; handleCompositionEnd: (event: CompositionEvent) => void; handleKeydown: (e: KeyboardEvent) => void; onOptionCreate: (vm: OptionPublicInstance) => void; onOptionDestroy: (key: OptionValue, vm: OptionPublicInstance) => void; handleMenuEnter: () => void; focus: () => void; blur: () => void; handleClearClick: (event: Event) => void; handleClickOutside: (event: Event) => void; handleEsc: () => void; toggleMenu: (event?: Event) => void; selectOption: () => void; getValueKey: (item: OptionPublicInstance | SelectStates["selected"][0]) => any; navigateOptions: (direction: "prev" | "next") => void; dropdownMenuVisible: _$vue.WritableComputedRef; showTagList: _$vue.ComputedRef<{ index: number; value: OptionValue; currentLabel: OptionPublicInstance["currentLabel"]; isDisabled?: OptionPublicInstance["isDisabled"] | undefined; }[]>; collapseTagList: _$vue.ComputedRef<{ index: number; value: OptionValue; currentLabel: OptionPublicInstance["currentLabel"]; isDisabled?: OptionPublicInstance["isDisabled"] | undefined; }[]>; popupScroll: (data: { scrollTop: number; scrollLeft: number; }) => void; getOption: (value: OptionValue) => { index: number; value: EpPropMergeType<(BooleanConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[], unknown, unknown>; currentLabel: any; } | { index: number; value: EpPropMergeType<(BooleanConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[], unknown, unknown>; currentLabel: string | number | boolean; readonly isDisabled: boolean; }; endReached: (direction: ScrollbarDirection) => void; tagStyle: _$vue.ComputedRef<{ maxWidth: string; }>; collapseTagStyle: _$vue.ComputedRef<{ maxWidth: string; }>; popperRef: _$vue.ComputedRef; inputRef: _$vue.Ref; tooltipRef: _$vue.Ref; tagTooltipRef: _$vue.Ref; prefixRef: _$vue.Ref; suffixRef: _$vue.Ref; selectRef: _$vue.Ref; wrapperRef: _$vue.ShallowRef; selectionRef: _$vue.Ref; scrollbarRef: _$vue.Ref; menuRef: _$vue.Ref; tagMenuRef: _$vue.Ref; collapseItemRef: _$vue.Ref; }; //#endregion export { useSelect };