/** * Single shared HTTP + WebSocket listener for the Chrome extension bridge. * Gateway and Browser Control sessions share one listener because only one process may bind the port. */ import type { ExtensionBrowserProvider, ExtensionProviderConfig } from './extension.js'; export type ExtensionBrowserServerSnapshot = { active: boolean; refCount: number; key: string | null; }; export declare function getExtensionBrowserServerSnapshot(): ExtensionBrowserServerSnapshot; /** * Increment ref count and return the shared provider plus a one-shot release. * First acquire starts the listener; further acquires reuse it (same host:port). */ export declare function acquireExtensionBrowserServer(config?: ExtensionProviderConfig): Promise<{ provider: ExtensionBrowserProvider; release: () => Promise; }>;