/** * Sweetlink CDP (Chrome DevTools Protocol) Integration * * Provides enhanced screenshot and debugging capabilities using Puppeteer * to connect to a Chrome instance running with remote debugging enabled. */ import type { Browser, Page } from 'puppeteer-core'; /** * Check if Chrome DevTools Protocol is available */ export declare function detectCDP(): Promise; /** * Connect to Chrome via CDP */ export declare function getCDPBrowser(): Promise; /** * Find the local development page matching DEFAULT_DEV_URL */ export declare function findLocalDevPage(browser: Browser): Promise; /** * Take a screenshot using CDP */ export declare function screenshotViaCDP(options: { selector?: string; output?: string; fullPage?: boolean; waitForNetwork?: boolean; viewport?: import('./viewportUtils.js').ViewportName | string; hover?: boolean; hideDevbar?: boolean; }): Promise<{ buffer: Buffer; width: number; height: number; }>; /** * Execute JavaScript in the page context * * SECURITY: This function executes arbitrary JavaScript via CDP. * It is intended for development/debugging only and includes guards: * - Production environment check * - Code length limit * - Type validation */ export declare function execJSViaCDP(code: string): Promise; /** * Get network requests from the page */ export declare function getNetworkRequestsViaCDP(options?: { filter?: string; }): Promise>; //# sourceMappingURL=cdp.d.ts.map