import type { Readable } from "node:stream"; /** * Reads a ReadableStream (Web) or NodeJS.ReadableStream completely * and returns its contents as a single Buffer (in Node.js) or Uint8Array (in Browser). * @param stream The stream to read. * @returns A promise that resolves with the stream contents. */ export declare function streamToBuffer(stream: ReadableStream | Readable): Promise;