//#region src/utils/typed-arrays.d.ts /** * Ensures a Uint8Array is backed by a regular ArrayBuffer (not SharedArrayBuffer). * * TypeScript 5.7+ made typed arrays generic over their buffer type. Bare `Uint8Array` * defaults to `Uint8Array`, which includes SharedArrayBuffer. Web Crypto * APIs require `BufferSource` which only accepts `ArrayBufferView`. This * function narrows the type using an instanceof guard, creating a same-buffer view * (zero-copy) when the buffer is already an ArrayBuffer. */ declare function toArrayBufferBacked(arr: Uint8Array): Uint8Array; //#endregion export { toArrayBufferBacked }; //# sourceMappingURL=typed-arrays.d.ts.map