alpha2 0.5.3 → 0.6.1

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.
Files changed (82) hide show
  1. package/README.md +68 -3
  2. package/THIRD_PARTY_NOTICES.md +7 -3
  3. package/dist/apply-edit.d.ts +124 -0
  4. package/dist/apply-edit.js +15 -0
  5. package/dist/assets.d.ts +12 -0
  6. package/dist/audio-layout.js +6 -3
  7. package/dist/audio-worklet-processor.js +27 -33
  8. package/dist/audio.d.ts +5 -4
  9. package/dist/audio.js +8 -6
  10. package/dist/compose.d.ts +105 -0
  11. package/dist/compose.js +63 -0
  12. package/dist/decoder-fallback.d.ts +3 -2
  13. package/dist/decoder-fallback.js +11 -3
  14. package/dist/decoder-stall.d.ts +15 -0
  15. package/dist/decoder-stall.js +52 -0
  16. package/dist/edit-data.d.ts +24 -0
  17. package/dist/edit-data.js +224 -0
  18. package/dist/edit-keys.d.ts +16 -0
  19. package/dist/edit-keys.js +233 -0
  20. package/dist/edit.d.ts +41 -8
  21. package/dist/edit.js +123 -30
  22. package/dist/export-failure.d.ts +10 -2
  23. package/dist/export-failure.js +55 -4
  24. package/dist/export-retry.d.ts +6 -1
  25. package/dist/export-retry.js +12 -1
  26. package/dist/exporter.d.ts +11 -7
  27. package/dist/exporter.js +10 -9
  28. package/dist/extract.d.ts +65 -0
  29. package/dist/extract.js +291 -0
  30. package/dist/extractor.d.ts +151 -0
  31. package/dist/extractor.js +141 -0
  32. package/dist/float32.d.ts +2 -0
  33. package/dist/float32.js +10 -0
  34. package/dist/frame-intake.d.ts +5 -0
  35. package/dist/frame-intake.js +10 -3
  36. package/dist/generated/builtin-effects.d.ts +3 -0
  37. package/dist/generated/builtin-effects.js +1804 -0
  38. package/dist/generated/project-schema.d.ts +636 -37
  39. package/dist/generated/project-schema.js +55 -0
  40. package/dist/generated/project-shape.js +950 -381
  41. package/dist/index.d.ts +1 -0
  42. package/dist/index.js +1 -0
  43. package/dist/json-text.js +14 -2
  44. package/dist/layout-values.js +7 -1
  45. package/dist/layout.d.ts +12 -4
  46. package/dist/media.d.ts +43 -10
  47. package/dist/media.js +255 -66
  48. package/dist/mediabunny.d.ts +32 -12
  49. package/dist/mediabunny.js +276 -90
  50. package/dist/player.d.ts +9 -3
  51. package/dist/player.js +114 -18
  52. package/dist/plugins.d.ts +62 -0
  53. package/dist/plugins.js +506 -0
  54. package/dist/project-data.d.ts +56 -0
  55. package/dist/project-data.js +765 -0
  56. package/dist/project.d.ts +24 -1
  57. package/dist/project.js +456 -38
  58. package/dist/robustness.d.ts +6 -33
  59. package/dist/robustness.js +2 -63
  60. package/dist/sha256.d.ts +3 -2
  61. package/dist/sha256.js +14 -6
  62. package/dist/worker-error.d.ts +3 -2
  63. package/dist/worker-error.js +3 -1
  64. package/dist/worker.d.ts +13 -3
  65. package/dist/worker.js +36 -9
  66. package/package.json +26 -1
  67. package/wasm/alpha2_compose.d.ts +92 -0
  68. package/wasm/alpha2_compose.js +445 -0
  69. package/wasm/alpha2_compose_bg.wasm +0 -0
  70. package/wasm/alpha2_compose_bg.wasm.d.ts +17 -0
  71. package/wasm/alpha2_extensions_bg.wasm +0 -0
  72. package/wasm/alpha2_extensions_pdf_bg.wasm +0 -0
  73. package/wasm/alpha2_wasm.d.ts +151 -18
  74. package/wasm/alpha2_wasm.js +403 -59
  75. package/wasm/alpha2_wasm_bg.wasm +0 -0
  76. package/wasm/alpha2_wasm_bg.wasm.d.ts +21 -6
  77. package/wasm/rust-crate-licenses.md +5 -61
  78. package/wasm/snippets/alpha2-wasm-6749ed8b34a74067/inline3.js +7 -0
  79. /package/wasm/snippets/{alpha2-wasm-a6265983c9769e80/inline1.js → alpha2-wasm-6749ed8b34a74067/inline0.js} +0 -0
  80. /package/wasm/snippets/{alpha2-wasm-a6265983c9769e80/inline2.js → alpha2-wasm-6749ed8b34a74067/inline1.js} +0 -0
  81. /package/wasm/snippets/{alpha2-wasm-a6265983c9769e80/inline3.js → alpha2-wasm-6749ed8b34a74067/inline2.js} +0 -0
  82. /package/wasm/snippets/{alpha2-wasm-a6265983c9769e80/inline0.js → alpha2-wasm-6749ed8b34a74067/inline4.js} +0 -0
