import { LitElement, PropertyValues } from "lit"; import { CommandRegistry } from "@clinth/ui-commands"; type NarrowedTextItem = Readonly<{ value: string; label?: string; description?: string; iconName?: string; selected?: boolean; }>; type NarrowedTextChangeDetail = { readonly item: NarrowedTextItem | undefined; readonly query: string; readonly selected: readonly NarrowedTextItem[]; }; type NarrowedTextChangeEvent = CustomEvent; type SelectionMode = `single` | `multi`; type Orientation = `horizontal` | `vertical`; type FuzzySearchResult = { item: NarrowedTextItem; positions: ReadonlySet; score: number; }; declare class NarrowedTextElement extends LitElement { #private; selectionMode: SelectionMode; requiredSelection: boolean; orientation: Orientation; nowrap: boolean; separator: string; width: string | undefined; height: string | undefined; preserveFilter: boolean; value: string; registry: CommandRegistry | undefined; /** * The options, as data. When set, it replaces the `` children (which cost a DOM element * per option: ~100 bytes of JS plus ~1 KB of DOM each at 100k). Not read from attributes. */ items: readonly NarrowedTextItem[] | undefined; private _query; private _computedItems; private _filteredItems; /** How many of `_filteredItems` are in the DOM; the rest render as the end of the list scrolls into view. */ private _renderLimit; private _isFocused; private _slot; private _selectedValues; private _ownedRegistry; private _search; private _searchState; private _unsubSearch; private tickled; get selected(): string | string[]; set selected(value: string | string[]); selectAll(): void; deselectAll(): void; connectedCallback(): void; disconnectedCallback(): void; protected firstUpdated(): void; protected willUpdate(changedProperties: PropertyValues): void; protected updated(changedProperties: PropertyValues): void; private _updateComputedItems; private _updateSelectedFromValue; private _updateFilteredItems; private _applyHighlights; focus(): void; blur(): void; setContents(contents: NarrowedTextItem[]): void; deleteItem(value: string): boolean; private _selectItem; private _updateValueFromSelected; protected render(): import("lit").TemplateResult<1>; private _getContainerStyle; static styles: import("lit").CSSResult[]; } declare global { interface HTMLElementTagNameMap { 'ixfx-narrowed-text': NarrowedTextElement; } } export { NarrowedTextItem as a, NarrowedTextChangeEvent as i, FuzzySearchResult as n, Orientation as o, NarrowedTextChangeDetail as r, SelectionMode as s, NarrowedTextElement as t };