import { V3 } from "../v3.js";
import { ToolSet } from "ai";
import { AgentExecuteOptions, AgentHandlerOptions, AgentResult, SafetyConfirmationHandler } from "../types/public/agent.js";
import { LogLine } from "../types/public/logs.js";
export declare class V3CuaAgentHandler {
    private v3;
    private agent;
    private provider;
    private logger;
    private agentClient;
    private options;
    private highlightCursor;
    constructor(v3: V3, logger: (message: LogLine) => void, options: AgentHandlerOptions, tools?: ToolSet);
    /**
     * Ensures the V3 context is still available (not closed).
     * Throws StagehandClosedError if stagehand.close() was called.
     */
    private ensureNotClosed;
    private setupAgentClient;
    setSafetyConfirmationHandler(handler?: SafetyConfirmationHandler): void;
    execute(optionsOrInstruction: AgentExecuteOptions | string): Promise<AgentResult>;
    private executeAction;
    private computePointerTarget;
    private describePointerAction;
    private describeTypeAction;
    private describeDragAction;
    private buildInstructionFallback;
    private recordCuaActStep;
    private updateClientViewport;
    private updateClientUrl;
    captureAndSendScreenshot(): Promise<unknown>;
    private injectCursor;
}
