/** * Cookie consent auto-acceptor. * * Detects and clicks "Accept" on common cookie consent banners before the * crawler proceeds. Without this, many EU sites show a consent wall that * blocks content or shows a different layout, making crawl results unreliable. * * Supports: Cookiebot, OneTrust, TrustArc, Usercentrics, GDPR Cookie Compliance, * generic "Accept All" / "Accept Cookies" buttons. * * Strategy: try known selectors first, then fall back to text-based button search. * Non-blocking — if no banner is found or click fails, crawl proceeds normally. */ import type { Page } from 'playwright'; export interface ConsentResult { found: boolean; clicked: boolean; method?: string; error?: string; } export declare function acceptCookieConsent(page: Page, opts?: { waitMs?: number; }): Promise; /** Check if a consent banner is still visible after attempted dismissal */ export declare function isConsentBannerVisible(page: Page): Promise;