UNPKG

256 BTypeScriptView Raw
1/**
2 * @returns {Boolean} true, if the current focus is inside given node or nodes.
3 * Supports nodes hidden inside shadowDom
4 */
5export declare const focusInside: (topNode: HTMLElement | HTMLElement[], activeElement?: HTMLElement | undefined) => boolean;