import { type spawn as nodeSpawn } from 'node:child_process'; /** True when running under WSL (env hint, or a Microsoft kernel in /proc/version). */ export declare function detectWsl(env?: NodeJS.ProcessEnv, readProcVersion?: () => string): boolean; /** * The command to open a URL on each host. On WSL, go through PowerShell's * Start-Process rather than `cmd.exe /c start`: an OAuth URL is full of `&`, and * cmd.exe treats `&` as a command separator (even quoted), truncating the URL at * the first one. PowerShell is spawned directly, so no shell re-tokenizes it. */ export declare function browserCommand(url: string, wsl: boolean, platform: NodeJS.Platform): { cmd: string; args: string[]; }; export type OpenDeps = { spawn?: typeof nodeSpawn; wsl?: boolean; platform?: NodeJS.Platform; }; /** Open a URL in the host browser. The consent URL is also printed by the auth * flow, so a failed open is never a dead end. */ export declare function openInBrowser(url: string, deps?: OpenDeps): void; //# sourceMappingURL=browser.d.ts.map