UNPKG

bits-ui

Version:

The headless components for Svelte.

15 lines (14 loc) 472 B
type DOMTypeaheadOptions = { onMatch?: (item: HTMLElement) => void; getCurrentItem?: () => HTMLElement | null; getActiveElement: () => HTMLElement | null; getWindow: () => Window & typeof globalThis; }; export declare class DOMTypeahead { #private; constructor(opts: DOMTypeaheadOptions); handleTypeaheadSearch(key: string, candidates: HTMLElement[]): HTMLElement | undefined; resetTypeahead(): void; get search(): string; } export {};