import type { SSEEvent } from '../types/api';
export type SSEEventHandler = (event: SSEEvent) => void;
export declare class SSEClient {
    private abortController;
    private handlers;
    private running;
    connect(url: string): Promise<void>;
    disconnect(): void;
    on(eventType: string, handler: SSEEventHandler): () => void;
    off(eventType: string, handler: SSEEventHandler): void;
    private emit;
}
//# sourceMappingURL=sse-client.d.ts.map