/** * The type of `ReadableStreamBYOBReader` is not included in Typescript so we * are declaring it inline to not have to worry about bundling. */ declare class ReadableStreamBYOBReader { constructor(stream: ReadableStream) get closed(): Promise cancel(reason?: any): Promise read( view: T ): Promise<{ done: false; value: T } | { done: true; value: T | undefined }> releaseLock(): void } declare const ReadableStreamConstructor: typeof ReadableStream declare const ReadableStreamBYOBReaderConstructor: typeof ReadableStreamBYOBReader declare const ReadableStreamDefaultReaderConstructor: typeof ReadableStreamDefaultReader declare const TransformStreamConstructor: typeof TransformStream declare const WritableStreamConstructor: typeof WritableStream declare const WritableStreamDefaultWriterConstructor: typeof WritableStreamDefaultWriter export { ReadableStreamConstructor as ReadableStream, ReadableStreamBYOBReaderConstructor as ReadableStreamBYOBReader, ReadableStreamDefaultReaderConstructor as ReadableStreamDefaultReader, TransformStreamConstructor as TransformStream, WritableStreamConstructor as WritableStream, WritableStreamDefaultWriterConstructor as WritableStreamDefaultWriter };