/** * Configuration for the MCP Bridge connection. * * This module provides configuration options for connecting to Tauri apps, * with support for environment variables and sensible defaults. */ export interface BridgeConfig { host: string; port: number; } /** * Gets the default host for MCP Bridge connections. * * Resolution priority: * 1. MCP_BRIDGE_HOST environment variable * 2. TAURI_DEV_HOST environment variable (set by Tauri CLI for mobile dev) * 3. 'localhost' (default) */ export declare function getDefaultHost(): string; /** * Gets the default port for MCP Bridge connections. * * Resolution priority: * 1. MCP_BRIDGE_PORT environment variable * 2. 9223 (default) */ export declare function getDefaultPort(): number; /** * Gets the CWD hint used to route tool calls to the right Tauri instance * when multiple are connected at once. * * Resolution priority: * 1. MCP_BRIDGE_CWD environment variable (explicit override; useful when a * wrapper script wants to pin routing to a specific worktree regardless * of where the TS server happened to be launched from) * 2. process.cwd() (natural inheritance from the calling shell / IDE) * * Returns null only when both are unavailable, which is extremely rare: * process.cwd() is set on every healthy POSIX process. */ export declare function getCwdHint(): string | null; /** * Gets the full bridge configuration from environment variables. */ export declare function getConfig(): BridgeConfig; /** * Builds a WebSocket URL from host and port. */ export declare function buildWebSocketURL(host: string, port: number): string;