/** * Returns first child element, or the parent element itself, that satisfies the `condition` function. * @param el * @param condition * @returns {Element} */ export declare function findFirst(el: Element, condition: (el: Element) => el is T): T | null; export declare function findFirst(el: Element, condition: (el: Element) => boolean): Element | null; export declare function findFirstChild(el: Element, condition: (el: Element) => el is T): T | null; export declare function findFirstChild(el: Element, condition: (el: Element) => boolean): Element | null; export declare function closest(el: HTMLElement | null, condition: (el: HTMLElement) => boolean): HTMLElement | null; export declare function closest(el: Element | null, condition: (el: Element) => boolean): Element | null; export declare function closestParent(el: HTMLElement, condition: (el: HTMLElement) => boolean): HTMLElement | null; export declare function closestParent(el: Element, condition: (el: HTMLElement) => boolean): HTMLElement | null; export declare function isFocused(el: Element): boolean; export declare function isFocusedDeep(el: Element): boolean; export declare function isFocusable(el: Element): el is HTMLElement; /** * Returns focused element. * @returns {Element} */ export declare function getFocusedElement(): Element | null; export declare function isDescendant(el: Element, descEl: Element): boolean; export declare function isSelfOrDescendant(el: Element, descEl: Element): boolean; //# sourceMappingURL=DOM.d.ts.map