/** * Driving the Google setup pages with the platform browser. * * `GoogleBrowserPort` (see `types.ts`) is six methods wide on purpose, so the * flows can be exercised against a scripted fake with no browser at all. This * module is the other half: the adapter that satisfies that port with a real * `BrowserEngine`, so the same flows drive real pages. * * It lives in the SDK rather than in a product because of who needs it. The * Cloud Console walkthrough is browser-driven, and the daemon is a runtime * that has to be able to complete it, a walkthrough only one product could * perform is a walkthrough the daemon cannot offer at all. Both halves are * platform now, so the adapter between them is too. * * The port owns exactly one implicit session/page pair: the first `navigate()` * lets the engine open (or reuse) a session, and every later call targets the * same session and page. Callers never pass or see a session id. * * On `tag`: `BrowserEngine.snapshot()` reports an accessible role, not a DOM * tag name, so `tag` here is the shared best-effort guess from * `deriveTagFromRole`. Every flow matches by role and name; `tag` is an * optional extra filter and never load-bearing. */ import type { BrowserEngine, BrowserLaunchOptions } from '../browser/index.js'; import type { GoogleBrowserPort } from './types.js'; export interface GoogleBrowserPortOptions { /** Passed through to the engine's first navigate, when no session exists yet. */ readonly launch?: BrowserLaunchOptions; } /** Builds a `GoogleBrowserPort` over a live `BrowserEngine`. */ export declare function createGoogleBrowserPort(engine: BrowserEngine, options?: GoogleBrowserPortOptions): GoogleBrowserPort; //# sourceMappingURL=browser-port.d.ts.map