import { Responses } from 'openai/resources/responses/responses';
import { Stream } from 'openai/streaming';
type EventChunkCb = (event: Responses.ResponseStreamEvent) => void;
type BufferChunkCb = (buffer: Buffer<ArrayBuffer>) => void;
export declare class ResponseStream {
    readonly stream: Stream<Responses.ResponseStreamEvent>;
    private eventChunkCb;
    private bufferChunkCb;
    private onFinishCb;
    constructor(stream: Stream<Responses.ResponseStreamEvent>);
    onEventChunk(cb: EventChunkCb): void;
    onBufferChunk(cb: BufferChunkCb): void;
    onFinish(cb: () => void): void;
    start(): Promise<void>;
    abort(): void;
}
export {};
