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