import { SSEManager, SSEConfig, SSEEventHandler } from '../../services/sse';
export type { SSEConfig, SSEEventHandler };
export type SSEStatus = 'idle' | 'connecting' | 'open' | 'closed' | 'error';
export interface UseSSEResult {
    manager: SSEManager | null;
    status: SSEStatus;
}
/**
 * @param config - SSE configuration.  Pass `null` to remain disconnected.
 * @param onEvents - Map of event-type → handler to register on the manager.
 *   Handlers are registered once per manager instance; use stable references
 *   to avoid spurious re-registrations.
 */
export declare function useSSE(config: SSEConfig | null, onEvents?: Record<string, SSEEventHandler>): UseSSEResult;
//# sourceMappingURL=useSSE.d.ts.map