UNPKG

signalk-server

Version:

An implementation of a [Signal K](http://signalk.org) server for boats.

30 lines 1.16 kB
/** * WASM ServerAPI FFI Bridge * * Provides the FFI (Foreign Function Interface) bridge between WASM plugins * and the Signal K ServerAPI. Enforces capability restrictions and handles * serialization across the WASM boundary. */ export interface ServerAPIBridge { app: any; configPath: string; } /** * Create ServerAPI FFI functions for a WASM plugin * * These functions will be imported by the WASM module and provide * access to Signal K server capabilities based on declared permissions. */ export declare function createServerAPIBridge(app: any, pluginId: string, configPath: string): any; /** * Create WASM import object with ServerAPI functions * * This generates the WebAssembly imports that will be available to the plugin. * In Phase 1, we use a simplified approach. Full WIT bindings will be added later. */ export declare function createWasmImports(app: any, pluginId: string, configPath: string): WebAssembly.Imports; /** * Call a WASM plugin export with error handling */ export declare function callWasmExport<T>(pluginId: string, exportName: string, ...args: any[]): T; //# sourceMappingURL=wasm-serverapi.d.ts.map