/** * Shared utilities for screenshot platform implementations */ /** * Check if a command-line tool is available on the system. * Uses execFileSync to avoid shell injection. */ export declare function hasTool(name: string): boolean; /** * Run a PowerShell script by writing it to a temp .ps1 file. * Avoids shell quoting issues with inline -Command. * * Security: user-supplied values (paths, window titles, ...) must NOT be * interpolated into `script`. Pass them via `env` instead and read them in the * script as `$env:NAME` — PowerShell never evaluates the content of a variable, * so quotes, `$(...)`, backticks or Unicode quote characters stay inert. */ export declare function runPowerShell(script: string, timeoutMs?: number, prefix?: string, env?: Record): string; //# sourceMappingURL=shared.d.ts.map