@opendatalabs/vana-sdk
Version:
A TypeScript library for interacting with Vana Network smart contracts.
15 lines (14 loc) • 565 B
TypeScript
/**
* Shared stream utilities for platform adapters
*
* IMPORTANT: This module contains NO IMPORTS to avoid affecting bundle loading.
* All functions are pure utilities that can be safely shared across platforms.
*/
/**
* Convert ReadableStream to Uint8Array
* Used primarily in Node.js environment where OpenPGP may return streams
*
* @param stream The ReadableStream to convert
* @returns Promise resolving to Uint8Array containing all stream data
*/
export declare function streamToUint8Array(stream: ReadableStream<Uint8Array>): Promise<Uint8Array>;