/** * Capture Agent — Overlay Engine * * Consolidated deterministic overlay handling. * Wraps and extends the existing cookie-dismiss module with * additional patterns for newsletter popups, chat widgets, and age gates. * * This module is used by the DISMISS_OVERLAYS opcode. */ import type { RuntimeAdapter } from './execution-types.js'; export interface OverlayDismissResult { dismissed: boolean; methods: string[]; overlaysFound: number; overlaysRemaining: number; } /** * Multi-pass overlay dismissal. * 1. Delegate to the adapter's built-in dismissOverlays (cookie-dismiss.ts) * 2. Check AKTree for remaining blocking overlays * 3. Try additional heuristics for newsletter/chat/age gate * 4. Final AKTree check */ export declare function dismissAllOverlays(adapter: RuntimeAdapter): Promise;