import { Button } from "@nut-tree/nut-js"; import { Point, Region } from "../../common/types"; declare type OnCheckpointHandler = ((point: Point, index: number) => Promise | void) | null; declare type CircularOptions = { angle?: number; startAngle?: number; segments?: number; clockwise?: boolean; }; declare class MouseDragAction { #private; constructor(button: Button); delay(ms: number): this; get fast(): this; get veryFast(): this; get slow(): this; get verySlow(): this; get Alt(): this; get Ctrl(): this; get Meta(): this; get Shift(): this; onCheckpoint(handler: OnCheckpointHandler): Promise; from(point: Point): MouseDragAction; from(x: number, y: number): MouseDragAction; to(point: Point): Promise; to(x: number, y: number): Promise; diagonal(pixelsX: number, pixelsY: number): Promise; horizontal(pixelsX: number): Promise; vertical(pixelsY: number): Promise; left(pixels: number): Promise; right(pixels: number): Promise; up(pixels: number): Promise; down(pixels: number): Promise; center(region?: Region): Promise; center(region: { region: Region; }): Promise; random(region?: Region): Promise; random(region: { region: Region; }): Promise; angular(radius: number, options?: CircularOptions): Promise; path(checkpoints: Point[] | Generator): Promise; } export default MouseDragAction;