export type HostPlatform = 'win32' | 'darwin' | 'linux'; export declare function hostPlatform(): HostPlatform; export declare function isWayland(): boolean; export interface RunResult { code: number; signal: NodeJS.Signals | null; stdout: string; stderr: string; spawnFailed: boolean; spawnError: string; } export interface RunOptions { stdin?: string | Buffer | null; timeoutMs?: number; cwd?: string; binaryStdout?: boolean; inheritEnv?: boolean; env?: Record; } export declare function runCommand(cmd: string, args: string[], opts?: RunOptions): Promise; export declare function runPowerShell(script: string, opts?: RunOptions): Promise; export declare function runOsascript(script: string, opts?: RunOptions): Promise; export declare function makeTempDir(prefix: string): string; export declare function findBinary(candidates: string[]): Promise;