import type { VM } from "./vm"; import type { VMProcess } from "./vm-runtime"; import type { VMDesktopClickOptions, VMDesktopScrollOptions } from "../../types/vm"; /** Authenticated desktop control using the same guest tools as Python. */ export declare class VMDesktop { private vm; constructor(vm: VM); get url(): string | undefined; private ready; private run; /** Capture PNG bytes, optionally saving them to a local file. */ screenshot(path?: string): Promise; screenSize(): Promise<{ width: number; height: number; }>; resize(width: number, height: number): Promise; private move; moveMouse(x: number, y: number): Promise; click(opts?: VMDesktopClickOptions): Promise; scroll(opts?: VMDesktopScrollOptions): Promise; press(...keys: string[]): Promise; /** Paste literal UTF-8 text, including Unicode and newlines, using the clipboard. */ write(text: string): Promise; drag(start: { x: number; y: number; }, end: { x: number; y: number; }): Promise; launch(command: string[]): Promise; /** Record a guest MP4 until stopRecording(handle), then download it with vm.fs. */ record(path: string, opts?: { fps?: number; }): Promise; stopRecording(recording: VMProcess): Promise; }