/** * HTTP(S) + WebSocket bridge server, embedded in the daemon process. * Zero external dependencies — uses node:http, node:https, node:net, node:crypto, node:fs. * * Port from apps/bridge/http-bridge.ts with key changes: * - sendToSocket() → routeCommand() (direct in-process call) * - Static token → JWT (HMAC-SHA256) * - Config from DaemonState.bridge */ import type { BridgeConfig } from "./types.js"; export declare function startBridge(config: BridgeConfig): void; export declare function stopBridge(): Promise; export declare function isBridgeRunning(): boolean; export declare function getBridgeInfo(): { enabled: boolean; port: number; tls: boolean; bindHost: string; connections: number; }; /** Update the active config without restarting. Used when bridge.config changes runtime settings. */ export declare function updateBridgeConfig(config: BridgeConfig): void; /** Get the LAN IP address for QR code generation. */ export declare function getLocalIp(): string;