const listeners = new Set();
export function emitAgentRecoveryEvent(event) {
    for (const listener of listeners) {
        try {
            listener(event);
        }
        catch {
            // Listeners must never break the watchdog path.
        }
    }
}
export function subscribeAgentRecoveryEvents(listener) {
    listeners.add(listener);
    return () => {
        listeners.delete(listener);
    };
}
//# sourceMappingURL=agentRecoveryEventBus.js.map