import type { OAuthClient } from './oauth-client.js'; import type { AstridChannelConfig, AgentSSEEvent } from './types.js'; type EventHandler = (event: AgentSSEEvent) => void; /** * SSE client using fetch + ReadableStream (supports Authorization headers). * Reconnects with exponential backoff. Keepalive timeout at 90s. */ export declare class SSEClient { private config; private oauth; private abortController; private connected; private lastEventTime; private reconnectAttempts; private handlers; private keepaliveTimer; private stopped; constructor(config: AstridChannelConfig, oauth: OAuthClient); on(eventType: string, handler: EventHandler): void; isConnected(): boolean; connect(): Promise; disconnect(): void; private scheduleReconnect; private parseBuffer; private dispatch; /** Map internal server event types to agent protocol event names */ private mapEventType; private startKeepalive; private resetKeepalive; private stopKeepalive; } export {}; //# sourceMappingURL=sse-client.d.ts.map