export interface ISSEEvent {
    type: string;
    data: string;
    id?: string;
    retry?: number;
}
export type SSEEventHandler = (event: ISSEEvent) => void;
export declare class SSEParser {
    private dataBuffer;
    private eventTypeBuffer;
    private currentEventId?;
    private lastEventIdBuffer?;
    private reconnectionTime?;
    private buffer;
    private endedOnCR;
    private readonly onEventHandler;
    private readonly decoder;
    constructor(onEvent: SSEEventHandler);
    getLastEventId(): string | undefined;
    getReconnectionTime(): number | undefined;
    feed(chunk: Uint8Array): void;
    private processLine;
    private processField;
    private dispatchEvent;
    reset(): void;
}
