/** * AndroidAdapter -- wraps AdbClient. * * Implements all capability interfaces: * - CorePlatformAdapter * - AppManagementAdapter * - PermissionAdapter * - ShellAdapter * - SyncScreenshotAdapter */ import type { CorePlatformAdapter, AppManagementAdapter, PermissionAdapter, ShellAdapter, SyncScreenshotAdapter } from "./platform-adapter.js"; import type { Device } from "../device-manager.js"; import { AdbClient } from "../adb/client.js"; import { type CompressOptions } from "../utils/image.js"; export declare class AndroidAdapter implements CorePlatformAdapter, AppManagementAdapter, PermissionAdapter, ShellAdapter, SyncScreenshotAdapter { readonly platform: "android"; private client; private _selectedDeviceId; constructor(client?: AdbClient); /** Raw client access -- needed by tools that call getAndroidClient(). */ getClient(deviceId?: string): AdbClient; /** Return a client targeting deviceId without mutating global state. */ private clientFor; listDevices(): Device[]; selectDevice(deviceId: string): void; getSelectedDeviceId(): string | undefined; autoDetectDevice(): Device | undefined; tap(x: number, y: number, _targetPid?: number, deviceId?: string): Promise; doubleTap(x: number, y: number, intervalMs?: number, deviceId?: string): Promise; longPress(x: number, y: number, durationMs?: number, deviceId?: string): Promise; selectAll(): void; copyToClipboard(): void; pasteFromClipboard(): void; getClipboardText(): string; swipe(x1: number, y1: number, x2: number, y2: number, durationMs?: number, deviceId?: string): Promise; swipeDirection(direction: "up" | "down" | "left" | "right", deviceId?: string): Promise; inputText(text: string, _targetPid?: number, deviceId?: string): Promise; pressKey(key: string, _targetPid?: number, deviceId?: string): Promise; screenshotAsync(compress?: boolean, options?: CompressOptions & { monitorIndex?: number; }, deviceId?: string): Promise<{ data: string; mimeType: string; }>; getScreenshotBufferAsync(deviceId?: string): Promise; screenshotRaw(): string; getUiHierarchy(deviceId?: string, turbo?: boolean): Promise; launchApp(packageName: string, deviceId?: string): string; stopApp(packageName: string, deviceId?: string): void; installApp(path: string, deviceId?: string): string; grantPermission(packageName: string, permission: string, deviceId?: string): string; revokePermission(packageName: string, permission: string, deviceId?: string): string; resetPermissions(packageName: string, deviceId?: string): string; shell(command: string, deviceId?: string): string; getLogs(options?: { level?: string; tag?: string; lines?: number; package?: string; }, deviceId?: string): string; clearLogs(deviceId?: string): string; getSystemInfo(deviceId?: string): Promise; } //# sourceMappingURL=android-adapter.d.ts.map