UNPKG

@bitblit/ratchet-common

Version:

Common tools for general use

8 lines (7 loc) 381 B
export declare class WebStreamRatchet { private constructor(); static webReadableStreamToUint8Array(stream: ReadableStream): Promise<Uint8Array>; static webReadableStreamToString(stream: ReadableStream): Promise<string>; static stringToWebReadableStream(input: string): ReadableStream; static uint8ArrayToWebReadableStream(input: Uint8Array): ReadableStream; }