Spaces:
Running
Running
File size: 1,219 Bytes
78c921d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node" />
import { ArrayBufferViewInput } from '../util/buffer.js';
import { ReadableDOMStreamOptions } from './interfaces.js';
declare type Uint8ArrayGenerator = Generator<Uint8Array, null, {
cmd: 'peek' | 'read';
size: number;
}>;
declare type AsyncUint8ArrayGenerator = AsyncGenerator<Uint8Array, null, {
cmd: 'peek' | 'read';
size: number;
}>;
/** @ignore */
declare const _default: {
fromIterable<T extends ArrayBufferViewInput>(source: T | Iterable<T>): Uint8ArrayGenerator;
fromAsyncIterable<T_1 extends ArrayBufferViewInput>(source: AsyncIterable<T_1> | PromiseLike<T_1>): AsyncUint8ArrayGenerator;
fromDOMStream<T_2 extends ArrayBufferViewInput>(source: ReadableStream<T_2>): AsyncUint8ArrayGenerator;
fromNodeStream(stream: NodeJS.ReadableStream): AsyncUint8ArrayGenerator;
toDOMStream<T_3>(source: Iterable<T_3> | AsyncIterable<T_3>, options?: ReadableDOMStreamOptions): ReadableStream<T_3>;
toNodeStream<T_4>(source: Iterable<T_4> | AsyncIterable<T_4>, options?: import('stream').ReadableOptions): import('stream').Readable;
};
export default _default;
|