import { EventEmitter } from 'events'; export interface SSEClientOptions { headers?: Record; timeout?: number; reconnectInterval?: number; maxReconnectAttempts?: number; } export declare class SSEClient extends EventEmitter { private url; private options; private request?; private reconnectAttempts; private shouldReconnect; private reconnectTimer?; constructor(url: string, options?: SSEClientOptions); connect(): Promise; private processLine; private scheduleReconnect; close(): void; } export declare function createSSEClient(url: string, options?: SSEClientOptions): SSEClient; //# sourceMappingURL=sse.d.ts.map