import type { IWasmTypedArray } from "../../Misc/IWasmTypedArray"; import type { TypedArray, TypedArrayConstructor } from "../../Misc/wasmTypedArray"; export type BulletWasmType = typeof import("../../wasm/mpr") | typeof import("../../wasm/mpd") | typeof import("../../wasm/spr") | typeof import("../../wasm/spd"); /** * Bullet WASM instance * * entry point of the Bullet WASM */ export interface IBulletWasmInstance extends BulletWasmType { memory: WebAssembly.Memory; createTypedArray(typedArrayConstructor: TypedArrayConstructor, byteOffset: number, length: number): IWasmTypedArray; } export interface IBulletWasmInstanceType { /** * Get Bullet wasm-bindgen instance * @returns Bullet wasm-bindgen instance */ getWasmInstanceInner(): BulletWasmType; }