1 | export declare type ReadableBYOBStreamOptions<T = any> = QueuingStrategy<T> & {
|
2 | type: 'bytes';
|
3 | };
|
4 | export declare type ReadableByteStreamOptions<T = any> = QueuingStrategy<T> & {
|
5 | type: 'bytes';
|
6 | autoAllocateChunkSize?: number;
|
7 | };
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export declare function toDOMStream<T>(source: AsyncIterable<T>, strategy?: QueuingStrategy<T>): ReadableStream<T>;
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | export declare function toDOMStream<T>(source: AsyncIterable<T>, options: ReadableBYOBStreamOptions<Uint8Array>): ReadableStream<Uint8Array>;
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export declare function toDOMStream<T>(source: AsyncIterable<T>, options: ReadableByteStreamOptions<Uint8Array>): ReadableStream<Uint8Array>;
|
26 |
|
27 |
|
28 |
|
29 | export declare function toDOMStreamProto<T>(this: AsyncIterable<T>, strategy?: QueuingStrategy<T>): ReadableStream<T>;
|
30 | export declare function toDOMStreamProto<T>(this: AsyncIterable<T>, options: ReadableBYOBStreamOptions<Uint8Array>): ReadableStream<Uint8Array>;
|
31 | export declare function toDOMStreamProto<T>(this: AsyncIterable<T>, options: ReadableByteStreamOptions<Uint8Array>): ReadableStream<Uint8Array>;
|
32 | declare module '../asynciterable/asynciterablex' {
|
33 | interface AsyncIterableX<T> {
|
34 | toDOMStream: typeof toDOMStreamProto;
|
35 | tee(): [ReadableStream<T>, ReadableStream<T>];
|
36 | pipeTo(writable: WritableStream<T>, options?: PipeOptions): Promise<void>;
|
37 | pipeThrough<R extends ReadableStream<any>>(duplex: {
|
38 | writable: WritableStream<T>;
|
39 | readable: R;
|
40 | }, options?: PipeOptions): ReadableStream<T>;
|
41 | }
|
42 | }
|