1declare namespace embind { 2 export interface EmbindModule { 3 // The following are provided by emscripten 4 onRuntimeInitialized(): void; 5 _malloc(bytes: number): number; 6 _free(ptr: number): void; 7 8 HEAPF32: Float32Array; 9 HEAPU8: Uint8Array; 10 HEAPU16: Uint16Array; 11 HEAPU32: Uint32Array; 12 HEAP8: Int8Array; 13 HEAP16: Int16Array; 14 HEAP32: Int32Array; 15 } 16 17 export interface EmbindObject<T extends EmbindObject<T>> { 18 clone(): T; 19 delete(): void; 20 deleteAfter(): void; 21 isAliasOf(other: any): boolean; 22 isDeleted(): boolean; 23 } 24} 25