import type React from "react";
import type { AgentMetadata } from "../../services/agentService";
export declare function isBrowserCaptureDialogType(dialogType: string | null): dialogType is "capture-page-dom" | "capture-page-screenshot";
export declare function useAgentBrowserCapture(input: {
    agentId?: string;
    agentStatus?: string;
    sessionId?: string;
    metadata: AgentMetadata | null;
    terminalInstanceIdRef: React.RefObject<string>;
    setMetadata: (next: React.SetStateAction<AgentMetadata | null>) => void;
    sanitizeMetadata: (metadata: AgentMetadata | null) => AgentMetadata | null;
    setMutationPending: (isPending: boolean) => void;
    showErrorToast?: (error: unknown) => void;
}): {
    pendingCallbackId: string | null;
    isPendingBrowserCaptureWait: boolean;
    isClaimedByCurrentSession: boolean;
    isClaimedByAnotherBrowser: boolean;
    setPendingBrowserCaptureWait: (dialogType: string | null, callbackId: string | null) => void;
    clearPendingBrowserCaptureWait: () => void;
    claimBrowser: (takeOver: boolean) => Promise<void>;
    releaseBrowser: () => Promise<void>;
    cancelBrowserCapture: () => Promise<void>;
};
