export interface FrameEvalResult { frameUrl: string; frameName: string; result: unknown; } /** * Evaluate JavaScript in ALL frames (including cross-origin iframes). * Playwright can access cross-origin frames via CDP, bypassing same-origin policy. * Returns results from each frame where evaluation succeeded. */ export declare function evaluateInAllFramesViaPlaywright(opts: { cdpUrl: string; targetId?: string; fn: string; }): Promise; /** * Evaluate JavaScript in the browser page context. * This is intentionally using eval() to execute user-provided browser-side code, * which is the core purpose of this function — running arbitrary JS in the page. * The code runs in the browser sandbox, not in Node.js. */ export declare function evaluateViaPlaywright(opts: { cdpUrl: string; targetId?: string; fn: string; ref?: string; timeoutMs?: number; signal?: AbortSignal; }): Promise;