/** * These bindings enable easier interaction with Wasm modules generated with our AssemblyScript compilation. * For example : instantiation, passing data back and forth, etc ... * * **Warning** : These bindings are compiled with rollup as a standalone JS module for inclusion in other libraries. * In consequence, they are meant to be kept lightweight, and should avoid importing dependencies. * * @module */ import { CoreRawModuleWithDependencies } from '../core/bindings-assemblyscript'; import { MessagePointer } from '../../engine-assemblyscript/run/types'; import { Message } from '../../run/types'; import { MsgExportsAssemblyScript } from './types'; export interface MsgRawModule { globals: { msg: MsgExportsAssemblyScript; }; } export type MsgRawModuleWithDependencies = MsgRawModule & CoreRawModuleWithDependencies; export declare const INT_ARRAY_BYTES_PER_ELEMENT: number; export declare const liftMessage: (rawModule: MsgRawModuleWithDependencies, messagePointer: MessagePointer) => Message; export declare const lowerMessage: (rawModule: MsgRawModuleWithDependencies, message: Message) => MessagePointer;