/** * Input actions: tap, swipe, type text, key events. * * Supports both coordinate-based and selector-based interactions. * Text input uses ADBKeyboard broadcast for Unicode support. */ import { type AdbExecOptions } from "./exec.js"; import type { TapOptions, SwipeOptions, TypeOptions } from "./types.js"; /** * Tap at screen coordinates. */ export declare function tap(x: number, y: number, options?: TapOptions & AdbExecOptions): Promise; /** * Swipe from one point to another. */ export declare function swipe(x1: number, y1: number, x2: number, y2: number, options?: SwipeOptions & AdbExecOptions): Promise; /** * Type text using ADBKeyboard (supports Unicode, spaces, special chars). * * Requires ADBKeyboard APK installed and set as default IME. * Falls back to `input text` for ASCII-only strings if useAdbKeyboard is false. */ export declare function typeText(text: string, options?: TypeOptions & AdbExecOptions): Promise; /** * Send a key event. */ export declare function keyEvent(keycode: string | number, options?: AdbExecOptions): Promise; /** * Press the back button. */ export declare function pressBack(options?: AdbExecOptions): Promise; /** * Press the home button. */ export declare function pressHome(options?: AdbExecOptions): Promise; /** * Press enter/return. */ export declare function pressEnter(options?: AdbExecOptions): Promise; /** Common scroll gesture — scroll down on center of screen */ export declare function scrollDown(screenWidth: number, screenHeight: number, options?: SwipeOptions & AdbExecOptions): Promise; /** Common scroll gesture — scroll up on center of screen */ export declare function scrollUp(screenWidth: number, screenHeight: number, options?: SwipeOptions & AdbExecOptions): Promise;