/** * Modal detection utilities for Puppeteer pages * * This module provides functions to detect and classify modals on web pages. * It uses the core detection logic from modal-detection-core.ts and executes * it in the browser context via page.evaluate(). */ import type { Page } from 'puppeteer-core'; import type { ModalDetectionOptions, DetectedModalInfo, ModalType, DismissStrategy } from './modal-detection-core.js'; export type { ModalType, DismissStrategy, ModalDetectionOptions }; export interface DetectedModal extends DetectedModalInfo { } /** * Detects modals and blocking overlays on the page * * This is the fixed implementation that uses elementFromPoint for reliable detection */ export declare function detectModals(page: Page, options?: ModalDetectionOptions): Promise; /** * Checks if a specific element is blocked by a modal/overlay * * This uses the reverse approach (elementFromPoint) which is more reliable * than proactive scanning */ export declare function isElementBlocked(page: Page, selector: string): Promise<{ blocked: boolean; blockingModal?: DetectedModal; }>; //# sourceMappingURL=modal-detector.d.ts.map