/** * Leaper Agent – Browser CDP Tool * Chrome DevTools Protocol direct integration. */ import type { ToolDefinition } from './registry.js'; export interface CDPCallOptions { method: string; params?: Record; session_id?: string; cdp_url?: string; timeout?: number; } export interface CDPResult { success: boolean; result?: unknown; error?: string; session_id?: string; } export interface CDPMessage { id: number; method?: string; params?: unknown; result?: unknown; error?: { code: number; message: string; }; sessionId?: string; } export interface CDPTarget { targetId: string; type: string; title: string; url: string; attached: boolean; sessionId?: string; } export declare function cdpCall(opts: CDPCallOptions): Promise; export declare function getDocumentRoot(cdpUrl?: string): Promise; export declare function evaluateJS(expression: string, cdpUrl?: string, sessionId?: string): Promise; export declare function takeScreenshot(cdpUrl?: string): Promise; export declare function listTargets(cdpUrl?: string): Promise; export declare function enableNetworkMonitoring(cdpUrl?: string): Promise; export declare function clearBrowserCache(cdpUrl?: string): Promise; export declare const browserCDPTool: ToolDefinition; //# sourceMappingURL=browser-cdp.d.ts.map