/** * Debugger-Aware Action Wrapper * Wraps Puppeteer/CDP actions to detect and handle breakpoint pauses */ import type { CDPManager } from './cdp-manager.js'; export interface ActionResult { success: boolean; pausedAtBreakpoint?: boolean; pauseInfo?: { url: string; lineNumber: number; columnNumber?: number; functionName: string; callStackDepth: number; }; result?: T; error?: string; } /** * Execute an action with pause detection * * If the debugger is already paused, returns immediately with error. * Otherwise, races the action against pause detection. * If a breakpoint is hit during execution, returns pause info immediately. * * @param cdpManager - The CDP manager instance * @param action - The async action to execute * @param actionName - Name of the action (for error messages) * @param timeout - Timeout in ms (default: 5000) * @returns ActionResult with either success/result or pause info */ export declare function executeWithPauseDetection(cdpManager: CDPManager, action: () => Promise, actionName: string, timeout?: number): Promise>; /** * Format action result for MCP tool response */ export declare function formatActionResult(result: ActionResult, actionName: string, details?: any): any; //# sourceMappingURL=debugger-aware-wrapper.d.ts.map