import { type UiActionTransport } from '@farmslot/recipe-runner'; export interface AgentDeviceSnapshotNode { identifier?: string; label?: string; value?: unknown; type?: string; hittable?: boolean; visibleToUser?: boolean; interactionBlocked?: 'covered'; enabled?: boolean; hiddenContentAbove?: boolean; hiddenContentBelow?: boolean; rect?: { x: number; y: number; width: number; height: number; }; } export interface AgentDeviceSnapshotQuality { state: 'healthy' | 'recovered' | 'sparse'; backend: 'tree' | 'queries' | 'private-ax'; } export interface AgentDeviceAndroidSnapshot { backend: string; } export interface AgentDeviceSnapshot { nodes: AgentDeviceSnapshotNode[]; truncated: boolean; appName?: string; appBundleId?: string; snapshotQuality?: AgentDeviceSnapshotQuality; androidSnapshot?: AgentDeviceAndroidSnapshot; } interface AgentDeviceInteractionResult { evidence?: { changedFromBefore?: boolean; }; [key: string]: unknown; } export interface AgentDeviceClientLike { apps: { open(options: Record): Promise; }; interactions: { press(options: Record): Promise; fill(options: Record): Promise; scroll(options: Record): Promise; swipe(options: Record): Promise; }; command: { back?(options: Record): Promise; wait(options: Record): Promise; keyboard(options: Record): Promise; }; capture: { snapshot(options: Record): Promise; screenshot(options: Record): Promise<{ width?: number; height?: number; logicalWidth?: number; logicalHeight?: number; pixelDensity?: number; }>; }; sessions: { close(options: Record): Promise; }; } type AgentDeviceClient = AgentDeviceClientLike; export declare const NATIVE_UI_ACTIONS: readonly ["ui.press", "ui.key_press", "ui.set_input", "ui.scroll", "ui.swipe", "ui.pan", "ui.drag", "ui.long_press", "ui.wait_for", "ui.screenshot", "ui.capture_surface"]; export interface AgentDeviceUiTransportOptions { platform: 'ios' | 'android'; device: string; app: string; session: string; stateDir?: string; client?: AgentDeviceClient; gestureCommandRunner?: NativeGestureCommandRunner; idbPath?: string; adbPath?: string; } export interface NativeGestureCommandRunner { execFile(file: string, args: string[], options?: { timeoutMs?: number; }): Promise<{ stdout?: string; stderr?: string; }>; } export interface AgentDeviceUiTransport extends UiActionTransport { open(): Promise; close(): Promise; } export declare function createAgentDeviceUiTransport(options: AgentDeviceUiTransportOptions): AgentDeviceUiTransport; export declare function assertAgentDeviceNodeVersion(version: string): void; export {}; //# sourceMappingURL=agent-device-ui-transport.d.ts.map