/** * Linux adapter for desktop-control. * * Session detection (XDG_SESSION_TYPE, with WAYLAND_DISPLAY / DISPLAY * fallbacks): * - X11: xdotool for everything (mousemove, click, mousedown/mouseup drag, * click 4/5/6/7 scrolling, type, key chords, windowactivate focus). * - Wayland: wtype (virtual keyboard protocol) for type_text/hotkey only. * Mouse/scroll/focus need a compositor-specific tool (ydotool requires a * privileged uinput daemon) — intentionally not attempted. * - No capable tool present: adapter is null and the extension registers * nothing, logging a clear capability error. */ import type { DesktopAction, DesktopAdapter } from "./types.js"; export declare function sessionType(env?: NodeJS.ProcessEnv): "x11" | "wayland" | "unknown"; export declare function buildXdotoolArgs(action: DesktopAction): string[]; export declare const xdotoolAdapter: DesktopAdapter; export declare function buildWtypeTypeArgs(text: string): string[]; /** wtype press/release chord: -P each modifier and the key, then -R in reverse. */ export declare function buildWtypeHotkeyArgs(tokens: string[]): string[]; export declare const waylandKeysAdapter: DesktopAdapter; export declare function createLinuxAdapter(env?: NodeJS.ProcessEnv): Promise<{ adapter: DesktopAdapter | null; reason?: string; }>; //# sourceMappingURL=linux.d.ts.map