strictjs-runtime 1.0.0 → 1.0.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strictjs-runtime",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "A low-level runtime for StrictJS with WebAssembly support",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -18,6 +18,6 @@
18
18
  "runtime",
19
19
  "lowlevel"
20
20
  ],
21
- "author": "Your Name",
21
+ "author": "Kennneth Mburu",
22
22
  "license": "MIT"
23
23
  }
package/pkg/README.md ADDED
@@ -0,0 +1,20 @@
1
+
2
+ # StrictJS Runtime
3
+
4
+ Type-safe JavaScript runtime with WebAssembly - Bringing Rust's safety guarantees to JavaScript.
5
+
6
+ ## Features
7
+
8
+ - 🔒 **Type-safe numbers** with automatic clamping
9
+ - 📏 **Bounded strings** with character limits
10
+ - 🧮 **Safe arrays** with bounds checking
11
+ - 🏗️ **Schema-based objects** with type guarantees
12
+ - ⚡ **WebAssembly performance** with JavaScript convenience
13
+
14
+ ## Installation
15
+
16
+ ### CDN (Browser)
17
+ ```html
18
+ <script type="module">
19
+ import { StrictNumber, HeapType, StrictString, StrictArray, StrictObject } from 'https://cdn.jsdelivr.net/npm/strictjs-runtime@latest/pkg/strictjs_runtime.js';
20
+ </script>
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "strictjs-runtime",
3
+ "type": "module",
4
+ "collaborators": [
5
+ "Your Name kennethmburu21@gmail.com"
6
+ ],
7
+ "description": "Type-safe JavaScript runtime with WebAssembly - Bringing Rust's safety guarantees to JavaScript",
8
+ "version": "0.1.0",
9
+ "license": "MIT",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/yourusername/strictjs-runtime"
13
+ },
14
+ "files": [
15
+ "strictjs_runtime_bg.wasm",
16
+ "strictjs_runtime.js",
17
+ "strictjs_runtime.d.ts"
18
+ ],
19
+ "main": "strictjs_runtime.js",
20
+ "types": "strictjs_runtime.d.ts",
21
+ "sideEffects": [
22
+ "./snippets/*"
23
+ ]
24
+ }
@@ -0,0 +1,498 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export function strict_fetch(url: string, return_type: HeapType): Promise<any>;
4
+ export function init_thread_manager(config: any): ThreadManager;
5
+ export function get_memory(): any;
6
+ export enum HeapType {
7
+ Number = 0,
8
+ U8 = 1,
9
+ I8 = 2,
10
+ U16 = 3,
11
+ I16 = 4,
12
+ U32 = 5,
13
+ I32 = 6,
14
+ Bool = 7,
15
+ U64 = 8,
16
+ I64 = 9,
17
+ Str = 10,
18
+ Any = 11,
19
+ }
20
+ export enum StringEncoding {
21
+ Utf8 = 0,
22
+ Utf16 = 1,
23
+ Ascii = 2,
24
+ }
25
+ export enum ThreadPriority {
26
+ Low = 0,
27
+ Normal = 1,
28
+ High = 2,
29
+ Critical = 3,
30
+ }
31
+ export enum ThreadState {
32
+ Idle = 0,
33
+ Running = 1,
34
+ Paused = 2,
35
+ Completed = 3,
36
+ Error = 4,
37
+ }
38
+ export class Computed {
39
+ private constructor();
40
+ free(): void;
41
+ }
42
+ export class ReactiveCell {
43
+ private constructor();
44
+ free(): void;
45
+ }
46
+ export class ReactiveSystem {
47
+ free(): void;
48
+ constructor();
49
+ defineCell(name: string, initial_value: number, heap_type: HeapType): void;
50
+ setCell(name: string, new_value: number): void;
51
+ getCell(name: string): number;
52
+ defineComputed(name: string, computation: StrictFunction, dependencies: any): void;
53
+ getComputed(name: string): number;
54
+ getSystemState(): any;
55
+ }
56
+ export class Schema {
57
+ free(): void;
58
+ constructor();
59
+ addField(field: string, type_str: string): void;
60
+ addNestedField(field: string, schema: Schema): void;
61
+ getFieldType(field: string): string | undefined;
62
+ getNestedSchema(field: string): Schema | undefined;
63
+ hasField(field: string): boolean;
64
+ isNestedField(field: string): boolean;
65
+ fieldNames(): any[];
66
+ toJS(): any;
67
+ static from_js_object(js_obj: object): Schema;
68
+ }
69
+ export class StrictArray {
70
+ free(): void;
71
+ constructor(heap: HeapType, len: number);
72
+ len(): number;
73
+ heap(): HeapType;
74
+ buffer(): number;
75
+ capacity(): number;
76
+ byte_len(): number;
77
+ as_ptr(): number;
78
+ get(index: number): number;
79
+ set(index: number, value: number): void;
80
+ map(js_function: any): StrictArray;
81
+ forEach(js_function: any): void;
82
+ reduce(js_function: any, initial_value: number): number;
83
+ setRange(start: number, values: Float64Array): void;
84
+ getRange(start: number, count: number): Float64Array;
85
+ fill(value: number): void;
86
+ }
87
+ export class StrictAsync {
88
+ free(): void;
89
+ constructor(max_concurrent: number);
90
+ addTask(promise: Promise<any>, callback: Function | null | undefined, error_handler: Function | null | undefined, return_type: HeapType): void;
91
+ runTasks(): Promise<any>;
92
+ getQueueSize(): number;
93
+ getRunningTasks(): number;
94
+ clearQueue(): void;
95
+ }
96
+ export class StrictBigInt {
97
+ free(): void;
98
+ constructor(value: any, heap: HeapType);
99
+ get(): any;
100
+ set(value: any): void;
101
+ add(delta: any): void;
102
+ }
103
+ export class StrictBoolean {
104
+ free(): void;
105
+ constructor(value: boolean);
106
+ get(): boolean;
107
+ set(value: boolean): void;
108
+ toggle(): void;
109
+ and(other: boolean): boolean;
110
+ or(other: boolean): boolean;
111
+ not(): boolean;
112
+ toString(): string;
113
+ }
114
+ export class StrictForLoop {
115
+ free(): void;
116
+ constructor(start: number, end: number, step: number, heap_type: HeapType, max_iterations: number);
117
+ hasNext(): boolean;
118
+ next(): number;
119
+ getIterationCount(): number;
120
+ reset(): void;
121
+ getCurrent(): number;
122
+ getProgress(): number;
123
+ getStep(): number;
124
+ getEnd(): number;
125
+ getHeapType(): HeapType;
126
+ }
127
+ export class StrictFunction {
128
+ free(): void;
129
+ constructor(js_function: Function, arg_types: any, return_type: HeapType);
130
+ callComplex(args: any, context: any): StrictFunctionResult;
131
+ validateArguments(args: any): void;
132
+ call(args: any): number;
133
+ getArgTypes(): any;
134
+ getReturnType(): any;
135
+ }
136
+ export class StrictFunctionResult {
137
+ private constructor();
138
+ free(): void;
139
+ toNumber(): number | undefined;
140
+ toBoolean(): boolean | undefined;
141
+ toString(): string | undefined;
142
+ readonly value: any;
143
+ readonly result_type: string;
144
+ }
145
+ export class StrictNumber {
146
+ free(): void;
147
+ constructor(val: number, heap: HeapType);
148
+ heap(): HeapType;
149
+ get(): number;
150
+ set(val: number): void;
151
+ add(delta: number): void;
152
+ sub(delta: number): void;
153
+ mul(factor: number): void;
154
+ div(divisor: number): void;
155
+ valueOf(): number;
156
+ }
157
+ export class StrictObject {
158
+ free(): void;
159
+ constructor(schema: any);
160
+ setField(field: string, value: any): void;
161
+ static newWithData(schema: any, initial_data: any): StrictObject;
162
+ getField(field: string): any;
163
+ getFieldAsString(field: string): string;
164
+ getFieldAsNumber(field: string): number;
165
+ getFieldAsBoolean(field: string): boolean;
166
+ getNestedObject(field: string): StrictObject;
167
+ getSchema(): any;
168
+ toJS(): any;
169
+ fieldNames(): any[];
170
+ isNestedField(field: string): boolean;
171
+ }
172
+ export class StrictPromise {
173
+ free(): void;
174
+ constructor(executor: Function, return_type: HeapType);
175
+ awaitValue(): Promise<any>;
176
+ then(on_fulfilled: Function): StrictPromise;
177
+ catch(on_rejected: Function): StrictPromise;
178
+ }
179
+ export class StrictString {
180
+ free(): void;
181
+ constructor(val: string, max_chars: number);
182
+ static newWithEncoding(val: string, max_chars: number, encoding: StringEncoding): StrictString;
183
+ get(): string;
184
+ getBytes(): Uint8Array;
185
+ getBytes16(): Uint16Array;
186
+ set(val: string): void;
187
+ push(extra: string): void;
188
+ pushChar(c: string): void;
189
+ popChar(): string | undefined;
190
+ len_chars(): number;
191
+ lenBytes(): number;
192
+ lenBytes16(): number;
193
+ max_chars(): number;
194
+ getEncoding(): StringEncoding;
195
+ setEncoding(encoding: StringEncoding): void;
196
+ substring(start: number, end: number): StrictString;
197
+ charAt(index: number): string | undefined;
198
+ indexOf(search: string): number;
199
+ lastIndexOf(search: string): number;
200
+ startsWith(prefix: string): boolean;
201
+ endsWith(suffix: string): boolean;
202
+ contains(search: string): boolean;
203
+ replace(old: string, _new: string): void;
204
+ toLowerCase(): void;
205
+ toUpperCase(): void;
206
+ trim(): void;
207
+ trimStart(): void;
208
+ trimEnd(): void;
209
+ padStart(target_length: number, pad_char: string): void;
210
+ padEnd(target_length: number, pad_char: string): void;
211
+ split(delimiter: string): Array<any>;
212
+ map(js_function: any): StrictString;
213
+ filter(js_function: any): StrictString;
214
+ }
215
+ export class StrictTimeout {
216
+ free(): void;
217
+ constructor(duration: number, callback: Function, return_type: HeapType);
218
+ start(): Promise<any>;
219
+ }
220
+ export class StrictWhileLoop {
221
+ free(): void;
222
+ constructor(condition: Function, max_iterations: number);
223
+ shouldContinue(): boolean;
224
+ increment(): number;
225
+ getIterationCount(): number;
226
+ reset(): void;
227
+ run(callback: Function): number;
228
+ }
229
+ export class ThreadConfig {
230
+ private constructor();
231
+ free(): void;
232
+ priority: ThreadPriority;
233
+ stack_size: number;
234
+ timeout_ms: number;
235
+ max_retries: number;
236
+ }
237
+ export class ThreadManager {
238
+ free(): void;
239
+ constructor(config: any);
240
+ createPool(name: string, max_threads: number): boolean;
241
+ getPool(name: string): ThreadPool | undefined;
242
+ submitToPool(pool_name: string, _function: Function, args: any, result_type: any, priority: ThreadPriority): string;
243
+ executeBatch(pool_name: string | null | undefined, count: number): Promise<any>;
244
+ parallelMap(array: any, mapper: Function, result_type: any, _pool_name?: string | null): Promise<any>;
245
+ }
246
+ export class ThreadPool {
247
+ free(): void;
248
+ constructor(max_threads: number);
249
+ submitTask(task: ThreadTask): string;
250
+ submitFunction(_function: Function, args: any, result_type: any, priority: ThreadPriority): string;
251
+ executeNext(): Promise<any>;
252
+ getTaskStatus(task_id: string): any;
253
+ cancelTask(task_id: string): boolean;
254
+ getCompletedResult(task_id: string): any;
255
+ readonly active_count: number;
256
+ readonly pending_count: number;
257
+ readonly completed_count: number;
258
+ }
259
+ export class ThreadTask {
260
+ free(): void;
261
+ constructor(_function: Function, args: any, result_type: HeapType, priority: ThreadPriority);
262
+ execute(): Promise<any>;
263
+ to_promise(): Promise<any>;
264
+ readonly id: string;
265
+ readonly state: ThreadState;
266
+ readonly priority: ThreadPriority;
267
+ }
268
+
269
+ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
270
+
271
+ export interface InitOutput {
272
+ readonly memory: WebAssembly.Memory;
273
+ readonly __wbg_strictstring_free: (a: number, b: number) => void;
274
+ readonly strictstring_new: (a: number, b: number, c: number) => number;
275
+ readonly strictstring_newWithEncoding: (a: number, b: number, c: number, d: number) => number;
276
+ readonly strictstring_get: (a: number) => [number, number];
277
+ readonly strictstring_getBytes: (a: number) => [number, number];
278
+ readonly strictstring_getBytes16: (a: number) => [number, number];
279
+ readonly strictstring_set: (a: number, b: number, c: number) => [number, number];
280
+ readonly strictstring_push: (a: number, b: number, c: number) => [number, number];
281
+ readonly strictstring_pushChar: (a: number, b: number) => [number, number];
282
+ readonly strictstring_popChar: (a: number) => number;
283
+ readonly strictstring_len_chars: (a: number) => number;
284
+ readonly strictstring_lenBytes: (a: number) => number;
285
+ readonly strictstring_lenBytes16: (a: number) => number;
286
+ readonly strictstring_max_chars: (a: number) => number;
287
+ readonly strictstring_getEncoding: (a: number) => number;
288
+ readonly strictstring_setEncoding: (a: number, b: number) => [number, number];
289
+ readonly strictstring_substring: (a: number, b: number, c: number) => [number, number, number];
290
+ readonly strictstring_charAt: (a: number, b: number) => [number, number];
291
+ readonly strictstring_indexOf: (a: number, b: number, c: number) => number;
292
+ readonly strictstring_lastIndexOf: (a: number, b: number, c: number) => number;
293
+ readonly strictstring_startsWith: (a: number, b: number, c: number) => number;
294
+ readonly strictstring_endsWith: (a: number, b: number, c: number) => number;
295
+ readonly strictstring_contains: (a: number, b: number, c: number) => number;
296
+ readonly strictstring_replace: (a: number, b: number, c: number, d: number, e: number) => [number, number];
297
+ readonly strictstring_toLowerCase: (a: number) => void;
298
+ readonly strictstring_toUpperCase: (a: number) => void;
299
+ readonly strictstring_trim: (a: number) => void;
300
+ readonly strictstring_trimStart: (a: number) => void;
301
+ readonly strictstring_trimEnd: (a: number) => void;
302
+ readonly strictstring_padStart: (a: number, b: number, c: number, d: number) => [number, number];
303
+ readonly strictstring_padEnd: (a: number, b: number, c: number, d: number) => [number, number];
304
+ readonly strictstring_split: (a: number, b: number, c: number) => any;
305
+ readonly strictstring_map: (a: number, b: any) => [number, number, number];
306
+ readonly strictstring_filter: (a: number, b: any) => [number, number, number];
307
+ readonly __wbg_strictfunction_free: (a: number, b: number) => void;
308
+ readonly __wbg_strictfunctionresult_free: (a: number, b: number) => void;
309
+ readonly strictfunctionresult_value: (a: number) => any;
310
+ readonly strictfunctionresult_result_type: (a: number) => [number, number];
311
+ readonly strictfunctionresult_toNumber: (a: number) => [number, number];
312
+ readonly strictfunctionresult_toBoolean: (a: number) => number;
313
+ readonly strictfunctionresult_toString: (a: number) => [number, number];
314
+ readonly strictfunction_new: (a: any, b: any, c: number) => [number, number, number];
315
+ readonly strictfunction_callComplex: (a: number, b: any, c: any) => [number, number, number];
316
+ readonly strictfunction_validateArguments: (a: number, b: any) => [number, number];
317
+ readonly strictfunction_call: (a: number, b: any) => [number, number, number];
318
+ readonly strictfunction_getArgTypes: (a: number) => any;
319
+ readonly strictfunction_getReturnType: (a: number) => any;
320
+ readonly __wbg_reactivesystem_free: (a: number, b: number) => void;
321
+ readonly __wbg_reactivecell_free: (a: number, b: number) => void;
322
+ readonly __wbg_computed_free: (a: number, b: number) => void;
323
+ readonly reactivesystem_new: () => number;
324
+ readonly reactivesystem_defineCell: (a: number, b: number, c: number, d: number, e: number) => [number, number];
325
+ readonly reactivesystem_setCell: (a: number, b: number, c: number, d: number) => [number, number];
326
+ readonly reactivesystem_getCell: (a: number, b: number, c: number) => [number, number, number];
327
+ readonly reactivesystem_defineComputed: (a: number, b: number, c: number, d: number, e: any) => [number, number];
328
+ readonly reactivesystem_getComputed: (a: number, b: number, c: number) => [number, number, number];
329
+ readonly reactivesystem_getSystemState: (a: number) => any;
330
+ readonly __wbg_strictasync_free: (a: number, b: number) => void;
331
+ readonly strictasync_new: (a: number) => number;
332
+ readonly strictasync_addTask: (a: number, b: any, c: number, d: number, e: number) => void;
333
+ readonly strictasync_runTasks: (a: number) => any;
334
+ readonly strictasync_getQueueSize: (a: number) => number;
335
+ readonly strictasync_getRunningTasks: (a: number) => number;
336
+ readonly strictasync_clearQueue: (a: number) => void;
337
+ readonly __wbg_strictpromise_free: (a: number, b: number) => void;
338
+ readonly strictpromise_new: (a: any, b: number) => [number, number, number];
339
+ readonly strictpromise_awaitValue: (a: number) => any;
340
+ readonly strictpromise_then: (a: number, b: any) => [number, number, number];
341
+ readonly strictpromise_catch: (a: number, b: any) => [number, number, number];
342
+ readonly __wbg_stricttimeout_free: (a: number, b: number) => void;
343
+ readonly stricttimeout_new: (a: number, b: any, c: number) => number;
344
+ readonly stricttimeout_start: (a: number) => any;
345
+ readonly strict_fetch: (a: number, b: number, c: number) => any;
346
+ readonly __wbg_threadtask_free: (a: number, b: number) => void;
347
+ readonly threadtask_new: (a: any, b: any, c: number, d: number) => [number, number, number];
348
+ readonly threadtask_id: (a: number) => [number, number];
349
+ readonly threadtask_state: (a: number) => number;
350
+ readonly threadtask_priority: (a: number) => number;
351
+ readonly threadtask_execute: (a: number) => any;
352
+ readonly threadtask_to_promise: (a: number) => any;
353
+ readonly __wbg_strictnumber_free: (a: number, b: number) => void;
354
+ readonly strictnumber_new: (a: number, b: number) => number;
355
+ readonly strictnumber_heap: (a: number) => number;
356
+ readonly strictnumber_get: (a: number) => number;
357
+ readonly strictnumber_set: (a: number, b: number) => void;
358
+ readonly strictnumber_add: (a: number, b: number) => void;
359
+ readonly strictnumber_sub: (a: number, b: number) => void;
360
+ readonly strictnumber_mul: (a: number, b: number) => void;
361
+ readonly strictnumber_div: (a: number, b: number) => void;
362
+ readonly strictnumber_valueOf: (a: number) => number;
363
+ readonly __wbg_schema_free: (a: number, b: number) => void;
364
+ readonly schema_new: () => number;
365
+ readonly schema_addField: (a: number, b: number, c: number, d: number, e: number) => void;
366
+ readonly schema_addNestedField: (a: number, b: number, c: number, d: number) => void;
367
+ readonly schema_getFieldType: (a: number, b: number, c: number) => [number, number];
368
+ readonly schema_getNestedSchema: (a: number, b: number, c: number) => number;
369
+ readonly schema_hasField: (a: number, b: number, c: number) => number;
370
+ readonly schema_isNestedField: (a: number, b: number, c: number) => number;
371
+ readonly schema_fieldNames: (a: number) => [number, number];
372
+ readonly schema_toJS: (a: number) => any;
373
+ readonly schema_from_js_object: (a: any) => [number, number, number];
374
+ readonly __wbg_strictforloop_free: (a: number, b: number) => void;
375
+ readonly strictforloop_new: (a: number, b: number, c: number, d: number, e: number) => number;
376
+ readonly strictforloop_hasNext: (a: number) => number;
377
+ readonly strictforloop_next: (a: number) => [number, number, number];
378
+ readonly strictforloop_getIterationCount: (a: number) => number;
379
+ readonly strictforloop_reset: (a: number) => void;
380
+ readonly strictforloop_getCurrent: (a: number) => number;
381
+ readonly strictforloop_getProgress: (a: number) => number;
382
+ readonly strictforloop_getStep: (a: number) => number;
383
+ readonly strictforloop_getEnd: (a: number) => number;
384
+ readonly strictforloop_getHeapType: (a: number) => number;
385
+ readonly __wbg_strictboolean_free: (a: number, b: number) => void;
386
+ readonly strictboolean_new: (a: number) => number;
387
+ readonly strictboolean_get: (a: number) => number;
388
+ readonly strictboolean_set: (a: number, b: number) => void;
389
+ readonly strictboolean_toggle: (a: number) => void;
390
+ readonly strictboolean_and: (a: number, b: number) => number;
391
+ readonly strictboolean_or: (a: number, b: number) => number;
392
+ readonly strictboolean_not: (a: number) => number;
393
+ readonly strictboolean_toString: (a: number) => [number, number];
394
+ readonly __wbg_strictarray_free: (a: number, b: number) => void;
395
+ readonly strictarray_new: (a: number, b: number) => number;
396
+ readonly strictarray_len: (a: number) => number;
397
+ readonly strictarray_heap: (a: number) => number;
398
+ readonly strictarray_byte_len: (a: number) => number;
399
+ readonly strictarray_as_ptr: (a: number) => number;
400
+ readonly strictarray_get: (a: number, b: number) => [number, number, number];
401
+ readonly strictarray_set: (a: number, b: number, c: number) => [number, number];
402
+ readonly strictarray_map: (a: number, b: any) => [number, number, number];
403
+ readonly strictarray_forEach: (a: number, b: any) => [number, number];
404
+ readonly strictarray_reduce: (a: number, b: any, c: number) => [number, number, number];
405
+ readonly strictarray_setRange: (a: number, b: number, c: number, d: number) => [number, number];
406
+ readonly strictarray_getRange: (a: number, b: number, c: number) => [number, number, number, number];
407
+ readonly strictarray_fill: (a: number, b: number) => [number, number];
408
+ readonly __wbg_threadconfig_free: (a: number, b: number) => void;
409
+ readonly __wbg_get_threadconfig_priority: (a: number) => number;
410
+ readonly __wbg_set_threadconfig_priority: (a: number, b: number) => void;
411
+ readonly __wbg_get_threadconfig_stack_size: (a: number) => number;
412
+ readonly __wbg_set_threadconfig_stack_size: (a: number, b: number) => void;
413
+ readonly __wbg_get_threadconfig_timeout_ms: (a: number) => number;
414
+ readonly __wbg_set_threadconfig_timeout_ms: (a: number, b: number) => void;
415
+ readonly __wbg_get_threadconfig_max_retries: (a: number) => number;
416
+ readonly __wbg_set_threadconfig_max_retries: (a: number, b: number) => void;
417
+ readonly init_thread_manager: (a: any) => [number, number, number];
418
+ readonly get_memory: () => any;
419
+ readonly strictarray_capacity: (a: number) => number;
420
+ readonly strictarray_buffer: (a: number) => number;
421
+ readonly __wbg_strictobject_free: (a: number, b: number) => void;
422
+ readonly strictobject_new: (a: any) => [number, number, number];
423
+ readonly strictobject_setField: (a: number, b: number, c: number, d: any) => [number, number];
424
+ readonly strictobject_newWithData: (a: any, b: any) => [number, number, number];
425
+ readonly strictobject_getField: (a: number, b: number, c: number) => [number, number, number];
426
+ readonly strictobject_getFieldAsString: (a: number, b: number, c: number) => [number, number, number, number];
427
+ readonly strictobject_getFieldAsNumber: (a: number, b: number, c: number) => [number, number, number];
428
+ readonly strictobject_getFieldAsBoolean: (a: number, b: number, c: number) => [number, number, number];
429
+ readonly strictobject_getNestedObject: (a: number, b: number, c: number) => [number, number, number];
430
+ readonly strictobject_getSchema: (a: number) => any;
431
+ readonly strictobject_toJS: (a: number) => any;
432
+ readonly strictobject_fieldNames: (a: number) => [number, number];
433
+ readonly strictobject_isNestedField: (a: number, b: number, c: number) => number;
434
+ readonly __wbg_strictbigint_free: (a: number, b: number) => void;
435
+ readonly strictbigint_new: (a: any, b: number) => [number, number, number];
436
+ readonly strictbigint_get: (a: number) => any;
437
+ readonly strictbigint_set: (a: number, b: any) => [number, number];
438
+ readonly strictbigint_add: (a: number, b: any) => [number, number];
439
+ readonly __wbg_strictwhileloop_free: (a: number, b: number) => void;
440
+ readonly strictwhileloop_new: (a: any, b: number) => number;
441
+ readonly strictwhileloop_shouldContinue: (a: number) => [number, number, number];
442
+ readonly strictwhileloop_increment: (a: number) => [number, number, number];
443
+ readonly strictwhileloop_getIterationCount: (a: number) => number;
444
+ readonly strictwhileloop_reset: (a: number) => void;
445
+ readonly strictwhileloop_run: (a: number, b: any) => [number, number, number];
446
+ readonly __wbg_threadmanager_free: (a: number, b: number) => void;
447
+ readonly threadmanager_new: (a: any) => [number, number, number];
448
+ readonly threadmanager_createPool: (a: number, b: number, c: number, d: number) => number;
449
+ readonly threadmanager_getPool: (a: number, b: number, c: number) => number;
450
+ readonly threadmanager_submitToPool: (a: number, b: number, c: number, d: any, e: any, f: any, g: number) => [number, number, number, number];
451
+ readonly threadmanager_executeBatch: (a: number, b: number, c: number, d: number) => any;
452
+ readonly threadmanager_parallelMap: (a: number, b: any, c: any, d: any, e: number, f: number) => any;
453
+ readonly __wbg_threadpool_free: (a: number, b: number) => void;
454
+ readonly threadpool_new: (a: number) => number;
455
+ readonly threadpool_submitTask: (a: number, b: number) => [number, number];
456
+ readonly threadpool_submitFunction: (a: number, b: any, c: any, d: any, e: number) => [number, number, number, number];
457
+ readonly threadpool_executeNext: (a: number) => any;
458
+ readonly threadpool_getTaskStatus: (a: number, b: number, c: number) => any;
459
+ readonly threadpool_cancelTask: (a: number, b: number, c: number) => number;
460
+ readonly threadpool_getCompletedResult: (a: number, b: number, c: number) => any;
461
+ readonly threadpool_active_count: (a: number) => number;
462
+ readonly threadpool_pending_count: (a: number) => number;
463
+ readonly threadpool_completed_count: (a: number) => number;
464
+ readonly __wbindgen_exn_store: (a: number) => void;
465
+ readonly __externref_table_alloc: () => number;
466
+ readonly __wbindgen_export_2: WebAssembly.Table;
467
+ readonly __wbindgen_export_3: WebAssembly.Table;
468
+ readonly __wbindgen_malloc: (a: number, b: number) => number;
469
+ readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
470
+ readonly __wbindgen_free: (a: number, b: number, c: number) => void;
471
+ readonly __externref_table_dealloc: (a: number) => void;
472
+ readonly __externref_drop_slice: (a: number, b: number) => void;
473
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h36f2658aa7b0e9c1: (a: number, b: number) => void;
474
+ readonly closure71_externref_shim: (a: number, b: number, c: any) => void;
475
+ readonly closure93_externref_shim: (a: number, b: number, c: any, d: any) => void;
476
+ readonly __wbindgen_start: () => void;
477
+ }
478
+
479
+ export type SyncInitInput = BufferSource | WebAssembly.Module;
480
+ /**
481
+ * Instantiates the given `module`, which can either be bytes or
482
+ * a precompiled `WebAssembly.Module`.
483
+ *
484
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
485
+ *
486
+ * @returns {InitOutput}
487
+ */
488
+ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
489
+
490
+ /**
491
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
492
+ * for everything else, calls `WebAssembly.instantiate` directly.
493
+ *
494
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
495
+ *
496
+ * @returns {Promise<InitOutput>}
497
+ */
498
+ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;