/** * @interface WasmEngineConfig * @description Configuration for the WASM Neural Engine. */ export interface WasmEngineConfig { simdEnabled: boolean; threading: 'multi' | 'single'; memoryLimit: string; optimization: 'speed' | 'size' | 'balanced'; } /** * @interface WasmEngineOperations * @description Defines operations for the WASM Neural Engine. */ export interface WasmEngineOperations { loadModel(modelPath: string): Promise; runInference(model: any, inputData: any): Promise; compileWasmModule(sourceCode: string): Promise; optimizeWasmModule(module: WebAssembly.Module): Promise; } /** * @class WasmNeuralEngine * @description Provides high-performance neural processing with WebAssembly acceleration. */ export declare class WasmNeuralEngine implements WasmEngineOperations { private config; private logger; constructor(config: WasmEngineConfig); /** * Loads a neural network model into the WASM engine. * @param {string} modelPath The path to the model (e.g., URL or local file). * @returns {Promise} The loaded model instance. */ loadModel(modelPath: string): Promise; /** * Runs inference on a loaded neural network model using WASM. * @param {any} model The loaded model instance. * @param {any} inputData The input data for inference (e.g., tensor). * @returns {Promise} The inference result. */ runInference(model: any, inputData: any): Promise; /** * Compiles WebAssembly source code into a module. * @param {string} sourceCode The WebAssembly text format (WAT) or binary code. * @returns {Promise} The compiled WebAssembly module. */ compileWasmModule(sourceCode: string): Promise; /** * Optimizes a compiled WebAssembly module (conceptual). * @param {WebAssembly.Module} module The WebAssembly module to optimize. * @returns {Promise} The optimized WebAssembly module. */ optimizeWasmModule(module: WebAssembly.Module): Promise; } //# sourceMappingURL=wasm-engine.d.ts.map