/** * Tiny helpers for collecting a `ReadableStream` into a concrete * buffer type. They wrap `new Response(stream)` so call sites don't have to * reach into the Fetch API for what is really just a stream-to-bytes * conversion. * * Today every encrypt/decrypt path inside the vault flow ends in one of * these because the surrounding transports (webdav PUT, Uppy + tus, blob * URLs) require sliceable bytes. Once a transport can consume a stream * directly, the corresponding call site loses the helper but the engine * API stays unchanged. */ export declare function streamToArrayBuffer(stream: ReadableStream): Promise; export declare function streamToBlob(stream: ReadableStream, type?: string): Promise;