declare function connect(): void;
declare function disconnect(): void;
declare function cleanup(): void;
declare function setStatus(status: any): void;
declare function broadcast(message: any): Promise<void>;
/**
 * Service Worker: agent-events-sw.js
 *
 * Maintains a single SSE connection to /api/agent-events and broadcasts
 * NotificationEvent deltas to all connected tabs via postMessage.
 *
 * Messages FROM clients:
 *   { type: 'subscribe', runId?: string }  — register this tab
 *   { type: 'unsubscribe' }                — unregister this tab
 *
 * Messages TO clients:
 *   { type: 'notification', data: NotificationEvent }
 *   { type: 'agent_message', data: AgentMessageStreamEvent }       (spec 093)
 *   { type: 'agent_question', data: AgentQuestionStreamEvent }     (spec 093)
 *   { type: 'supervisor_decision', data: SupervisorDecisionStreamEvent } (spec 093)
 *   { type: 'status', status: 'connected' | 'connecting' | 'disconnected' }
 */
declare const BASE_BACKOFF_MS: 1000;
declare const MAX_BACKOFF_MS: 30000;
declare const STABLE_CONNECTION_MS: 5000;
/** @type {EventSource | null} */
declare let eventSource: EventSource | null;
/** @type {string | undefined} */
declare let currentRunId: string | undefined;
declare let backoff: number;
/** @type {ReturnType<typeof setTimeout> | null} */
declare let reconnectTimer: ReturnType<typeof setTimeout> | null;
/** @type {ReturnType<typeof setTimeout> | null} */
declare let stableTimer: ReturnType<typeof setTimeout> | null;
/** @type {'connected' | 'connecting' | 'disconnected'} */
declare let connectionStatus: "connected" | "connecting" | "disconnected";
declare let subscriberCount: number;
//# sourceMappingURL=agent-events-sw.d.ts.map