sidespread 0.5.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.
@@ -0,0 +1,475 @@
1
+ /* @ts-self-types="./sidespread_wasm.d.ts" */
2
+
3
+ class ProcessResult {
4
+ static __wrap(ptr) {
5
+ const obj = Object.create(ProcessResult.prototype);
6
+ obj.__wbg_ptr = ptr;
7
+ ProcessResultFinalization.register(obj, obj.__wbg_ptr, obj);
8
+ return obj;
9
+ }
10
+ __destroy_into_raw() {
11
+ const ptr = this.__wbg_ptr;
12
+ this.__wbg_ptr = 0;
13
+ ProcessResultFinalization.unregister(this);
14
+ return ptr;
15
+ }
16
+ free() {
17
+ const ptr = this.__destroy_into_raw();
18
+ wasm.__wbg_processresult_free(ptr, 0);
19
+ }
20
+ /**
21
+ * @returns {Float32Array}
22
+ */
23
+ get audio() {
24
+ const ret = wasm.processresult_audio(this.__wbg_ptr);
25
+ var v1 = getArrayF32FromWasm0(ret[0], ret[1]).slice();
26
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
27
+ return v1;
28
+ }
29
+ /**
30
+ * @returns {any}
31
+ */
32
+ get report() {
33
+ const ret = wasm.processresult_report(this.__wbg_ptr);
34
+ if (ret[2]) {
35
+ throw takeFromExternrefTable0(ret[1]);
36
+ }
37
+ return takeFromExternrefTable0(ret[0]);
38
+ }
39
+ /**
40
+ * @returns {Float32Array}
41
+ */
42
+ takeAudio() {
43
+ const ret = wasm.processresult_takeAudio(this.__wbg_ptr);
44
+ var v1 = getArrayF32FromWasm0(ret[0], ret[1]).slice();
45
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
46
+ return v1;
47
+ }
48
+ }
49
+ if (Symbol.dispose) ProcessResult.prototype[Symbol.dispose] = ProcessResult.prototype.free;
50
+ exports.ProcessResult = ProcessResult;
51
+
52
+ /**
53
+ * @param {Float32Array} interleaved_stereo
54
+ * @param {number} sample_rate
55
+ * @param {any} options
56
+ * @returns {any}
57
+ */
58
+ function analyze(interleaved_stereo, sample_rate, options) {
59
+ const ptr0 = passArrayF32ToWasm0(interleaved_stereo, wasm.__wbindgen_malloc);
60
+ const len0 = WASM_VECTOR_LEN;
61
+ const ret = wasm.analyze(ptr0, len0, sample_rate, options);
62
+ if (ret[2]) {
63
+ throw takeFromExternrefTable0(ret[1]);
64
+ }
65
+ return takeFromExternrefTable0(ret[0]);
66
+ }
67
+ exports.analyze = analyze;
68
+
69
+ /**
70
+ * @param {Float32Array} interleaved_stereo
71
+ * @param {number} sample_rate
72
+ * @param {any} options
73
+ * @param {Function | null} [on_progress]
74
+ * @returns {ProcessResult}
75
+ */
76
+ function process(interleaved_stereo, sample_rate, options, on_progress) {
77
+ const ptr0 = passArrayF32ToWasm0(interleaved_stereo, wasm.__wbindgen_malloc);
78
+ const len0 = WASM_VECTOR_LEN;
79
+ const ret = wasm.process(ptr0, len0, sample_rate, options, isLikeNone(on_progress) ? 0 : addToExternrefTable0(on_progress));
80
+ if (ret[2]) {
81
+ throw takeFromExternrefTable0(ret[1]);
82
+ }
83
+ return ProcessResult.__wrap(ret[0]);
84
+ }
85
+ exports.process = process;
86
+
87
+ /**
88
+ * @returns {string}
89
+ */
90
+ function version() {
91
+ let deferred1_0;
92
+ let deferred1_1;
93
+ try {
94
+ const ret = wasm.version();
95
+ deferred1_0 = ret[0];
96
+ deferred1_1 = ret[1];
97
+ return getStringFromWasm0(ret[0], ret[1]);
98
+ } finally {
99
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
100
+ }
101
+ }
102
+ exports.version = version;
103
+ function __wbg_get_imports() {
104
+ const import0 = {
105
+ __proto__: null,
106
+ __wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
107
+ const ret = Error(getStringFromWasm0(arg0, arg1));
108
+ return ret;
109
+ },
110
+ __wbg_Number_9a4e0ecb0fa16705: function(arg0) {
111
+ const ret = Number(arg0);
112
+ return ret;
113
+ },
114
+ __wbg_String_8564e559799eccda: function(arg0, arg1) {
115
+ const ret = String(arg1);
116
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
117
+ const len1 = WASM_VECTOR_LEN;
118
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
119
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
120
+ },
121
+ __wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f: function(arg0, arg1) {
122
+ const v = arg1;
123
+ const ret = typeof(v) === 'bigint' ? v : undefined;
124
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
125
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
126
+ },
127
+ __wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(arg0) {
128
+ const v = arg0;
129
+ const ret = typeof(v) === 'boolean' ? v : undefined;
130
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
131
+ },
132
+ __wbg___wbindgen_debug_string_c25d447a39f5578f: function(arg0, arg1) {
133
+ const ret = debugString(arg1);
134
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
135
+ const len1 = WASM_VECTOR_LEN;
136
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
137
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
138
+ },
139
+ __wbg___wbindgen_in_aca499c5de7ff5e5: function(arg0, arg1) {
140
+ const ret = arg0 in arg1;
141
+ return ret;
142
+ },
143
+ __wbg___wbindgen_is_bigint_2f76dc55065b4273: function(arg0) {
144
+ const ret = typeof(arg0) === 'bigint';
145
+ return ret;
146
+ },
147
+ __wbg___wbindgen_is_null_ea9085d691f535d3: function(arg0) {
148
+ const ret = arg0 === null;
149
+ return ret;
150
+ },
151
+ __wbg___wbindgen_is_object_a27215656b807791: function(arg0) {
152
+ const val = arg0;
153
+ const ret = typeof(val) === 'object' && val !== null;
154
+ return ret;
155
+ },
156
+ __wbg___wbindgen_is_undefined_c05833b95a3cf397: function(arg0) {
157
+ const ret = arg0 === undefined;
158
+ return ret;
159
+ },
160
+ __wbg___wbindgen_jsval_eq_e659fcf7b0e32763: function(arg0, arg1) {
161
+ const ret = arg0 === arg1;
162
+ return ret;
163
+ },
164
+ __wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170: function(arg0, arg1) {
165
+ const ret = arg0 == arg1;
166
+ return ret;
167
+ },
168
+ __wbg___wbindgen_number_get_394265ed1e1b84ee: function(arg0, arg1) {
169
+ const obj = arg1;
170
+ const ret = typeof(obj) === 'number' ? obj : undefined;
171
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
172
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
173
+ },
174
+ __wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) {
175
+ const obj = arg1;
176
+ const ret = typeof(obj) === 'string' ? obj : undefined;
177
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
178
+ var len1 = WASM_VECTOR_LEN;
179
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
180
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
181
+ },
182
+ __wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
183
+ throw new Error(getStringFromWasm0(arg0, arg1));
184
+ },
185
+ __wbg_call_a6e5c5dce5018821: function() { return handleError(function (arg0, arg1, arg2) {
186
+ const ret = arg0.call(arg1, arg2);
187
+ return ret;
188
+ }, arguments); },
189
+ __wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
190
+ const ret = arg0[arg1];
191
+ return ret;
192
+ },
193
+ __wbg_instanceof_ArrayBuffer_4480b9e0068a8adb: function(arg0) {
194
+ let result;
195
+ try {
196
+ result = arg0 instanceof ArrayBuffer;
197
+ } catch (_) {
198
+ result = false;
199
+ }
200
+ const ret = result;
201
+ return ret;
202
+ },
203
+ __wbg_instanceof_Uint8Array_309b927aaf7a3fc7: function(arg0) {
204
+ let result;
205
+ try {
206
+ result = arg0 instanceof Uint8Array;
207
+ } catch (_) {
208
+ result = false;
209
+ }
210
+ const ret = result;
211
+ return ret;
212
+ },
213
+ __wbg_isSafeInteger_04f36e4056f1b851: function(arg0) {
214
+ const ret = Number.isSafeInteger(arg0);
215
+ return ret;
216
+ },
217
+ __wbg_length_1f0964f4a5e2c6d8: function(arg0) {
218
+ const ret = arg0.length;
219
+ return ret;
220
+ },
221
+ __wbg_new_32b398fb48b6d94a: function() {
222
+ const ret = new Array();
223
+ return ret;
224
+ },
225
+ __wbg_new_cd45aabdf6073e84: function(arg0) {
226
+ const ret = new Uint8Array(arg0);
227
+ return ret;
228
+ },
229
+ __wbg_new_da52cf8fe3429cb2: function() {
230
+ const ret = new Object();
231
+ return ret;
232
+ },
233
+ __wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
234
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
235
+ },
236
+ __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
237
+ arg0[arg1] = arg2;
238
+ },
239
+ __wbg_set_8a16b38e4805b298: function(arg0, arg1, arg2) {
240
+ arg0[arg1 >>> 0] = arg2;
241
+ },
242
+ __wbindgen_cast_0000000000000001: function(arg0) {
243
+ // Cast intrinsic for `F64 -> Externref`.
244
+ const ret = arg0;
245
+ return ret;
246
+ },
247
+ __wbindgen_cast_0000000000000002: function(arg0, arg1) {
248
+ // Cast intrinsic for `Ref(String) -> Externref`.
249
+ const ret = getStringFromWasm0(arg0, arg1);
250
+ return ret;
251
+ },
252
+ __wbindgen_cast_0000000000000003: function(arg0) {
253
+ // Cast intrinsic for `U64 -> Externref`.
254
+ const ret = BigInt.asUintN(64, arg0);
255
+ return ret;
256
+ },
257
+ __wbindgen_init_externref_table: function() {
258
+ const table = wasm.__wbindgen_externrefs;
259
+ const offset = table.grow(4);
260
+ table.set(0, undefined);
261
+ table.set(offset + 0, undefined);
262
+ table.set(offset + 1, null);
263
+ table.set(offset + 2, true);
264
+ table.set(offset + 3, false);
265
+ },
266
+ };
267
+ return {
268
+ __proto__: null,
269
+ "./sidespread_wasm_bg.js": import0,
270
+ };
271
+ }
272
+
273
+ const ProcessResultFinalization = (typeof FinalizationRegistry === 'undefined')
274
+ ? { register: () => {}, unregister: () => {} }
275
+ : new FinalizationRegistry(ptr => wasm.__wbg_processresult_free(ptr, 1));
276
+
277
+ function addToExternrefTable0(obj) {
278
+ const idx = wasm.__externref_table_alloc();
279
+ wasm.__wbindgen_externrefs.set(idx, obj);
280
+ return idx;
281
+ }
282
+
283
+ function debugString(val) {
284
+ // primitive types
285
+ const type = typeof val;
286
+ if (type == 'number' || type == 'boolean' || val == null) {
287
+ return `${val}`;
288
+ }
289
+ if (type == 'string') {
290
+ return `"${val}"`;
291
+ }
292
+ if (type == 'symbol') {
293
+ const description = val.description;
294
+ if (description == null) {
295
+ return 'Symbol';
296
+ } else {
297
+ return `Symbol(${description})`;
298
+ }
299
+ }
300
+ if (type == 'function') {
301
+ const name = val.name;
302
+ if (typeof name == 'string' && name.length > 0) {
303
+ return `Function(${name})`;
304
+ } else {
305
+ return 'Function';
306
+ }
307
+ }
308
+ // objects
309
+ if (Array.isArray(val)) {
310
+ const length = val.length;
311
+ let debug = '[';
312
+ if (length > 0) {
313
+ debug += debugString(val[0]);
314
+ }
315
+ for(let i = 1; i < length; i++) {
316
+ debug += ', ' + debugString(val[i]);
317
+ }
318
+ debug += ']';
319
+ return debug;
320
+ }
321
+ // Test for built-in
322
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
323
+ let className;
324
+ if (builtInMatches && builtInMatches.length > 1) {
325
+ className = builtInMatches[1];
326
+ } else {
327
+ // Failed to match the standard '[object ClassName]'
328
+ return toString.call(val);
329
+ }
330
+ if (className == 'Object') {
331
+ // we're a user defined class or Object
332
+ // JSON.stringify avoids problems with cycles, and is generally much
333
+ // easier than looping through ownProperties of `val`.
334
+ try {
335
+ return 'Object(' + JSON.stringify(val) + ')';
336
+ } catch (_) {
337
+ return 'Object';
338
+ }
339
+ }
340
+ // errors
341
+ if (val instanceof Error) {
342
+ return `${val.name}: ${val.message}\n${val.stack}`;
343
+ }
344
+ // TODO we could test for more things here, like `Set`s and `Map`s.
345
+ return className;
346
+ }
347
+
348
+ function getArrayF32FromWasm0(ptr, len) {
349
+ ptr = ptr >>> 0;
350
+ return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
351
+ }
352
+
353
+ function getArrayU8FromWasm0(ptr, len) {
354
+ ptr = ptr >>> 0;
355
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
356
+ }
357
+
358
+ let cachedDataViewMemory0 = null;
359
+ function getDataViewMemory0() {
360
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
361
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
362
+ }
363
+ return cachedDataViewMemory0;
364
+ }
365
+
366
+ let cachedFloat32ArrayMemory0 = null;
367
+ function getFloat32ArrayMemory0() {
368
+ if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {
369
+ cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
370
+ }
371
+ return cachedFloat32ArrayMemory0;
372
+ }
373
+
374
+ function getStringFromWasm0(ptr, len) {
375
+ return decodeText(ptr >>> 0, len);
376
+ }
377
+
378
+ let cachedUint8ArrayMemory0 = null;
379
+ function getUint8ArrayMemory0() {
380
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
381
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
382
+ }
383
+ return cachedUint8ArrayMemory0;
384
+ }
385
+
386
+ function handleError(f, args) {
387
+ try {
388
+ return f.apply(this, args);
389
+ } catch (e) {
390
+ const idx = addToExternrefTable0(e);
391
+ wasm.__wbindgen_exn_store(idx);
392
+ }
393
+ }
394
+
395
+ function isLikeNone(x) {
396
+ return x === undefined || x === null;
397
+ }
398
+
399
+ function passArrayF32ToWasm0(arg, malloc) {
400
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
401
+ getFloat32ArrayMemory0().set(arg, ptr / 4);
402
+ WASM_VECTOR_LEN = arg.length;
403
+ return ptr;
404
+ }
405
+
406
+ function passStringToWasm0(arg, malloc, realloc) {
407
+ if (realloc === undefined) {
408
+ const buf = cachedTextEncoder.encode(arg);
409
+ const ptr = malloc(buf.length, 1) >>> 0;
410
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
411
+ WASM_VECTOR_LEN = buf.length;
412
+ return ptr;
413
+ }
414
+
415
+ let len = arg.length;
416
+ let ptr = malloc(len, 1) >>> 0;
417
+
418
+ const mem = getUint8ArrayMemory0();
419
+
420
+ let offset = 0;
421
+
422
+ for (; offset < len; offset++) {
423
+ const code = arg.charCodeAt(offset);
424
+ if (code > 0x7F) break;
425
+ mem[ptr + offset] = code;
426
+ }
427
+ if (offset !== len) {
428
+ if (offset !== 0) {
429
+ arg = arg.slice(offset);
430
+ }
431
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
432
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
433
+ const ret = cachedTextEncoder.encodeInto(arg, view);
434
+
435
+ offset += ret.written;
436
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
437
+ }
438
+
439
+ WASM_VECTOR_LEN = offset;
440
+ return ptr;
441
+ }
442
+
443
+ function takeFromExternrefTable0(idx) {
444
+ const value = wasm.__wbindgen_externrefs.get(idx);
445
+ wasm.__externref_table_dealloc(idx);
446
+ return value;
447
+ }
448
+
449
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
450
+ cachedTextDecoder.decode();
451
+ function decodeText(ptr, len) {
452
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
453
+ }
454
+
455
+ const cachedTextEncoder = new TextEncoder();
456
+
457
+ if (!('encodeInto' in cachedTextEncoder)) {
458
+ cachedTextEncoder.encodeInto = function (arg, view) {
459
+ const buf = cachedTextEncoder.encode(arg);
460
+ view.set(buf);
461
+ return {
462
+ read: arg.length,
463
+ written: buf.length
464
+ };
465
+ };
466
+ }
467
+
468
+ let WASM_VECTOR_LEN = 0;
469
+
470
+ const wasmPath = `${__dirname}/sidespread_wasm_bg.wasm`;
471
+ const wasmBytes = require('fs').readFileSync(wasmPath);
472
+ const wasmModule = new WebAssembly.Module(wasmBytes);
473
+ let wasmInstance = new WebAssembly.Instance(wasmModule, __wbg_get_imports());
474
+ let wasm = wasmInstance.exports;
475
+ wasm.__wbindgen_start();
@@ -0,0 +1,18 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export const memory: WebAssembly.Memory;
4
+ export const __wbg_processresult_free: (a: number, b: number) => void;
5
+ export const analyze: (a: number, b: number, c: number, d: any) => [number, number, number];
6
+ export const process: (a: number, b: number, c: number, d: any, e: number) => [number, number, number];
7
+ export const processresult_audio: (a: number) => [number, number];
8
+ export const processresult_report: (a: number) => [number, number, number];
9
+ export const processresult_takeAudio: (a: number) => [number, number];
10
+ export const version: () => [number, number];
11
+ export const __wbindgen_malloc: (a: number, b: number) => number;
12
+ export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
13
+ export const __wbindgen_exn_store: (a: number) => void;
14
+ export const __externref_table_alloc: () => number;
15
+ export const __wbindgen_externrefs: WebAssembly.Table;
16
+ export const __externref_table_dealloc: (a: number) => void;
17
+ export const __wbindgen_free: (a: number, b: number, c: number) => void;
18
+ export const __wbindgen_start: () => void;
@@ -0,0 +1,60 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+
4
+ export class ProcessResult {
5
+ private constructor();
6
+ free(): void;
7
+ [Symbol.dispose](): void;
8
+ takeAudio(): Float32Array;
9
+ readonly audio: Float32Array;
10
+ readonly report: any;
11
+ }
12
+
13
+ export function analyze(interleaved_stereo: Float32Array, sample_rate: number, options: any): any;
14
+
15
+ export function process(interleaved_stereo: Float32Array, sample_rate: number, options: any, on_progress?: Function | null): ProcessResult;
16
+
17
+ export function version(): string;
18
+
19
+ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
20
+
21
+ export interface InitOutput {
22
+ readonly memory: WebAssembly.Memory;
23
+ readonly __wbg_processresult_free: (a: number, b: number) => void;
24
+ readonly analyze: (a: number, b: number, c: number, d: any) => [number, number, number];
25
+ readonly process: (a: number, b: number, c: number, d: any, e: number) => [number, number, number];
26
+ readonly processresult_audio: (a: number) => [number, number];
27
+ readonly processresult_report: (a: number) => [number, number, number];
28
+ readonly processresult_takeAudio: (a: number) => [number, number];
29
+ readonly version: () => [number, number];
30
+ readonly __wbindgen_malloc: (a: number, b: number) => number;
31
+ readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
32
+ readonly __wbindgen_exn_store: (a: number) => void;
33
+ readonly __externref_table_alloc: () => number;
34
+ readonly __wbindgen_externrefs: WebAssembly.Table;
35
+ readonly __externref_table_dealloc: (a: number) => void;
36
+ readonly __wbindgen_free: (a: number, b: number, c: number) => void;
37
+ readonly __wbindgen_start: () => void;
38
+ }
39
+
40
+ export type SyncInitInput = BufferSource | WebAssembly.Module;
41
+
42
+ /**
43
+ * Instantiates the given `module`, which can either be bytes or
44
+ * a precompiled `WebAssembly.Module`.
45
+ *
46
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
47
+ *
48
+ * @returns {InitOutput}
49
+ */
50
+ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
51
+
52
+ /**
53
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
54
+ * for everything else, calls `WebAssembly.instantiate` directly.
55
+ *
56
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
57
+ *
58
+ * @returns {Promise<InitOutput>}
59
+ */
60
+ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;