/** * Windows adapter for desktop-control. * * Input injection via PowerShell scripts (written to temp .ps1 files and run * with cross-spawn, same pattern as the desktop-screenshot extension) that * Add-Type a small user32 P/Invoke class: * - SetCursorPos for absolute cursor placement * - SendInput for clicks (MOUSEEVENTF_*), scrolling (WHEEL/HWHEEL) and keys * (VK codes; type_text uses KEYEVENTF_UNICODE so layout/IME is irrelevant) * - SetForegroundWindow/ShowWindow/IsIconic for window focus * * NOTE: each invocation pays a one-time Add-Type JIT (~1-2s). UIPI means a * non-elevated spectral cannot inject into elevated (admin) windows. */ import type { DesktopAction, DesktopAdapter } from "./types.js"; /** argv for running a temp .ps1 (mirrors desktop-screenshot's runPowerShell). */ export declare function buildPowerShellArgs(psPath: string): string[]; export declare function buildMousePS(action: Extract): string; export declare function resolveChordTokens(tokens: string[]): { key: number; modifiers: number[]; }; export declare function buildHotkeyPS(key: number, modifiers: number[]): string; /** One SendUnicode call per char (KEYEVENTF_UNICODE down+up); \n -> CR (Enter). */ export declare function buildTypeTextPS(text: string): string; export declare function buildFocusPS(hwnd: string | number): string; export declare function buildFrontmostPS(): string; export declare const win32Adapter: DesktopAdapter; //# sourceMappingURL=windows.d.ts.map