/// <reference types="node" />
import { Readable } from "stream";
import { SuccessfulResponse } from "../fetcher/APIResponse";
export declare class Stream<T> implements AsyncIterable<T> {
    private response;
    private parse;
    private terminator;
    constructor({ response, parse, terminator, }: {
        response: SuccessfulResponse<Readable>;
        parse: (val: unknown) => Promise<T>;
        terminator: string;
    });
    private iterMessages;
    [Symbol.asyncIterator](): AsyncIterator<T, void, unknown>;
}