@@ -82,6 +82,101 @@ export class CompiledEffect {
82
82
  readonly id: string;
83
83
  }
84
84
 
85
+ /**
86
+ * One extraction run.
87
+ */
88
+ export class ExtractSession {
89
+ free(): void;
90
+ [Symbol.dispose](): void;
91
+ /**
92
+ * The planar samples of the audio delivery `next` handed out.
93
+ */
94
+ audioSamples(): Float32Array;
95
+ /**
96
+ * What `begin` is told as JSON, with the range, passes, clock and delivered video or audio.
97
+ *
98
+ * # Errors
99
+ * After `finish`.
100
+ */
101
+ context(): string;
102
+ /**
103
+ * Takes the extractor's emits for the last delivery or `end`, in the host protocol's JSON.
104
+ *
105
+ * # Errors
106
+ * `INVALID_EMIT` with `{ index, reason }` for the first emit the session refuses.
107
+ */
108
+ emit(emits: string): void;
109
+ /**
110
+ * The data sets, JSON; `made_from` (a fingerprint's JSON, or empty) is recorded on every
111
+ * source-anchored set. Ends the session.
112
+ *
113
+ * # Errors
114
+ * `INVALID_EMIT` when the run is not done or its result breaks a rule.
115
+ */
116
+ finish(made_from?: string | null): string;
117
+ /**
118
+ * A run of the extractor `descriptor` describes over `project`, as `request` asks, all JSON.
119
+ *
120
+ * # Errors
121
+ * `INVALID_INPUT` for a project, descriptor or request that does not parse or is refused.
122
+ */
123
+ constructor(project: string, descriptor: string, request: string);
124
+ /**
125
+ * The next thing to do, as JSON: `{ step: "need", need: { ... } }`, `{ step: "pass", pass,
126
+ * direction }`, `{ step: "video", time, width, height, format }` (bytes from
127
+ * [`Self::video_bytes`]), `{ step: "audio", start, startSample, frames, rate, channels }`
128
+ * (samples from [`Self::audio_samples`]) or `{ step: "done" }`.
129
+ *
130
+ * # Errors
131
+ * After `finish`.
132
+ */
133
+ next(): string;
134
+ /**
135
+ * Each pass's progress, JSON `[{ completed, total }]`.
136
+ *
137
+ * # Errors
138
+ * After `finish`.
139
+ */
140
+ progress(): string;
141
+ /**
142
+ * Answers an audio need: `channels` planes of the asked frame count, channel after channel.
143
+ * For a mono need, several channels are mixed down by `speakers` (a JSON array of `FFmpeg`
144
+ * channel names, such as `["FL","FR"]`) as the native hosts mix them.
145
+ *
146
+ * # Errors
147
+ * `INVALID_INPUT` for a supply the session did not ask for or of the wrong length, or
148
+ * channels that cannot be mixed down.
149
+ */
150
+ supplyAudio(channels: number, samples: Float32Array, speakers?: string | null): void;
151
+ /**
152
+ * Answers a source-frame need when the source has no such frame.
153
+ *
154
+ * # Errors
155
+ * `INVALID_INPUT` when the session did not ask for a source frame.
156
+ */
157
+ supplyEnd(): void;
158
+ /**
159
+ * Answers a frame need with straight-alpha sRGB RGBA8 pixels already at the delivered size,
160
+ * such as a rendered timeline frame.
161
+ *
162
+ * # Errors
163
+ * `INVALID_INPUT` for a supply the session did not ask for or of the wrong size.
164
+ */
165
+ supplyRgbaFrame(pts_ticks: bigint, width: number, height: number, rgba: Uint8Array): void;
166
+ /**
167
+ * Answers a source-frame need with a decoded frame's planes, as `VideoFrame.copyTo` writes
168
+ * them (the arguments of `uploadYuvFrame`), presented at the delivered size.
169
+ *
170
+ * # Errors
171
+ * `INVALID_INPUT` for planes that do not fit their format, or an unasked supply.
172
+ */
173
+ supplyYuvFrame(pts_ticks: bigint, format: string, coded_width: number, coded_height: number, data: Uint8Array, layout: Uint32Array, visible: Uint32Array, display_width: number, display_height: number, color: string, chroma_siting: string, rotation_degrees: number, mirror: boolean): void;
174
+ /**
175
+ * The pixels of the video delivery `next` handed out.
176
+ */
177
+ videoBytes(): Uint8Array;
178
+ }
179
+
85
180
  /**
86
181
  * Measures planar audio streamed in blocks.
87
182
  */
