@ruvector/edge-full 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -0,0 +1,128 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export const memory: WebAssembly.Memory;
4
+ export const __wbg_baselora_free: (a: number, b: number) => void;
5
+ export const __wbg_embedder_free: (a: number, b: number) => void;
6
+ export const __wbg_embeddingconfig_free: (a: number, b: number) => void;
7
+ export const __wbg_get_embeddingconfig_dimensions: (a: number) => number;
8
+ export const __wbg_get_embeddingconfig_max_length: (a: number) => number;
9
+ export const __wbg_get_embeddingconfig_normalize: (a: number) => number;
10
+ export const __wbg_get_loraconfig_alpha: (a: number) => number;
11
+ export const __wbg_get_loraconfig_hidden_dim: (a: number) => number;
12
+ export const __wbg_get_loraconfig_learning_rate: (a: number) => number;
13
+ export const __wbg_get_trmconfig_confidence_threshold: (a: number) => number;
14
+ export const __wbg_get_trmconfig_convergence_threshold: (a: number) => number;
15
+ export const __wbg_get_trmconfig_early_stopping: (a: number) => number;
16
+ export const __wbg_get_trmconfig_latent_iterations: (a: number) => number;
17
+ export const __wbg_get_trmconfig_max_k: (a: number) => number;
18
+ export const __wbg_get_trmconfig_min_iterations: (a: number) => number;
19
+ export const __wbg_get_trmconfig_num_heads: (a: number) => number;
20
+ export const __wbg_get_trmconfig_residual_scale: (a: number) => number;
21
+ export const __wbg_get_trmconfig_use_attention: (a: number) => number;
22
+ export const __wbg_get_trmresult_confidence: (a: number) => number;
23
+ export const __wbg_get_trmresult_early_stopped: (a: number) => number;
24
+ export const __wbg_get_trmresult_iterations_used: (a: number) => number;
25
+ export const __wbg_get_trmresult_latency_ms: (a: number) => number;
26
+ export const __wbg_loraconfig_free: (a: number, b: number) => void;
27
+ export const __wbg_microlora_free: (a: number, b: number) => void;
28
+ export const __wbg_rvlite_free: (a: number, b: number) => void;
29
+ export const __wbg_rvliteconfig_free: (a: number, b: number) => void;
30
+ export const __wbg_set_embeddingconfig_dimensions: (a: number, b: number) => void;
31
+ export const __wbg_set_embeddingconfig_max_length: (a: number, b: number) => void;
32
+ export const __wbg_set_embeddingconfig_normalize: (a: number, b: number) => void;
33
+ export const __wbg_trmconfig_free: (a: number, b: number) => void;
34
+ export const __wbg_trmengine_free: (a: number, b: number) => void;
35
+ export const __wbg_trmresult_free: (a: number, b: number) => void;
36
+ export const baselora_applyGradients: (a: number) => void;
37
+ export const baselora_distillFrom: (a: number, b: number, c: number, d: number) => void;
38
+ export const baselora_forward: (a: number, b: number, c: number, d: number) => void;
39
+ export const baselora_new: (a: number, b: number) => void;
40
+ export const baselora_stats: (a: number) => number;
41
+ export const benchmark_embeddings: (a: number) => number;
42
+ export const benchmark_trm: (a: number, b: number) => number;
43
+ export const cosineSimilarity: (a: number, b: number, c: number, d: number, e: number) => void;
44
+ export const dotProduct: (a: number, b: number, c: number, d: number, e: number) => void;
45
+ export const embedder_cosine_similarity: (a: number, b: number) => number;
46
+ export const embedder_dimensions: (a: number) => number;
47
+ export const embedder_embed: (a: number, b: number, c: number) => number;
48
+ export const embedder_embed_batch: (a: number, b: number, c: number) => void;
49
+ export const embedder_new: () => number;
50
+ export const embedder_similarity: (a: number, b: number, c: number, d: number, e: number) => number;
51
+ export const embedder_with_config: (a: number) => number;
52
+ export const embeddingconfig_minilm: () => number;
53
+ export const embeddingconfig_with_dimensions: (a: number) => number;
54
+ export const features: () => number;
55
+ export const init: () => void;
56
+ export const l2Distance: (a: number, b: number, c: number, d: number, e: number) => void;
57
+ export const lerp: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
58
+ export const loraconfig_base: (a: number) => number;
59
+ export const loraconfig_micro: (a: number) => number;
60
+ export const loraconfig_new: (a: number, b: number, c: number, d: number) => number;
61
+ export const loraconfig_toJSON: (a: number) => number;
62
+ export const loraconfig_validate: (a: number, b: number) => void;
63
+ export const meanPooling: (a: number, b: number, c: number, d: number) => void;
64
+ export const microlora_accumulateGradient: (a: number, b: number, c: number, d: number, e: number) => void;
65
+ export const microlora_applyGradients: (a: number) => void;
66
+ export const microlora_exportWeights: (a: number) => number;
67
+ export const microlora_forward: (a: number, b: number, c: number, d: number) => void;
68
+ export const microlora_new: (a: number, b: number) => void;
69
+ export const microlora_reset: (a: number) => void;
70
+ export const microlora_stats: (a: number) => number;
71
+ export const normalizeVector: (a: number, b: number, c: number) => void;
72
+ export const randomVector: (a: number, b: number, c: number) => void;
73
+ export const rvlite_cypher: (a: number, b: number, c: number) => number;
74
+ export const rvlite_default: (a: number) => void;
75
+ export const rvlite_delete: (a: number, b: number, c: number, d: number) => void;
76
+ export const rvlite_get: (a: number, b: number, c: number, d: number) => void;
77
+ export const rvlite_get_config: (a: number, b: number) => void;
78
+ export const rvlite_get_features: (a: number, b: number) => void;
79
+ export const rvlite_get_version: (a: number, b: number) => void;
80
+ export const rvlite_insert: (a: number, b: number, c: number, d: number, e: number) => void;
81
+ export const rvlite_insert_with_id: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
82
+ export const rvlite_is_empty: (a: number, b: number) => void;
83
+ export const rvlite_is_ready: (a: number) => number;
84
+ export const rvlite_len: (a: number, b: number) => void;
85
+ export const rvlite_new: (a: number, b: number) => void;
86
+ export const rvlite_search: (a: number, b: number, c: number, d: number, e: number) => void;
87
+ export const rvlite_search_with_filter: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
88
+ export const rvlite_sparql: (a: number, b: number, c: number) => number;
89
+ export const rvlite_sql: (a: number, b: number, c: number) => number;
90
+ export const rvliteconfig_new: (a: number) => number;
91
+ export const rvliteconfig_with_distance_metric: (a: number, b: number, c: number) => number;
92
+ export const softmax: (a: number, b: number, c: number) => void;
93
+ export const trmconfig_balanced: (a: number) => number;
94
+ export const trmconfig_fast: (a: number) => number;
95
+ export const trmconfig_fromJSON: (a: number, b: number) => void;
96
+ export const trmconfig_new: (a: number, b: number, c: number) => number;
97
+ export const trmconfig_quality: (a: number) => number;
98
+ export const trmconfig_toJSON: (a: number) => number;
99
+ export const trmconfig_validate: (a: number, b: number) => void;
100
+ export const trmconfig_withAttention: (a: number, b: number) => number;
101
+ export const trmconfig_withConfidenceThreshold: (a: number, b: number) => number;
102
+ export const trmconfig_withDefaultK: (a: number, b: number) => number;
103
+ export const trmconfig_withEarlyStopping: (a: number, b: number) => number;
104
+ export const trmconfig_withLatentIterations: (a: number, b: number) => number;
105
+ export const trmengine_getConfig: (a: number) => number;
106
+ export const trmengine_new: (a: number, b: number) => void;
107
+ export const trmengine_reason: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
108
+ export const trmengine_reasonWithK: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
109
+ export const trmengine_reset: (a: number) => void;
110
+ export const trmengine_stats: (a: number) => number;
111
+ export const trmresult_getAnswer: (a: number, b: number) => void;
112
+ export const trmresult_toJSON: (a: number) => number;
113
+ export const version: (a: number) => void;
114
+ export const zeros: (a: number, b: number) => void;
115
+ export const embeddingconfig_new: () => number;
116
+ export const __wbg_get_trmconfig_embedding_dim: (a: number) => number;
117
+ export const __wbg_get_loraconfig_rank: (a: number) => number;
118
+ export const __wbg_get_trmconfig_hidden_dim: (a: number) => number;
119
+ export const __wbg_get_trmconfig_default_k: (a: number) => number;
120
+ export const __wasm_bindgen_func_elem_690: (a: number, b: number, c: number) => void;
121
+ export const __wasm_bindgen_func_elem_684: (a: number, b: number) => void;
122
+ export const __wasm_bindgen_func_elem_1412: (a: number, b: number, c: number, d: number) => void;
123
+ export const __wbindgen_export: (a: number, b: number) => number;
124
+ export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
125
+ export const __wbindgen_export3: (a: number) => void;
126
+ export const __wbindgen_export4: (a: number, b: number, c: number) => void;
127
+ export const __wbindgen_add_to_stack_pointer: (a: number) => number;
128
+ export const __wbindgen_start: () => void;
@@ -0,0 +1,513 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+
4
+ export class WasmEphemeralAgent {
5
+ free(): void;
6
+ [Symbol.dispose](): void;
7
+ /**
8
+ * Force learning cycle on agent's engine
9
+ */
10
+ forceLearn(): string;
11
+ /**
12
+ * Create agent with custom configuration
13
+ *
14
+ * # Arguments
15
+ * * `agent_id` - Unique identifier
16
+ * * `config` - JSON configuration object
17
+ *
18
+ * # Example
19
+ * ```javascript
20
+ * const config = {
21
+ * hidden_dim: 256,
22
+ * trajectory_capacity: 500,
23
+ * pattern_clusters: 25
24
+ * };
25
+ * const agent = WasmEphemeralAgent.with_config("agent-1", config);
26
+ * ```
27
+ */
28
+ static withConfig(agent_id: string, config: any): WasmEphemeralAgent;
29
+ /**
30
+ * Export agent state for coordinator aggregation
31
+ *
32
+ * # Returns
33
+ * JSON object containing agent state, trajectories, and statistics
34
+ *
35
+ * # Example
36
+ * ```javascript
37
+ * const state = agent.export_state();
38
+ * console.log('Trajectories:', state.trajectories.length);
39
+ * coordinator.aggregate(state);
40
+ * ```
41
+ */
42
+ exportState(): any;
43
+ /**
44
+ * Get learned patterns from agent
45
+ */
46
+ getPatterns(): any;
47
+ /**
48
+ * Process a task and record trajectory
49
+ *
50
+ * # Arguments
51
+ * * `embedding` - Query embedding as Float32Array
52
+ * * `quality` - Task quality score [0.0, 1.0]
53
+ *
54
+ * # Example
55
+ * ```javascript
56
+ * const embedding = new Float32Array(256).fill(0.1);
57
+ * agent.process_task(embedding, 0.85);
58
+ * ```
59
+ */
60
+ processTask(embedding: Float32Array, quality: number): void;
61
+ /**
62
+ * Get agent uptime in seconds
63
+ */
64
+ uptimeSeconds(): bigint;
65
+ /**
66
+ * Get average quality of collected trajectories
67
+ */
68
+ averageQuality(): number;
69
+ /**
70
+ * Get number of collected trajectories
71
+ */
72
+ trajectoryCount(): number;
73
+ /**
74
+ * Process task with model route information
75
+ *
76
+ * # Arguments
77
+ * * `embedding` - Query embedding
78
+ * * `quality` - Quality score
79
+ * * `route` - Model route used (e.g., "gpt-4", "claude-3")
80
+ */
81
+ processTaskWithRoute(embedding: Float32Array, quality: number, route: string): void;
82
+ /**
83
+ * Create a new ephemeral agent with default config
84
+ *
85
+ * # Arguments
86
+ * * `agent_id` - Unique identifier for this agent
87
+ *
88
+ * # Example
89
+ * ```javascript
90
+ * const agent = new WasmEphemeralAgent("agent-1");
91
+ * ```
92
+ */
93
+ constructor(agent_id: string);
94
+ /**
95
+ * Clear collected trajectories (after export)
96
+ */
97
+ clear(): void;
98
+ /**
99
+ * Get agent statistics
100
+ *
101
+ * # Returns
102
+ * JSON object with trajectory count, quality stats, uptime
103
+ */
104
+ getStats(): any;
105
+ }
106
+
107
+ export class WasmFederatedCoordinator {
108
+ free(): void;
109
+ [Symbol.dispose](): void;
110
+ /**
111
+ * Apply coordinator's learned LoRA to input
112
+ */
113
+ applyLora(input: Float32Array): Float32Array;
114
+ /**
115
+ * Get total number of contributing agents
116
+ */
117
+ agentCount(): number;
118
+ /**
119
+ * Consolidate learning from all aggregated trajectories
120
+ *
121
+ * Should be called periodically after aggregating multiple agents.
122
+ *
123
+ * # Returns
124
+ * Learning result as JSON string
125
+ */
126
+ consolidate(): string;
127
+ /**
128
+ * Create coordinator with custom configuration
129
+ *
130
+ * # Arguments
131
+ * * `coordinator_id` - Unique identifier
132
+ * * `config` - JSON configuration object
133
+ *
134
+ * # Example
135
+ * ```javascript
136
+ * const config = {
137
+ * hidden_dim: 256,
138
+ * trajectory_capacity: 50000,
139
+ * pattern_clusters: 200,
140
+ * ewc_lambda: 2000.0
141
+ * };
142
+ * const coordinator = WasmFederatedCoordinator.with_config("central", config);
143
+ * ```
144
+ */
145
+ static withConfig(coordinator_id: string, config: any): WasmFederatedCoordinator;
146
+ /**
147
+ * Get all learned patterns from coordinator
148
+ */
149
+ getPatterns(): any;
150
+ /**
151
+ * Find similar patterns to query
152
+ *
153
+ * # Arguments
154
+ * * `query_embedding` - Query vector
155
+ * * `k` - Number of patterns to return
156
+ */
157
+ findPatterns(query_embedding: Float32Array, k: number): any;
158
+ /**
159
+ * Get total trajectories aggregated
160
+ */
161
+ totalTrajectories(): number;
162
+ /**
163
+ * Set quality threshold for accepting trajectories
164
+ *
165
+ * # Arguments
166
+ * * `threshold` - Minimum quality [0.0, 1.0], default 0.4
167
+ */
168
+ setQualityThreshold(threshold: number): void;
169
+ /**
170
+ * Create a new federated coordinator with default config
171
+ *
172
+ * # Arguments
173
+ * * `coordinator_id` - Unique identifier for this coordinator
174
+ *
175
+ * # Example
176
+ * ```javascript
177
+ * const coordinator = new WasmFederatedCoordinator("central");
178
+ * ```
179
+ */
180
+ constructor(coordinator_id: string);
181
+ /**
182
+ * Clear all agent contributions (reset coordinator)
183
+ */
184
+ clear(): void;
185
+ /**
186
+ * Aggregate agent export into coordinator
187
+ *
188
+ * # Arguments
189
+ * * `agent_export` - JSON export from agent.export_state()
190
+ *
191
+ * # Returns
192
+ * JSON aggregation result with accepted/rejected counts
193
+ *
194
+ * # Example
195
+ * ```javascript
196
+ * const agentState = agent.export_state();
197
+ * const result = coordinator.aggregate(agentState);
198
+ * console.log('Accepted:', result.accepted);
199
+ * ```
200
+ */
201
+ aggregate(agent_export: any): any;
202
+ /**
203
+ * Get coordinator statistics
204
+ *
205
+ * # Returns
206
+ * JSON object with agent count, trajectory count, quality stats
207
+ */
208
+ getStats(): any;
209
+ }
210
+
211
+ export class WasmSonaEngine {
212
+ free(): void;
213
+ [Symbol.dispose](): void;
214
+ /**
215
+ * Apply LoRA transformation to input vector
216
+ *
217
+ * # Arguments
218
+ * * `input` - Input vector as Float32Array
219
+ *
220
+ * # Returns
221
+ * Transformed vector as Float32Array
222
+ *
223
+ * # Example
224
+ * ```javascript
225
+ * const input = new Float32Array(256).fill(1.0);
226
+ * const output = engine.apply_lora(input);
227
+ * ```
228
+ */
229
+ applyLora(input: Float32Array): Float32Array;
230
+ /**
231
+ * Get configuration
232
+ *
233
+ * # Returns
234
+ * Configuration as JSON object
235
+ */
236
+ getConfig(): any;
237
+ /**
238
+ * Check if engine is enabled
239
+ *
240
+ * # Returns
241
+ * true if enabled, false otherwise
242
+ */
243
+ isEnabled(): boolean;
244
+ /**
245
+ * Force background learning cycle
246
+ *
247
+ * # Returns
248
+ * Learning statistics as JSON string
249
+ *
250
+ * # Example
251
+ * ```javascript
252
+ * const stats = engine.force_learn();
253
+ * console.log('Learning results:', stats);
254
+ * ```
255
+ */
256
+ forceLearn(): string;
257
+ /**
258
+ * Record a step in the trajectory
259
+ *
260
+ * # Arguments
261
+ * * `trajectory_id` - ID returned from start_trajectory
262
+ * * `node_id` - Graph node visited
263
+ * * `score` - Step quality score [0.0, 1.0]
264
+ * * `latency_us` - Step latency in microseconds
265
+ *
266
+ * # Example
267
+ * ```javascript
268
+ * engine.record_step(trajectoryId, 42, 0.8, 1000);
269
+ * ```
270
+ */
271
+ recordStep(trajectory_id: bigint, node_id: number, score: number, latency_us: bigint): void;
272
+ /**
273
+ * Enable or disable the engine
274
+ *
275
+ * # Arguments
276
+ * * `enabled` - Whether to enable the engine
277
+ *
278
+ * # Example
279
+ * ```javascript
280
+ * engine.set_enabled(false); // Pause learning
281
+ * ```
282
+ */
283
+ setEnabled(enabled: boolean): void;
284
+ /**
285
+ * Create engine with custom configuration
286
+ *
287
+ * # Arguments
288
+ * * `config` - JSON configuration object
289
+ *
290
+ * # Example
291
+ * ```javascript
292
+ * const config = {
293
+ * hidden_dim: 256,
294
+ * embedding_dim: 256,
295
+ * micro_lora_rank: 2,
296
+ * base_lora_rank: 16,
297
+ * micro_lora_lr: 0.001,
298
+ * base_lora_lr: 0.0001,
299
+ * ewc_lambda: 1000.0,
300
+ * pattern_clusters: 128,
301
+ * trajectory_capacity: 10000,
302
+ * quality_threshold: 0.6
303
+ * };
304
+ * const engine = WasmSonaEngine.with_config(config);
305
+ * ```
306
+ */
307
+ static withConfig(config: any): WasmSonaEngine;
308
+ /**
309
+ * Find similar patterns to query
310
+ *
311
+ * # Arguments
312
+ * * `query_embedding` - Query vector as Float32Array
313
+ * * `k` - Number of patterns to return
314
+ *
315
+ * # Returns
316
+ * Array of similar patterns as JSON
317
+ *
318
+ * # Example
319
+ * ```javascript
320
+ * const query = new Float32Array(256).fill(0.5);
321
+ * const patterns = engine.find_patterns(query, 5);
322
+ * console.log('Similar patterns:', patterns);
323
+ * ```
324
+ */
325
+ findPatterns(query_embedding: Float32Array, k: number): any;
326
+ /**
327
+ * End the trajectory and submit for learning
328
+ *
329
+ * # Arguments
330
+ * * `trajectory_id` - ID returned from start_trajectory
331
+ * * `final_score` - Overall trajectory quality [0.0, 1.0]
332
+ *
333
+ * # Example
334
+ * ```javascript
335
+ * engine.end_trajectory(trajectoryId, 0.85);
336
+ * ```
337
+ */
338
+ endTrajectory(trajectory_id: bigint, final_score: number): void;
339
+ /**
340
+ * Apply LoRA transformation to specific layer
341
+ *
342
+ * # Arguments
343
+ * * `layer_idx` - Layer index
344
+ * * `input` - Input vector as Float32Array
345
+ *
346
+ * # Returns
347
+ * Transformed vector as Float32Array
348
+ */
349
+ applyLoraLayer(layer_idx: number, input: Float32Array): Float32Array;
350
+ /**
351
+ * Start recording a new trajectory
352
+ *
353
+ * # Arguments
354
+ * * `query_embedding` - Query vector as Float32Array
355
+ *
356
+ * # Returns
357
+ * Trajectory ID (u64)
358
+ *
359
+ * # Example
360
+ * ```javascript
361
+ * const embedding = new Float32Array(256).fill(0.1);
362
+ * const trajectoryId = engine.start_trajectory(embedding);
363
+ * ```
364
+ */
365
+ startTrajectory(query_embedding: Float32Array): bigint;
366
+ /**
367
+ * Run instant learning cycle
368
+ *
369
+ * Flushes accumulated micro-LoRA updates
370
+ *
371
+ * # Example
372
+ * ```javascript
373
+ * engine.run_instant_cycle();
374
+ * ```
375
+ */
376
+ runInstantCycle(): void;
377
+ /**
378
+ * Apply learning from user feedback
379
+ *
380
+ * # Arguments
381
+ * * `success` - Whether the operation succeeded
382
+ * * `latency_ms` - Operation latency in milliseconds
383
+ * * `quality` - User-perceived quality [0.0, 1.0]
384
+ *
385
+ * # Example
386
+ * ```javascript
387
+ * engine.learn_from_feedback(true, 50.0, 0.9);
388
+ * ```
389
+ */
390
+ learnFromFeedback(success: boolean, latency_ms: number, quality: number): void;
391
+ /**
392
+ * Create a new SONA engine with specified hidden dimension
393
+ *
394
+ * # Arguments
395
+ * * `hidden_dim` - Size of hidden layer (typically 256, 512, or 1024)
396
+ *
397
+ * # Example
398
+ * ```javascript
399
+ * const engine = new WasmSonaEngine(256);
400
+ * ```
401
+ */
402
+ constructor(hidden_dim: number);
403
+ /**
404
+ * Try to run background learning cycle
405
+ *
406
+ * Returns true if cycle was executed, false if not due yet
407
+ *
408
+ * # Example
409
+ * ```javascript
410
+ * if (engine.tick()) {
411
+ * console.log('Background learning completed');
412
+ * }
413
+ * ```
414
+ */
415
+ tick(): boolean;
416
+ /**
417
+ * Get engine statistics
418
+ *
419
+ * # Returns
420
+ * Statistics as JSON object
421
+ *
422
+ * # Example
423
+ * ```javascript
424
+ * const stats = engine.get_stats();
425
+ * console.log('Trajectories buffered:', stats.trajectories_buffered);
426
+ * console.log('Patterns learned:', stats.patterns_learned);
427
+ * ```
428
+ */
429
+ getStats(): any;
430
+ }
431
+
432
+ /**
433
+ * Initialize WASM module (called automatically)
434
+ */
435
+ export function wasm_init(): void;
436
+
437
+ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
438
+
439
+ export interface InitOutput {
440
+ readonly memory: WebAssembly.Memory;
441
+ readonly __wbg_wasmephemeralagent_free: (a: number, b: number) => void;
442
+ readonly __wbg_wasmfederatedcoordinator_free: (a: number, b: number) => void;
443
+ readonly __wbg_wasmsonaengine_free: (a: number, b: number) => void;
444
+ readonly wasmephemeralagent_averageQuality: (a: number) => number;
445
+ readonly wasmephemeralagent_clear: (a: number) => void;
446
+ readonly wasmephemeralagent_exportState: (a: number) => number;
447
+ readonly wasmephemeralagent_forceLearn: (a: number, b: number) => void;
448
+ readonly wasmephemeralagent_getPatterns: (a: number) => number;
449
+ readonly wasmephemeralagent_getStats: (a: number) => number;
450
+ readonly wasmephemeralagent_new: (a: number, b: number, c: number) => void;
451
+ readonly wasmephemeralagent_processTask: (a: number, b: number, c: number, d: number) => void;
452
+ readonly wasmephemeralagent_processTaskWithRoute: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
453
+ readonly wasmephemeralagent_trajectoryCount: (a: number) => number;
454
+ readonly wasmephemeralagent_uptimeSeconds: (a: number) => bigint;
455
+ readonly wasmephemeralagent_withConfig: (a: number, b: number, c: number, d: number) => void;
456
+ readonly wasmfederatedcoordinator_agentCount: (a: number) => number;
457
+ readonly wasmfederatedcoordinator_aggregate: (a: number, b: number) => number;
458
+ readonly wasmfederatedcoordinator_applyLora: (a: number, b: number, c: number, d: number) => void;
459
+ readonly wasmfederatedcoordinator_clear: (a: number) => void;
460
+ readonly wasmfederatedcoordinator_consolidate: (a: number, b: number) => void;
461
+ readonly wasmfederatedcoordinator_findPatterns: (a: number, b: number, c: number, d: number) => number;
462
+ readonly wasmfederatedcoordinator_getPatterns: (a: number) => number;
463
+ readonly wasmfederatedcoordinator_getStats: (a: number) => number;
464
+ readonly wasmfederatedcoordinator_new: (a: number, b: number, c: number) => void;
465
+ readonly wasmfederatedcoordinator_setQualityThreshold: (a: number, b: number) => void;
466
+ readonly wasmfederatedcoordinator_totalTrajectories: (a: number) => number;
467
+ readonly wasmfederatedcoordinator_withConfig: (a: number, b: number, c: number, d: number) => void;
468
+ readonly wasmsonaengine_applyLora: (a: number, b: number, c: number, d: number) => void;
469
+ readonly wasmsonaengine_applyLoraLayer: (a: number, b: number, c: number, d: number, e: number) => void;
470
+ readonly wasmsonaengine_endTrajectory: (a: number, b: bigint, c: number) => void;
471
+ readonly wasmsonaengine_findPatterns: (a: number, b: number, c: number, d: number) => number;
472
+ readonly wasmsonaengine_forceLearn: (a: number, b: number) => void;
473
+ readonly wasmsonaengine_getConfig: (a: number) => number;
474
+ readonly wasmsonaengine_getStats: (a: number) => number;
475
+ readonly wasmsonaengine_isEnabled: (a: number) => number;
476
+ readonly wasmsonaengine_learnFromFeedback: (a: number, b: number, c: number, d: number) => void;
477
+ readonly wasmsonaengine_new: (a: number, b: number) => void;
478
+ readonly wasmsonaengine_recordStep: (a: number, b: bigint, c: number, d: number, e: bigint) => void;
479
+ readonly wasmsonaengine_runInstantCycle: (a: number) => void;
480
+ readonly wasmsonaengine_setEnabled: (a: number, b: number) => void;
481
+ readonly wasmsonaengine_startTrajectory: (a: number, b: number, c: number) => bigint;
482
+ readonly wasmsonaengine_tick: (a: number) => number;
483
+ readonly wasmsonaengine_withConfig: (a: number, b: number) => void;
484
+ readonly wasm_init: () => void;
485
+ readonly __wbindgen_export: (a: number, b: number) => number;
486
+ readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
487
+ readonly __wbindgen_export3: (a: number) => void;
488
+ readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
489
+ readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
490
+ readonly __wbindgen_start: () => void;
491
+ }
492
+
493
+ export type SyncInitInput = BufferSource | WebAssembly.Module;
494
+
495
+ /**
496
+ * Instantiates the given `module`, which can either be bytes or
497
+ * a precompiled `WebAssembly.Module`.
498
+ *
499
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
500
+ *
501
+ * @returns {InitOutput}
502
+ */
503
+ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
504
+
505
+ /**
506
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
507
+ * for everything else, calls `WebAssembly.instantiate` directly.
508
+ *
509
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
510
+ *
511
+ * @returns {Promise<InitOutput>}
512
+ */
513
+ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;