import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { toDOMStream, ReadableBYOBStreamOptions, ReadableByteStreamOptions, } from '../../asynciterable/todomstream.js'; /** * @ignore */ export function toDOMStreamProto( this: AsyncIterable, strategy?: QueuingStrategy ): ReadableStream; export function toDOMStreamProto( this: AsyncIterable, options: ReadableBYOBStreamOptions ): ReadableStream; export function toDOMStreamProto( this: AsyncIterable, options: ReadableByteStreamOptions ): ReadableStream; export function toDOMStreamProto( this: AsyncIterable, options?: QueuingStrategy | ReadableBYOBStreamOptions | ReadableByteStreamOptions ) { return !options ? toDOMStream(this) : toDOMStream(this, options); } AsyncIterableX.prototype.toDOMStream = toDOMStreamProto; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX { toDOMStream: typeof toDOMStreamProto; } }