/** * Heartbeat monitor with auto-reconnect via exponential backoff. */ import type { ElizaCloudClient } from "./bridge-client"; export interface ConnectionMonitorCallbacks { onDisconnect: () => void; onReconnect: () => void; onStatusChange?: (status: "connected" | "reconnecting" | "disconnected") => void; } export declare class ConnectionMonitor { private client; private agentId; private callbacks; private heartbeatIntervalMs; private maxFailures; private timer; private consecutiveFailures; private reconnecting; constructor(client: ElizaCloudClient, agentId: string, callbacks: ConnectionMonitorCallbacks, heartbeatIntervalMs?: number, maxFailures?: number); start(): void; stop(): void; isMonitoring(): boolean; private tick; private attemptReconnect; } //# sourceMappingURL=reconnect.d.ts.map