/** * BrowserAdapter -- implements CorePlatformAdapter only. * * Browser has no concept of app management, permissions, or shell access. * Those capabilities are NOT implemented here -- no more "not supported" throws. */ import type { CorePlatformAdapter } from "./platform-adapter.js"; import type { Platform, Device } from "../device-manager.js"; import type { CompressOptions } from "../utils/image.js"; import { BrowserClient } from "../browser/client.js"; import { SessionManager } from "../browser/session-manager.js"; import type { BrowserOpenOptions, BrowserNavigateOptions, BrowserClickOptions, BrowserFillOptions, BrowserFillFormOptions } from "../browser/types.js"; export declare class BrowserAdapter implements CorePlatformAdapter { readonly platform: Platform; readonly sessionManager: SessionManager; readonly client: BrowserClient; constructor(); listDevices(): Device[]; selectDevice(_deviceId: string): void; getSelectedDeviceId(): string | undefined; autoDetectDevice(): Device | undefined; private getActiveSession; tap(x: number, y: number): Promise; doubleTap(x: number, y: number): Promise; longPress(x: number, y: number): Promise; swipe(x1: number, y1: number, x2: number, y2: number, durationMs?: number): Promise; swipeDirection(direction: "up" | "down" | "left" | "right"): Promise; inputText(text: string): Promise; pressKey(key: string): Promise; screenshotAsync(compress: boolean, options?: CompressOptions): Promise<{ data: string; mimeType: string; }>; getScreenshotBufferAsync(): Promise; getUiHierarchy(): Promise; getSystemInfo(): Promise; open(options: BrowserOpenOptions): Promise; closeSession(session?: string): Promise; navigate(options: BrowserNavigateOptions): Promise; clickElement(options: BrowserClickOptions): Promise; fillField(options: BrowserFillOptions): Promise; fillForm(options: BrowserFillFormOptions): Promise; snapshot(sessionName?: string): Promise; screenshotBrowser(sessionName?: string, fullPage?: boolean): Promise; evaluateJs(expression: string, sessionName?: string): Promise; waitForSelector(selector: string, timeout?: number, state?: "attached" | "visible", sessionName?: string): Promise; clearSessionData(sessionName: string): Promise; listSessions(): string[]; cleanup(): Promise; } //# sourceMappingURL=browser-adapter.d.ts.map