UNPKG

@gui-agent/operator-aio

Version:
73 lines 1.94 kB
import type { AIOAction, ActionResponse, ScreenshotResponse, AIOHybridOptions } from './types'; export declare class AIOComputer { private baseURL; private timeout; private headers; constructor(options: AIOHybridOptions); /** * Execute HTTP request */ private request; /** * Take screenshot with optional delay * @param delay Optional delay in milliseconds before taking screenshot */ screenshot(delay?: number): Promise<ScreenshotResponse>; /** * Move mouse to specified position */ moveTo(x: number, y: number): Promise<ActionResponse>; /** * Click operation */ click(x?: number, y?: number, button?: string, numClicks?: number): Promise<ActionResponse>; /** * Press mouse button */ mouseDown(button?: string): Promise<ActionResponse>; /** * Release mouse button */ mouseUp(button?: string): Promise<ActionResponse>; /** * Right click */ rightClick(x?: number, y?: number): Promise<ActionResponse>; /** * Double click */ doubleClick(x?: number, y?: number): Promise<ActionResponse>; /** * Drag to specified position */ dragTo(x: number, y: number): Promise<ActionResponse>; /** * Scroll operation */ scroll(dx?: number, dy?: number): Promise<ActionResponse>; /** * Type text */ type(text: string): Promise<ActionResponse>; /** * Press key */ press(key: string): Promise<ActionResponse>; /** * Press down key */ keyDown(key: string): Promise<ActionResponse>; /** * Release key */ keyUp(key: string): Promise<ActionResponse>; /** * Hotkey combination */ hotkey(keys: string[]): Promise<ActionResponse>; /** * Generic execute method */ execute(action: AIOAction): Promise<ActionResponse>; } //# sourceMappingURL=AIOComputer.d.ts.map