export declare const BRIDGE_STATUS_FILE = "bridge-status.json"; export declare const BRIDGE_STATUS_HEARTBEAT_MS = 5000; export declare const BRIDGE_STATUS_STALE_MS = 20000; export type BridgeStatus = "connected" | "reconnecting" | "disconnected" | "unknown"; export interface BridgeStatusSnapshot { status: BridgeStatus; lastOkAt: number | null; lastErrorAt: number | null; lastError: string | null; } export interface BridgeStatusReader { snapshot(): BridgeStatusSnapshot; } export interface BridgeStatusWriter extends BridgeStatusReader { markConnected(): void; markDisconnected(message: string): void; startHeartbeat(): { stop(): void; }; } interface ReaderOptions { isHermesChatRunning: () => boolean; now?: () => number; staleMs?: number; } interface WriterOptions { now?: () => number; heartbeatMs?: number; } /** * Read-only view used by the standalone Hermes Viewer daemon. * * The nested health `bridge` describes the Python provider ↔ Node stdio * transport. The Viewer daemon is a separate HTTP process, so it must never * refresh this file or claim that Hermes chat is connected on its own behalf. */ export declare function createBridgeStatusReader(statusFile: string, options: ReaderOptions): BridgeStatusReader; /** The stdio bridge is the sole writer of Hermes transport status. */ export declare function createBridgeStatusWriter(statusFile: string, options?: WriterOptions): BridgeStatusWriter; export {}; //# sourceMappingURL=status.d.ts.map