@@ -204,10 +299,11 @@ export class WasmTextMeasurer {
204
299
  * "root" }`) lies on a `width` by `height` picture at `time` (ticks), as JSON
205
300
  * `{ nodes }`.
206
301
  *
207
- * Nodes are in preorder as `{ at, border, content, overflow, lineCount, baselines }`,
208
- * boxes `{ left, top, right, bottom }` in picture fractions before the clip's transform
209
- * and node visuals. `lineCount` is `null` for a node without text, and `baselines`
210
- * (`{ first, last }`, fractions of picture height) also for empty text. `"<n>px"`
302
+ * Nodes are in preorder as `{ at, border, content, overflow, lineCount, baselines,
303
+ * fontSize, truncated }`, boxes `{ left, top, right, bottom }` in picture fractions
304
+ * before the clip's transform and node visuals. `lineCount` and `fontSize` are `null`
305
+ * for a node without text, and `baselines` (`{ first, last }`, fractions of picture
306
+ * height) also for empty text. `truncated` says `line_clamp` cut its lines. `"<n>px"`
211
307
  * lengths are project canvas pixels (`canvasWidth` by `canvasHeight`, defaulting to the
212
308
  * picture size).
213
309
  *
@@ -219,12 +315,14 @@ export class WasmTextMeasurer {
219
315
  /**
220
316
  * Where the text generator `generator_json` (`{ "type": "text", "text", "style" }`)
221
317
  * lies on a `width` by `height` canvas, as JSON `{ layout, content, ink, lineCount,
222
- * baselines }`.
318
+ * baselines, fontSize, truncated, overflow }`.
223
319
  *
224
320
  * Rectangles are `{ left, top, right, bottom }` in canvas fractions, before the clip's
225
321
  * transform; `ink` is `null` when nothing draws. `baselines` is `{ first, last }`, the
226
- * first and last alphabetic baselines as fractions of canvas height. Measure at the
227
- * project canvas size, since another size can break lines elsewhere.
322
+ * first and last alphabetic baselines as fractions of canvas height. `fontSize` is the
323
+ * size drawn after `font_size_fit`. `truncated` says `line_clamp` cut lines, and
324
+ * `overflow` that the drawn text splits a word or is taller than `max_height`. Measure
325
+ * at the project canvas size, since another size can break lines elsewhere.
228
326
  *
229
327
  * # Errors
230
328
  * Rejects an invalid text generator, an empty canvas, and a measurer without fonts.
