/**
 * @public
 */
export interface FetchOptions {
    init: RequestInit;
    url: string | URL;
}
export declare class HTTPError extends Error {
    statusCode: number;
    constructor(statusCode: number, message: string);
}
export declare function assert2xx(res: Response): Promise<void>;
export declare function fetchStream({ init, url }: FetchOptions): Promise<import("node:stream/web").ReadableStream<any>>;
export declare function fetchAsyncIterator(options: FetchOptions): Promise<AsyncGenerator<any, void, unknown>>;
//# sourceMappingURL=fetchStream.d.ts.map