import type { Config } from '../config/schema.js';
import type { BrowserBackend, CloakBrowserConfig } from './providers/types.js';
/**
 * Whether the gateway should keep the Chrome extension WebSocket bridge listening.
 * True when browser tools are enabled and the resolved backend is extension (including default).
 */
export declare function shouldRunExtensionBridgeServer(cfg: Config | undefined): boolean;
/**
 * Resolve browser backend from agent defaults.
 * Precedence: `backend: 'extension'` → `cloakbrowser` → `cdpUrl` (CDP) → `cloudProvider` (remote) → `local` (explicit) → extension (default).
 */
export declare function resolveBrowserBackendFromConfig(cfg: Config | undefined): BrowserBackend;
/** CloakBrowser launch options aligned with saved agent defaults (headed for manual use). */
export declare function cloakBrowserConfigFromAgentDefaults(cfg: Config | undefined): CloakBrowserConfig;
