import { MouseEvent, KeyboardEvent, FocusEvent } from 'react'; import { KnownElementType } from '../types'; import { Group, Option } from '../../modularOptionList/types'; type UIEvent = MouseEvent | KeyboardEvent | FocusEvent; export declare function useElementDetection(): { getEventElementType: (event: UIEvent) => { type: KnownElementType | null; element: HTMLElement | null; }; getElementType: (element: HTMLElement) => KnownElementType | null; getSelectableListItemSiblings: (listItem?: HTMLLIElement, loop?: boolean) => { prev: HTMLElement; next: HTMLElement; }; getTagSiblings: (tag: HTMLElement, loop?: boolean) => { prev: HTMLElement; next: HTMLElement; }; getElementUsingActiveDescendant: () => HTMLElement; getElementByKnownType: (type: KnownElementType) => HTMLElement | null; getElementId: (element: HTMLElement) => string | null; getOptionListItem: (groups: Group[], option: Option, isMultiSelect: boolean) => HTMLElement | null; getListItems: () => HTMLElement[]; getSelectableListItems: () => HTMLElement[]; }; /** is...Type helpers provide human readable element type conversions */ export declare const isSelectedOptionsButtonType: (id: KnownElementType) => id is "button"; export declare const isClearButtonType: (id: KnownElementType) => id is "clearButton"; export declare const isInSelectedOptionsType: (id: KnownElementType) => id is "button" | "clearButton"; export declare const isSearchOrFilterInputType: (id: KnownElementType) => id is "searchOrFilterInput"; export declare const isSearchOrFilterInputLabelType: (id: KnownElementType) => id is "searchOrFilterInputLabel"; export declare const isListItemType: (id: KnownElementType) => id is "listItem"; export declare const isListType: (id: KnownElementType) => id is "list"; export declare const isListGroupLabelType: (id: KnownElementType) => id is "listGroupLabel"; export declare const isAnyListChildType: (id: KnownElementType) => id is "listItem" | "listGroupLabel"; export declare const isTagListType: (id: KnownElementType) => id is "tagList"; export declare const isTagType: (id: KnownElementType) => id is "tag"; export declare const isShowAllButtonType: (id: KnownElementType) => id is "showAllButton"; export declare const isClearAllButtonType: (id: KnownElementType) => id is "clearAllButton"; export declare const isContainerType: (id: KnownElementType) => id is "container"; export declare const isLabelType: (id: KnownElementType) => id is "label"; export {};