@@ -536,6 +634,16 @@ export class WebCpuRenderer {
536
634
  * can draw. Any of them makes rendering and export refuse.
537
635
  */
538
636
  projectRuntimeEffects(): string[];
637
+ /**
638
+ * The project's frame at `time_ticks`, drawn at export quality at `width` x `height` from the
639
+ * frames uploaded so far, as straight-alpha sRGB RGBA8, without touching the canvas. Only the
640
+ * CPU renderer has it, and earlier renders do not change its result.
641
+ *
642
+ * # Errors
643
+ * `INVALID_STATE` without a project, `MISSING_INPUT` when a source frame it shows has not
644
+ * been uploaded, and what drawing the frame refuses.
645
+ */
646
+ readRgbaAt(time_ticks: bigint, width: number, height: number): Uint8Array;
539
647
  /**
540
648
  * Records an effect [`Self::compile_effect`] validated and returns its `id@version`.
541
649
  *
@@ -1056,11 +1164,11 @@ export class WebEffectRegistry {
1056
1164
  /**
1057
1165
  * Loads and validates a versioned project document.
1058
1166
  *
1059
- * Uploaded frames and audio are kept for every source whose ID and locator are unchanged,
1060
- * so an edit needs no re-decode. Presentation frames are invalidated by a new canvas size
1061
- * or color pipeline (`settings.color`), or per source by new declared color
1062
- * (`color_metadata`). All audio is dropped when the project sample rate changes. Media
1063
- * that changes under an unchanged locator needs a new source ID.
1167
+ * Uploaded frames and audio are kept for every source whose ID, locator, kind, provider and
1168
+ * fingerprint are unchanged, so an edit needs no re-decode. Presentation frames are
1169
+ * invalidated by a new canvas size or color pipeline (`settings.color`), or per source by
1170
+ * new declared color (`color_metadata`). All audio is dropped when the project sample rate
1171
+ * changes. Media that changes in a way the document does not show needs a new source ID.
1064
1172
  *
1065
1173
  * Loading ends a running export (`endExport`), so its next step is refused.
1066
1174
  */
@@ -1421,6 +1529,16 @@ export class WebEffectRegistry {
1421
1529
  readonly videoFrameCopy: string;
1422
1530
  }
1423
1531
 
1532
+ /**
1533
+ * Applies an edit operation (`remove_ranges`, `split_at`, `bake`) to a project, both JSON
1534
+ * text, and returns `[project, report]` as the engine's canonical JSON text.
1535
+ *
1536
+ * # Errors
1537
+ * `INVALID_INPUT` for an invalid project or request and for every refusal, or
1538
+ * `ALPHA2_ERROR` for an edited project that fails validation; `details.refusal` names why.
1539
+ */
1540
+ export function applyEdit(project: string, request: string): Array<any>;
1541
+
1424
1542
  /**
1425
1543
  * Checks that `bytes` hold face `face_index` of a font the engine can draw with, as
1426
1544
  * registering it would.
@@ -1643,6 +1761,7 @@ export interface InitOutput {
1643
1761
  readonly __wbg_audioresampler_free: (a: number, b: number) => void;
1644
1762
  readonly __wbg_clockstep_free: (a: number, b: number) => void;
1645
1763
  readonly __wbg_compiledeffect_free: (a: number, b: number) => void;
1764
+ readonly __wbg_extractsession_free: (a: number, b: number) => void;
1646
1765
  readonly __wbg_loudnessmeter_free: (a: number, b: number) => void;
1647
1766
  readonly __wbg_playbackclock_free: (a: number, b: number) => void;
1648
1767
  readonly __wbg_rasterizedtext_free: (a: number, b: number) => void;
@@ -1652,6 +1771,7 @@ export interface InitOutput {
1652
1771
  readonly __wbg_waveformresult_free: (a: number, b: number) => void;
1653
1772
  readonly __wbg_webcpurenderer_free: (a: number, b: number) => void;
1654
1773
  readonly __wbg_webeffectregistry_free: (a: number, b: number) => void;
1774
+ readonly applyEdit: (a: number, b: number, c: number, d: number) => [number, number, number];
1655
1775
  readonly audioresampler_new: (a: number, b: number) => [number, number, number];
1656
1776
  readonly audioresampler_resample: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
1657
1777
  readonly audioresampler_sourceEnd: (a: number, b: number) => [number, number, number];
@@ -1666,6 +1786,18 @@ export interface InitOutput {
1666
1786
  readonly compareFingerprints: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1667
1787
  readonly compiledeffect_id: (a: number) => [number, number];
1668
1788
  readonly conformProject: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
1789
+ readonly extractsession_audioSamples: (a: number) => [number, number];
1790
+ readonly extractsession_context: (a: number) => [number, number, number, number];
1791
+ readonly extractsession_emit: (a: number, b: number, c: number) => [number, number];
1792
+ readonly extractsession_finish: (a: number, b: number, c: number) => [number, number, number, number];
1793
+ readonly extractsession_new: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
1794
+ readonly extractsession_next: (a: number) => [number, number, number, number];
1795
+ readonly extractsession_progress: (a: number) => [number, number, number, number];
1796
+ readonly extractsession_supplyAudio: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
1797
+ readonly extractsession_supplyEnd: (a: number) => [number, number];
1798
+ readonly extractsession_supplyRgbaFrame: (a: number, b: bigint, c: number, d: number, e: number, f: number) => [number, number];
1799
+ readonly extractsession_supplyYuvFrame: (a: number, b: bigint, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number) => [number, number];
1800
+ readonly extractsession_videoBytes: (a: number) => [number, number];
1669
1801
  readonly fontFaceCount: (a: number, b: number) => number;
1670
1802
  readonly fontFamily: (a: number, b: number, c: number) => [number, number];
1671
1803
  readonly geometryParityAnswers: () => [number, number];
@@ -1753,6 +1885,7 @@ export interface InitOutput {
1753
1885
  readonly webcpurenderer_loudnessReport: (a: number) => [number, number];
1754
1886
  readonly webcpurenderer_previewSize: (a: number) => [number, number, number, number];
1755
1887
  readonly webcpurenderer_projectRuntimeEffects: (a: number) => [number, number];
1888
+ readonly webcpurenderer_readRgbaAt: (a: number, b: bigint, c: number, d: number) => [number, number, number, number];
1756
1889
  readonly webcpurenderer_registerCompiledEffect: (a: number, b: number) => [number, number, number, number];
1757
1890
  readonly webcpurenderer_registerLut3d: (a: number, b: number, c: number, d: number, e: number) => [number, number];
1758
1891
  readonly webcpurenderer_releaseAudioSource: (a: number, b: number, c: number) => number;
@@ -1884,13 +2017,13 @@ export interface InitOutput {
1884
2017
  readonly webeffectregistry_videoFrameCopy: (a: number) => [number, number];
1885
2018
  readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___js_sys_dcf218532b47778c___Function_fn_wasm_bindgen_d171202afaeab6f2___JsValue_____wasm_bindgen_d171202afaeab6f2___sys__Undefined___js_sys_dcf218532b47778c___Function_fn_wasm_bindgen_d171202afaeab6f2___JsValue_____wasm_bindgen_d171202afaeab6f2___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
1886
2019
  readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true_: (a: number, b: number, c: any) => [number, number];
1887
- readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true_: (a: number, b: number, c: any) => [number, number];
1888
- readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__234: (a: number, b: number, c: any) => [number, number];
1889
- readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__237: (a: number, b: number, c: any) => [number, number];
1890
- readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__238: (a: number, b: number, c: any) => [number, number];
2020
+ readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true_: (a: number, b: number, c: any) => [number, number];
2021
+ readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__248: (a: number, b: number, c: any) => [number, number];
2022
+ readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__251: (a: number, b: number, c: any) => [number, number];
2023
+ readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__252: (a: number, b: number, c: any) => [number, number];
1891
2024
  readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___web_sys_9e2ae0ace5131457___features__gen_Event__Event______true_: (a: number, b: number, c: any) => void;
1892
- readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_: (a: number, b: number, c: any) => void;
1893
- readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__236: (a: number, b: number, c: any) => void;
2025
+ readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_: (a: number, b: number, c: any) => void;
2026
+ readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__250: (a: number, b: number, c: any) => void;
1894
2027
  readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke_______true_: (a: number, b: number) => void;
1895
2028
  readonly __wbindgen_malloc: (a: number, b: number) => number;
1896
2029
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;