/*! * Copyright (c) 2026 Interop Alliance. All rights reserved. */ /** * Portable `Blob` reads. * * A `Blob` in a browser or in Node implements `text()` and `arrayBuffer()`, so * reading one is a single await. React Native's built-in `Blob` implements * neither -- calling them throws `TypeError: undefined is not a function` -- * but RN does provide a global `FileReader` with `readAsText` / * `readAsArrayBuffer`, which reads its own `Blob` type. That asymmetry is * invisible in tests (they run on Node, where the native methods exist) and in * the browser wallet, so every `Blob` read in this library goes through the two * helpers here rather than calling the native methods directly. * * Each helper prefers the native method when it is present and falls back to a * `FileReader` otherwise. The fallback is Promise-wrapped by hand because * `FileReader` is event-based: it resolves on `onload` with `reader.result` and * rejects on `onerror` with the reader's own error. */ /** * A blob's contents as text, decoded as UTF-8. * * @param blob {Blob} * @returns {Promise} */ export declare function blobText(blob: Blob): Promise; /** * A blob's contents as bytes. * * @param blob {Blob} * @returns {Promise} */ export declare function blobBytes(blob: Blob): Promise; //# sourceMappingURL=blob.d.ts.map