/** * Browser-channel selection with safe fallback (issues #13 + #19). * * Patchright launches `channel: "chrome"` by default, which talks to the * system Chrome install. Two failure modes hit users: * - macOS 26 (Tahoe) ships a Chrome binary that crashes on launch in * headless mode (issue #13). * - Windows 11 reports `Chrome exited immediately with exit code 21` * when the persistent profile is locked or the channel binary is * missing (issue #19). * * Patchright bundles its own Chromium build, which avoids both. We let users * pick explicitly via `BROWSER_CHANNEL` / `NOTEBOOKLM_BROWSER_CHANNEL` and * fall back to bundled Chromium if Chrome refuses to launch. */ export type BrowserChannel = "chrome" | "chromium"; export declare function getPreferredChannel(): BrowserChannel; export declare function isChannelFailure(error: unknown): boolean; /** * Wrap an existing launch options object with the chosen channel. `chromium` * means "no channel" — the bundled binary is selected by omitting the field. */ export declare function withChannel>(options: T, channel: BrowserChannel): T; //# sourceMappingURL=chromium-fallback.d.ts.map