declare const SELECTOR_OPTION = "[role=\"option\"]"; declare const SELECTOR_SELECTED = "[aria-selected=\"true\"]"; declare const SELECTOR_DISABLED = "[aria-disabled=\"true\"]"; declare const FOCUSED_CLASS = "focused"; declare function getOptionElements(listboxElement: HTMLUListElement, selector?: string): HTMLLIElement[]; declare function getFocusedOptionElement(listboxElement: HTMLUListElement, selector?: string): HTMLLIElement | null; declare function getSelectedOptionElement(listboxElement: HTMLUListElement, selector?: string): HTMLLIElement | null; declare function removeFocusClassOfOption(option: HTMLElement | null | undefined): void; declare function addFocusClassToOption(option: HTMLElement | null | undefined): void; declare function setSelectedOnOption(option: HTMLElement | null | undefined, selected: boolean): void; /** * @param {HTMLUListElement} listboxElement * @param {'first' | 'last' | 'prev' | 'next'} direction * @returns {string | undefined} id of newly focused option if any. */ declare function move(listboxElement: HTMLUListElement, direction: 'first' | 'last' | 'prev' | 'next'): string | undefined; declare function findOptionByChar(listboxElement: HTMLUListElement, char: string): void; export { SELECTOR_OPTION, SELECTOR_SELECTED, SELECTOR_DISABLED, FOCUSED_CLASS, getOptionElements, getFocusedOptionElement, getSelectedOptionElement, removeFocusClassOfOption, addFocusClassToOption, setSelectedOnOption, move, findOptionByChar, };