import type { AgentBrowserConnection } from './connection.js'; export interface AgentBrowserTab { id: string; title: string; url: string; isLoading: boolean; isActive?: boolean; } export interface InspectElement { id: string; tag: string; role: string; label: string; kind: string | null; value: string | null; placeholder: string | null; disabled: boolean; checked?: boolean; selected?: boolean; expanded?: boolean; bbox: { x: number; y: number; w: number; h: number; }; selector?: string; } export interface ReadResult { content: string; url: string; title: string; wordCount: number; } export declare class AgentBrowserClient { private readonly baseUrl; private readonly token; constructor(connection: AgentBrowserConnection); private call; listTabs(): Promise; openTab(url: string): Promise<{ tabId: string; }>; closeTab(tabId: string): Promise; read(tabId: string, opts?: { mode?: string; query?: string; budget?: number; }): Promise; inspect(tabId: string, opts?: { mode?: string; query?: string; limit?: number; }): Promise<{ elements: InspectElement[]; }>; click(tabId: string, elementId: string): Promise; fill(tabId: string, elementId: string, value: string): Promise; press(tabId: string, key: string, elementId?: string): Promise; select(tabId: string, elementId: string, value: string): Promise; waitFor(tabId: string, condition: string, opts?: { value?: string; timeout?: number; }): Promise; evalScript(tabId: string, script: string): Promise; screenshot(tabId: string): Promise<{ data: string; }>; }