import { EventEmitter } from '../../stencil-public-runtime'; import type { ComboboxValue, ComboboxItem, ComboboxChangeEventDetail, ComboboxSearchEventDetail, ComboboxCustomValueEventDetail, ComboboxMultiSelectDisplay } from '../../utils/combobox'; import { FormControlState } from '../../utils/form-control'; /** * @slot - Content containing seki-combobox-input and seki-combobox-content */ export declare class SekiCombobox { el: HTMLElement; internals: ElementInternals; private formControl?; /** Current selected value (controlled mode) */ value?: ComboboxValue; /** Initial selected value (uncontrolled mode) */ defaultValue?: ComboboxValue; /** Static items for client-side filtering */ items?: ComboboxItem[]; /** Enable multi-select mode */ multiple: boolean; /** Multi-select display mode */ multiSelectDisplay: ComboboxMultiSelectDisplay; /** Allow values not in the list */ allowCustomValue: boolean; /** Debounce delay for search (ms) */ debounce: number; /** Placeholder text */ placeholder: string; /** Disable component */ disabled: boolean; /** Mark as required */ required: boolean; /** Form field name for form submission */ name?: string; /** Control dropdown open state (controlled mode) */ open?: boolean; /** Initial dropdown open state (uncontrolled mode) */ defaultOpen: boolean; /** Set loading state externally (for async) */ loading: boolean; /** Accessible label for screen readers */ ariaLabel?: string; /** ID of element that labels this combobox */ ariaLabelledby?: string; /** ID of element that describes this combobox */ ariaDescribedby?: string; /** Emitted when selected value changes */ sekiChange: EventEmitter; /** Emitted when search query changes (after debounce) */ sekiSearch: EventEmitter; /** Emitted when a custom value is submitted */ sekiCustomValue: EventEmitter; /** * Internal: notifies slotted children (input/items) that comboboxContext was * refreshed, so they can update their selection/focus/open visuals. Slotted * children don't re-render when the parent does, so without this their * aria-selected/aria-expanded/chips freeze at mount values (#258). * Same mechanism as seki-select's sekiSelectContextChange (#244). */ sekiComboboxContextChange: EventEmitter; internalValue: ComboboxValue; isOpen: boolean; searchQuery: string; focusedItemValue: string | null; registeredItems: ComboboxItem[]; filteredItems: ComboboxItem[]; private listboxId; private inputId; private triggerId; private debounceTimeoutId; private clickOutsideListener?; componentWillLoad(): void; componentDidLoad(): void; componentDidRender(): void; /** * Place on the overlay stack (utils/overlay.ts). The input already closes * the list on Escape; registering the open list as a layer keeps that key * from also closing an enclosing dialog or sheet (#332). */ private layer; disconnectedCallback(): void; handleValuePropChange(newValue: ComboboxValue): void; handleFormStateChange(): void; formResetCallback(): void; formDisabledCallback(disabled: boolean): void; formStateRestoreCallback(state: FormControlState): void; /** Put the selection back to `next` without emitting `sekiChange` (reset is not a user edit). */ private setValueFromForm; private isValueEmpty; private getFormValue; handleOpenPropChange(newOpen: boolean): void; handleItemsPropChange(newItems: ComboboxItem[]): void; handleStateChange(): void; handleKeyboardEvent(event: CustomEvent<{ key: string; }>): void; private updateContextOnElement; private handleClickOutside; /** Programmatically open the dropdown */ openDropdown(): Promise; /** Programmatically close the dropdown */ closeDropdown(): Promise; /** Clear all selections */ clearSelection(): Promise; /** Set the search query programmatically */ setQuery(query: string): Promise; /** Handle keyboard navigation */ private handleKeyboard; private focusNextItem; private focusPreviousItem; private filterItems; handleSearchChange: (query: string) => void; handleValueChange: (newValue: ComboboxValue) => void; handleOpenChange: (open: boolean) => void; handleItemFocus: (value: string) => void; handleItemSelect: (value: string) => void; handleRemoveValue: (value: string) => void; handleCustomValueCreate: (value: string) => void; isValueSelected: (value: string) => boolean; getSelectedItems: () => ComboboxItem[]; getFilteredItems: () => ComboboxItem[]; registerItem: (item: ComboboxItem) => void; unregisterItem: (value: string) => void; private buildComboboxContext; render(): any; }