/** Inputs that decide whether auto-opening a browser is appropriate. */ export interface AutoOpenEnv { env?: NodeJS.ProcessEnv; platform?: NodeJS.Platform; /** Whether stderr is an interactive terminal. */ isTTY?: boolean; } /** * Whether `--serve` should auto-open the browser for the current environment. * * Opens only for an interactive session — suppressed under CI, when stderr is * not a TTY (agent/piped runs), or on Linux without a display server — so * automation never spawns a browser unexpectedly. An explicit `--no-open` is a * separate, always-on override handled by the caller. */ export declare function shouldAutoOpen({ env, platform, isTTY, }?: AutoOpenEnv): boolean; /** The platform-specific command that opens `url` in the default browser. */ export declare function browserCommand(url: string, platform: NodeJS.Platform): [string, string[]]; /** * Best-effort open of `url` in the default browser. Never throws and never * blocks — a missing opener just leaves the printed URL as the fallback. */ export declare function openBrowser(url: string, platform?: NodeJS.Platform): void;