/** * @fileoverview ``: an input that suggests options as you type. * @description Light-DOM custom element on the shared typeahead engine * (`base/typeahead.ts`). The visible input is the form value (free text is * allowed) and the anchored `popover="manual"` panel suggests matches ranked * by the vendored cmdk scorer. Committing a suggestion (Enter or click) fills * the input; without JavaScript the markup degrades to a plain `.ui-input`. * * Attributes on the root: * - `data-sort="score"`: re-rank visually by match score (default: DOM order). * - `data-min-length=""`: query length before the panel opens (default 0). * * Parts: `autocomplete-panel` (popover="manual"), `autocomplete-list` * ([role="listbox"]), `autocomplete-item` ([role="option"], `data-value`, * optional `data-keywords`), `autocomplete-group` / `autocomplete-group-label`, * `autocomplete-empty`. */ import { TypeaheadElement } from "../../base/typeahead.ts"; declare class UiAutocomplete extends TypeaheadElement { protected readonly slotPrefix = "autocomplete"; /** * @description Committing a suggestion fills the visible input (which is * the form value), closes the panel, and returns to typing position. * * @param item - The committed option. */ protected commit(item: HTMLElement, _source: "keyboard" | "pointer"): void; } export { UiAutocomplete }; //# sourceMappingURL=autocomplete.d.ts.map