import { toDOMStream as toDOMStreamOperator } from '../../iterable/todomstream' ; import { ReadableBYOBStreamOptions , ReadableByteStreamOptions } from '../../asynciterable/todomstream' ; import { UnaryFunction } from '../../interfaces' ; export function toDOMStream < T > ( strategy ? ) ; export function toDOMStream < T > ( options ) ; export function toDOMStream < T > ( options ) ; export function toDOMStream ( options ? ) { return function toDOMStreamOperatorFunction ( source ) { if ( ! options || ! ( 'type' in options ) || options [ 'type' ] !== 'bytes' ) { return toDOMStreamOperator ( source , options as QueuingStrategy < any > | undefined ) ; } return toDOMStreamOperator ( source , options as ReadableBYOBStreamOptions | ReadableByteStreamOptions ) ; } ; }