import { type AgentNativeBrowserSessionBridge, type AgentNativeBrowserSessionBridgeErrorSource } from "./browser-session-bridge.js"; import { type AgentNativeClientActions, type AgentNativeHostCommandHandlers, type AgentNativeHostContextGetter, type AgentNativeHostSession, type AgentNativeScreenSnapshotOptions } from "./host-bridge.js"; import type { AgentNativeWebMcpClient } from "./webmcp.js"; export interface AgentNativeEmbeddedCommandCallbackInfo { command: string; requestId?: string; origin: string; } export type AgentNativeEmbeddedCommandCallback = (payload: unknown, info: AgentNativeEmbeddedCommandCallbackInfo) => unknown; export interface AgentNativeEmbeddedBrowserSessionOptions { endpoint?: string; sessionId?: string; label?: string; heartbeatMs?: number; pollMs?: number; ttlMs?: number; fetch?: typeof fetch; onError?: (error: unknown, source: AgentNativeBrowserSessionBridgeErrorSource) => void; onReady?: (bridge: AgentNativeBrowserSessionBridge) => void; } export interface UseAgentNativeEmbeddedBrowserSessionOptions { enabled?: boolean; actions?: AgentNativeClientActions; getContext?: AgentNativeHostContextGetter; screen?: boolean | AgentNativeScreenSnapshotOptions; commands?: AgentNativeHostCommandHandlers; webmcp?: AgentNativeWebMcpClient; session?: string | Partial; browserSession?: AgentNativeEmbeddedBrowserSessionOptions; onRefresh?: AgentNativeEmbeddedCommandCallback; onNavigate?: AgentNativeEmbeddedCommandCallback; onRemount?: AgentNativeEmbeddedCommandCallback; onOpenResource?: AgentNativeEmbeddedCommandCallback; onRequestApproval?: AgentNativeEmbeddedCommandCallback; } export declare function useAgentNativeEmbeddedBrowserSession({ enabled, actions, getContext, screen, commands, webmcp, session, browserSession, onNavigate, onOpenResource, onRefresh, onRemount, onRequestApproval, }: UseAgentNativeEmbeddedBrowserSessionOptions): void;