/**
 * Heartbeat monitor for agent WebSocket connections.
 *
 * Periodically inspects all registered agents and:
 * - Logs warnings for agents past the unhealthy threshold (90s).
 * - Forcibly disconnects agents past the disconnect threshold (180s).
 *
 * Follows the same pattern as the Platform HeartbeatMonitor
 * (packages/platform/src/ws/heartbeat.ts) for consistency across
 * the three-tier architecture.
 */
import type { AgentRegistry } from '../agent/registry.js';
import type { Dispatcher } from '../agent/dispatcher.js';
interface AgentHeartbeatMonitorDeps {
    registry: AgentRegistry;
    dispatcher: Dispatcher;
    /** Silence duration after which an agent is considered unhealthy (default 90s). */
    unhealthyThresholdMs?: number;
    /** Silence duration after which an agent is forcibly disconnected (default 180s). */
    disconnectThresholdMs?: number;
    /** How often to run the heartbeat check (default 30s). */
    checkIntervalMs?: number;
}
/**
 * Periodically inspects all registered agent connections and:
 * - Marks agents as unhealthy after 90s of silence (log only).
 * - Closes and unregisters agents after 180s of silence.
 * - Triggers dispatcher.onAgentDisconnect for stale agents.
 */
export declare class AgentHeartbeatMonitor {
    private readonly registry;
    private readonly dispatcher;
    private readonly unhealthyThresholdMs;
    private readonly disconnectThresholdMs;
    private readonly checkIntervalMs;
    private interval;
    constructor(deps: AgentHeartbeatMonitorDeps);
    /** Start the periodic heartbeat check. */
    start(): void;
    /** Stop the periodic heartbeat check. */
    stop(): void;
    private check;
}
export {};
//# sourceMappingURL=agent-heartbeat.d.ts.map