export declare type ReadableBYOBStreamOptions = QueuingStrategy & { type: 'bytes'; }; export declare type ReadableByteStreamOptions = QueuingStrategy & { type: 'bytes'; autoAllocateChunkSize?: number; }; /** * Converts an async-iterable instance to a DOM stream. * @param source The source async-iterable to convert to a DOM stream. * @param strategy The queueing strategy to apply to the DOM stream. */ export declare function toDOMStream(source: AsyncIterable, strategy?: QueuingStrategy): ReadableStream; /** * Converts an async-iterable stream to a DOM stream. * @param source The async-iterable stream to convert to a DOM stream. * @param options The ReadableBYOBStreamOptions to apply to the DOM stream. */ export declare function toDOMStream(source: AsyncIterable, options: ReadableBYOBStreamOptions): ReadableStream; /** * Converts an async-iterable stream to a DOM stream. * @param source The async-iterable stream to convert to a DOM stream. * @param options The ReadableByteStreamOptions to apply to the DOM stream. */ export declare function toDOMStream(source: AsyncIterable, options: ReadableByteStreamOptions): ReadableStream; /** * @ignore */ export declare function toDOMStreamProto(this: AsyncIterable, strategy?: QueuingStrategy): ReadableStream; export declare function toDOMStreamProto(this: AsyncIterable, options: ReadableBYOBStreamOptions): ReadableStream; export declare function toDOMStreamProto(this: AsyncIterable, options: ReadableByteStreamOptions): ReadableStream; declare module '../asynciterable/asynciterablex' { interface AsyncIterableX { toDOMStream: typeof toDOMStreamProto; tee(): [ReadableStream, ReadableStream]; pipeTo(writable: WritableStream, options?: PipeOptions): Promise; pipeThrough>(duplex: { writable: WritableStream; readable: R; }, options?: PipeOptions): ReadableStream; } }