export declare const runWithDelay: (func: () => void) => NodeJS.Timeout; export declare const escapeKeyPressHandler: (event: React.KeyboardEvent) => void; /** * Check if an element is actually visible (not hidden via CSS). * Uses the modern checkVisibility API with a fallback for older browsers. */ export declare const isElementVisible: (element: Element) => boolean; /** * Check if a floating element (modal, dialog, popover, overlay, etc.) is actually open and blocking. * * A floating element is considered "open" and blocking if: * 1. It's a element with the open attribute (always blocking per HTML spec), OR * 2. It has role="alertdialog" (always blocking per ARIA spec), OR * 3. It has role="dialog" AND: * - It's not aria-hidden="true", AND * - It doesn't have aria-expanded="false" (for collapsible dialogs), AND * - It's actually visible (not just in DOM), AND * - It has aria-modal="true" (indicates blocking modal per ARIA spec) * * Non-blocking popovers and collapsible dialogs without aria-modal="true" are not considered * blocking and should not prevent InfoTip from closing. * * @param element - The DOM element to check * @returns `true` if the floating element is actually open and blocking, `false` otherwise */ export declare const isFloatingElementOpen: (element: Element) => boolean;