//#region src/components/RightDrawer/isElementAtTopAndNotCovered.d.ts
/**
 * Utility function to determine if an HTML element is at the top of the viewport and not covered by other elements
 *
 * This function is specifically used by the RightDrawer component to ensure that click-outside
 * detection only triggers when the drawer is actually visible and not obscured by other UI elements.
 *
 * ## Algorithm
 * 1. **Viewport Check**: Verifies the element is within the visible viewport bounds
 * 2. **Coverage Check**: Uses `document.elementFromPoint()` to ensure no other elements are covering the drawer
 * 3. **Center Point Testing**: Tests the center-top point of the element for accurate detection
 *
 * ## Use Cases
 * - Click-outside detection for modal and drawer components
 * - Visibility validation for overlay components
 * - Z-index conflict resolution
 * - Accessibility focus management
 *
 * @param element - The HTML element to check for visibility and coverage
 * @returns Boolean indicating if the element is visible at the top and not covered by other elements
 *
 * @example
 * Basic usage in click-outside detection:
 * ```tsx
 * const handleClickOutside = (event: MouseEvent) => {
 *   if (!drawerRef.current) return;
 *
 *   const isVisible = isElementAtTopAndNotCovered(drawerRef.current);
 *   const isClickOutside = !drawerRef.current.contains(event.target as Node);
 *
 *   if (isVisible && isClickOutside) {
 *     closeDrawer();
 *   }
 * };
 * ```
 *
 * @example
 * Checking multiple overlays:
 * ```tsx
 * const overlays = document.querySelectorAll('.overlay');
 * const visibleOverlays = Array.from(overlays).filter(overlay =>
 *   isElementAtTopAndNotCovered(overlay as HTMLElement)
 * );
 * ```
 */
declare const isElementAtTopAndNotCovered: (element: HTMLElement) => boolean;
//#endregion
export { isElementAtTopAndNotCovered };
//# sourceMappingURL=isElementAtTopAndNotCovered.d.ts.map