import type { BrowserControlResult, BrowserNavigateInput, BrowserObservation, BrowserObserveInput, BrowserTabsInput, BrowserTarget } from '@xopcai/browser-control-contract'; import type { Config } from '../../config/schema.js'; import type { EndpointToolRuntime } from '../../endpoint-tools/runtime.js'; import type { BrowserDriver, BrowserPrimitiveInput, ManagedBrowserLiveHandle } from './browser-driver.js'; export interface DesktopManagedBrowserDriverOptions { endpointTools: EndpointToolRuntime; endpointId: string; getConfig: () => Config['browser']; getConversationId?: (sessionId: string) => string | undefined; } /** * Find the local Electron desktop endpoint that provides native WebContentsView managed browser control. */ export declare function findDesktopManagedBrowserEndpoint(endpointTools: EndpointToolRuntime | undefined): string | undefined; /** * Native Electron built-in browser driver backed by `WebContentsView` inside the right-hand workspace pane. * Also implements `getLiveHandle` so Mobile and Web clients can stream frames and interact remotely. */ export declare class DesktopManagedBrowserDriver implements BrowserDriver { private readonly options; readonly kind: "desktop"; private readonly sessions; constructor(options: DesktopManagedBrowserDriverOptions); connect(): Promise; disconnect(): Promise; createSession(sessionId: string): Promise; closeSession(sessionId: string, _target?: BrowserTarget): Promise; navigate(sessionId: string, input: BrowserNavigateInput, signal?: AbortSignal): Promise; observe(sessionId: string, input: BrowserObserveInput, signal?: AbortSignal): Promise; perform(sessionId: string, input: BrowserPrimitiveInput, signal?: AbortSignal): Promise; tabs(sessionId: string, input: BrowserTabsInput, signal?: AbortSignal): Promise; getLiveHandle(sessionId: string): ManagedBrowserLiveHandle | undefined; private buildPolicy; private executeAction; private requireTool; private invoke; }