import type { ApiClient } from '../http';
import type { EventData, SseStatus, SseSubscription } from '../models';
import { Resource } from './Resource';
export declare class EventResource extends Resource {
    constructor(client: ApiClient);
    getStatus(): Promise<SseStatus>;
    getStreamUrl(): string;
    subscribe(options: SubscribeOptions): Promise<SseSubscription>;
    private connectSse;
    private processEvent;
}
export interface SubscribeOptions {
    onEvent?: (event: EventData) => void;
    onConnected?: (connectionId: string) => void;
    onError?: (error: unknown) => void;
    onClose?: () => void;
}
//# sourceMappingURL=EventResource.d.ts.map