/**
 * Opening the user's browser at the viewer URL.
 *
 * No dependency: the three platform openers are one-liners, and pulling in a
 * package to shell out to `open` would be the only runtime dependency the
 * viewer adds to a CLI that currently has ten.
 */
import { BROWSER_ENV } from './constants';
export { BROWSER_ENV };
export interface OpenCommand {
    command: string;
    args: string[];
}
/**
 * The command that would open `url`, or `null` when opening is suppressed.
 *
 * Split out from {@link openBrowser} so the platform mapping is testable
 * without launching anything.
 */
export declare function browserOpenCommand(url: string, platform: NodeJS.Platform, override?: string): OpenCommand | null;
/**
 * Open `url` in the user's default browser, best effort.
 *
 * Never throws and never keeps the CLI alive: the child is detached and
 * unref'd, and a missing opener (a headless Linux box with no `xdg-open`) is
 * swallowed — the URL is already printed, which is the part that matters.
 *
 * @returns `true` if a launch was attempted.
 */
export declare function openBrowser(url: string, platform?: NodeJS.Platform): boolean;
//# sourceMappingURL=open-browser.d.ts.map