walletkit-web 0.22.0 → 0.22.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.
@@ -0,0 +1,11 @@
1
+ export * from "./walletkit";
2
+ export * from "./walletkit_core";
3
+ import * as walletkit from "./walletkit";
4
+ import * as walletkit_core from "./walletkit_core";
5
+ import { type WasmSource } from "@ubjs/wasm";
6
+ export declare function uniffiInitAsync(source: WasmSource): Promise<void>;
7
+ declare const _default: {
8
+ walletkit: typeof walletkit;
9
+ walletkit_core: typeof walletkit_core;
10
+ };
11
+ export default _default;
@@ -0,0 +1,607 @@
1
+ import { type UniffiRustCallStatus } from "@ubjs/core";
2
+ interface NativeModuleInterface {
3
+ ffi_walletkit_rust_future_poll_u8(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
4
+ ffi_walletkit_rust_future_cancel_u8(handle: bigint): void;
5
+ ffi_walletkit_rust_future_complete_u8(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
6
+ ffi_walletkit_rust_future_free_u8(handle: bigint): void;
7
+ ffi_walletkit_rust_future_poll_i8(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
8
+ ffi_walletkit_rust_future_cancel_i8(handle: bigint): void;
9
+ ffi_walletkit_rust_future_complete_i8(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
10
+ ffi_walletkit_rust_future_free_i8(handle: bigint): void;
11
+ ffi_walletkit_rust_future_poll_u16(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
12
+ ffi_walletkit_rust_future_cancel_u16(handle: bigint): void;
13
+ ffi_walletkit_rust_future_complete_u16(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
14
+ ffi_walletkit_rust_future_free_u16(handle: bigint): void;
15
+ ffi_walletkit_rust_future_poll_i16(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
16
+ ffi_walletkit_rust_future_cancel_i16(handle: bigint): void;
17
+ ffi_walletkit_rust_future_complete_i16(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
18
+ ffi_walletkit_rust_future_free_i16(handle: bigint): void;
19
+ ffi_walletkit_rust_future_poll_u32(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
20
+ ffi_walletkit_rust_future_cancel_u32(handle: bigint): void;
21
+ ffi_walletkit_rust_future_complete_u32(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
22
+ ffi_walletkit_rust_future_free_u32(handle: bigint): void;
23
+ ffi_walletkit_rust_future_poll_i32(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
24
+ ffi_walletkit_rust_future_cancel_i32(handle: bigint): void;
25
+ ffi_walletkit_rust_future_complete_i32(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
26
+ ffi_walletkit_rust_future_free_i32(handle: bigint): void;
27
+ ffi_walletkit_rust_future_poll_u64(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
28
+ ffi_walletkit_rust_future_cancel_u64(handle: bigint): void;
29
+ ffi_walletkit_rust_future_complete_u64(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
30
+ ffi_walletkit_rust_future_free_u64(handle: bigint): void;
31
+ ffi_walletkit_rust_future_poll_i64(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
32
+ ffi_walletkit_rust_future_cancel_i64(handle: bigint): void;
33
+ ffi_walletkit_rust_future_complete_i64(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
34
+ ffi_walletkit_rust_future_free_i64(handle: bigint): void;
35
+ ffi_walletkit_rust_future_poll_f32(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
36
+ ffi_walletkit_rust_future_cancel_f32(handle: bigint): void;
37
+ ffi_walletkit_rust_future_complete_f32(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
38
+ ffi_walletkit_rust_future_free_f32(handle: bigint): void;
39
+ ffi_walletkit_rust_future_poll_f64(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
40
+ ffi_walletkit_rust_future_cancel_f64(handle: bigint): void;
41
+ ffi_walletkit_rust_future_complete_f64(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
42
+ ffi_walletkit_rust_future_free_f64(handle: bigint): void;
43
+ ffi_walletkit_rust_future_poll_rust_buffer(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
44
+ ffi_walletkit_rust_future_cancel_rust_buffer(handle: bigint): void;
45
+ ffi_walletkit_rust_future_complete_rust_buffer(handle: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
46
+ ffi_walletkit_rust_future_free_rust_buffer(handle: bigint): void;
47
+ ffi_walletkit_rust_future_poll_void(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
48
+ ffi_walletkit_rust_future_cancel_void(handle: bigint): void;
49
+ ffi_walletkit_rust_future_complete_void(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
50
+ ffi_walletkit_rust_future_free_void(handle: bigint): void;
51
+ ffi_walletkit_uniffi_contract_version(): number;
52
+ rustbuffer_alloc(n: number): Uint8Array;
53
+ rustbuffer_free(view: Uint8Array): void;
54
+ }
55
+ declare const getter: () => NativeModuleInterface;
56
+ export declare const PLAYER_DEFINITIONS: {
57
+ readonly symbols: {
58
+ readonly rustbuffer_alloc: "ffi_walletkit_rustbuffer_alloc";
59
+ readonly rustbuffer_free: "ffi_walletkit_rustbuffer_free";
60
+ readonly rustbuffer_from_bytes: "ffi_walletkit_rustbuffer_from_bytes";
61
+ };
62
+ readonly functions: {
63
+ readonly ffi_walletkit_rust_future_poll_u8: {
64
+ readonly args: readonly [{
65
+ readonly tag: "Handle";
66
+ }, {
67
+ readonly tag: "Callback";
68
+ readonly name: string;
69
+ }, {
70
+ readonly tag: "Handle";
71
+ }];
72
+ readonly ret: {
73
+ readonly tag: "Void";
74
+ };
75
+ readonly hasRustCallStatus: false;
76
+ };
77
+ readonly ffi_walletkit_rust_future_cancel_u8: {
78
+ readonly args: readonly [{
79
+ readonly tag: "Handle";
80
+ }];
81
+ readonly ret: {
82
+ readonly tag: "Void";
83
+ };
84
+ readonly hasRustCallStatus: false;
85
+ };
86
+ readonly ffi_walletkit_rust_future_complete_u8: {
87
+ readonly args: readonly [{
88
+ readonly tag: "Handle";
89
+ }];
90
+ readonly ret: {
91
+ readonly tag: "UInt8";
92
+ };
93
+ readonly hasRustCallStatus: true;
94
+ };
95
+ readonly ffi_walletkit_rust_future_free_u8: {
96
+ readonly args: readonly [{
97
+ readonly tag: "Handle";
98
+ }];
99
+ readonly ret: {
100
+ readonly tag: "Void";
101
+ };
102
+ readonly hasRustCallStatus: false;
103
+ };
104
+ readonly ffi_walletkit_rust_future_poll_i8: {
105
+ readonly args: readonly [{
106
+ readonly tag: "Handle";
107
+ }, {
108
+ readonly tag: "Callback";
109
+ readonly name: string;
110
+ }, {
111
+ readonly tag: "Handle";
112
+ }];
113
+ readonly ret: {
114
+ readonly tag: "Void";
115
+ };
116
+ readonly hasRustCallStatus: false;
117
+ };
118
+ readonly ffi_walletkit_rust_future_cancel_i8: {
119
+ readonly args: readonly [{
120
+ readonly tag: "Handle";
121
+ }];
122
+ readonly ret: {
123
+ readonly tag: "Void";
124
+ };
125
+ readonly hasRustCallStatus: false;
126
+ };
127
+ readonly ffi_walletkit_rust_future_complete_i8: {
128
+ readonly args: readonly [{
129
+ readonly tag: "Handle";
130
+ }];
131
+ readonly ret: {
132
+ readonly tag: "Int8";
133
+ };
134
+ readonly hasRustCallStatus: true;
135
+ };
136
+ readonly ffi_walletkit_rust_future_free_i8: {
137
+ readonly args: readonly [{
138
+ readonly tag: "Handle";
139
+ }];
140
+ readonly ret: {
141
+ readonly tag: "Void";
142
+ };
143
+ readonly hasRustCallStatus: false;
144
+ };
145
+ readonly ffi_walletkit_rust_future_poll_u16: {
146
+ readonly args: readonly [{
147
+ readonly tag: "Handle";
148
+ }, {
149
+ readonly tag: "Callback";
150
+ readonly name: string;
151
+ }, {
152
+ readonly tag: "Handle";
153
+ }];
154
+ readonly ret: {
155
+ readonly tag: "Void";
156
+ };
157
+ readonly hasRustCallStatus: false;
158
+ };
159
+ readonly ffi_walletkit_rust_future_cancel_u16: {
160
+ readonly args: readonly [{
161
+ readonly tag: "Handle";
162
+ }];
163
+ readonly ret: {
164
+ readonly tag: "Void";
165
+ };
166
+ readonly hasRustCallStatus: false;
167
+ };
168
+ readonly ffi_walletkit_rust_future_complete_u16: {
169
+ readonly args: readonly [{
170
+ readonly tag: "Handle";
171
+ }];
172
+ readonly ret: {
173
+ readonly tag: "UInt16";
174
+ };
175
+ readonly hasRustCallStatus: true;
176
+ };
177
+ readonly ffi_walletkit_rust_future_free_u16: {
178
+ readonly args: readonly [{
179
+ readonly tag: "Handle";
180
+ }];
181
+ readonly ret: {
182
+ readonly tag: "Void";
183
+ };
184
+ readonly hasRustCallStatus: false;
185
+ };
186
+ readonly ffi_walletkit_rust_future_poll_i16: {
187
+ readonly args: readonly [{
188
+ readonly tag: "Handle";
189
+ }, {
190
+ readonly tag: "Callback";
191
+ readonly name: string;
192
+ }, {
193
+ readonly tag: "Handle";
194
+ }];
195
+ readonly ret: {
196
+ readonly tag: "Void";
197
+ };
198
+ readonly hasRustCallStatus: false;
199
+ };
200
+ readonly ffi_walletkit_rust_future_cancel_i16: {
201
+ readonly args: readonly [{
202
+ readonly tag: "Handle";
203
+ }];
204
+ readonly ret: {
205
+ readonly tag: "Void";
206
+ };
207
+ readonly hasRustCallStatus: false;
208
+ };
209
+ readonly ffi_walletkit_rust_future_complete_i16: {
210
+ readonly args: readonly [{
211
+ readonly tag: "Handle";
212
+ }];
213
+ readonly ret: {
214
+ readonly tag: "Int16";
215
+ };
216
+ readonly hasRustCallStatus: true;
217
+ };
218
+ readonly ffi_walletkit_rust_future_free_i16: {
219
+ readonly args: readonly [{
220
+ readonly tag: "Handle";
221
+ }];
222
+ readonly ret: {
223
+ readonly tag: "Void";
224
+ };
225
+ readonly hasRustCallStatus: false;
226
+ };
227
+ readonly ffi_walletkit_rust_future_poll_u32: {
228
+ readonly args: readonly [{
229
+ readonly tag: "Handle";
230
+ }, {
231
+ readonly tag: "Callback";
232
+ readonly name: string;
233
+ }, {
234
+ readonly tag: "Handle";
235
+ }];
236
+ readonly ret: {
237
+ readonly tag: "Void";
238
+ };
239
+ readonly hasRustCallStatus: false;
240
+ };
241
+ readonly ffi_walletkit_rust_future_cancel_u32: {
242
+ readonly args: readonly [{
243
+ readonly tag: "Handle";
244
+ }];
245
+ readonly ret: {
246
+ readonly tag: "Void";
247
+ };
248
+ readonly hasRustCallStatus: false;
249
+ };
250
+ readonly ffi_walletkit_rust_future_complete_u32: {
251
+ readonly args: readonly [{
252
+ readonly tag: "Handle";
253
+ }];
254
+ readonly ret: {
255
+ readonly tag: "UInt32";
256
+ };
257
+ readonly hasRustCallStatus: true;
258
+ };
259
+ readonly ffi_walletkit_rust_future_free_u32: {
260
+ readonly args: readonly [{
261
+ readonly tag: "Handle";
262
+ }];
263
+ readonly ret: {
264
+ readonly tag: "Void";
265
+ };
266
+ readonly hasRustCallStatus: false;
267
+ };
268
+ readonly ffi_walletkit_rust_future_poll_i32: {
269
+ readonly args: readonly [{
270
+ readonly tag: "Handle";
271
+ }, {
272
+ readonly tag: "Callback";
273
+ readonly name: string;
274
+ }, {
275
+ readonly tag: "Handle";
276
+ }];
277
+ readonly ret: {
278
+ readonly tag: "Void";
279
+ };
280
+ readonly hasRustCallStatus: false;
281
+ };
282
+ readonly ffi_walletkit_rust_future_cancel_i32: {
283
+ readonly args: readonly [{
284
+ readonly tag: "Handle";
285
+ }];
286
+ readonly ret: {
287
+ readonly tag: "Void";
288
+ };
289
+ readonly hasRustCallStatus: false;
290
+ };
291
+ readonly ffi_walletkit_rust_future_complete_i32: {
292
+ readonly args: readonly [{
293
+ readonly tag: "Handle";
294
+ }];
295
+ readonly ret: {
296
+ readonly tag: "Int32";
297
+ };
298
+ readonly hasRustCallStatus: true;
299
+ };
300
+ readonly ffi_walletkit_rust_future_free_i32: {
301
+ readonly args: readonly [{
302
+ readonly tag: "Handle";
303
+ }];
304
+ readonly ret: {
305
+ readonly tag: "Void";
306
+ };
307
+ readonly hasRustCallStatus: false;
308
+ };
309
+ readonly ffi_walletkit_rust_future_poll_u64: {
310
+ readonly args: readonly [{
311
+ readonly tag: "Handle";
312
+ }, {
313
+ readonly tag: "Callback";
314
+ readonly name: string;
315
+ }, {
316
+ readonly tag: "Handle";
317
+ }];
318
+ readonly ret: {
319
+ readonly tag: "Void";
320
+ };
321
+ readonly hasRustCallStatus: false;
322
+ };
323
+ readonly ffi_walletkit_rust_future_cancel_u64: {
324
+ readonly args: readonly [{
325
+ readonly tag: "Handle";
326
+ }];
327
+ readonly ret: {
328
+ readonly tag: "Void";
329
+ };
330
+ readonly hasRustCallStatus: false;
331
+ };
332
+ readonly ffi_walletkit_rust_future_complete_u64: {
333
+ readonly args: readonly [{
334
+ readonly tag: "Handle";
335
+ }];
336
+ readonly ret: {
337
+ readonly tag: "Handle";
338
+ };
339
+ readonly hasRustCallStatus: true;
340
+ };
341
+ readonly ffi_walletkit_rust_future_free_u64: {
342
+ readonly args: readonly [{
343
+ readonly tag: "Handle";
344
+ }];
345
+ readonly ret: {
346
+ readonly tag: "Void";
347
+ };
348
+ readonly hasRustCallStatus: false;
349
+ };
350
+ readonly ffi_walletkit_rust_future_poll_i64: {
351
+ readonly args: readonly [{
352
+ readonly tag: "Handle";
353
+ }, {
354
+ readonly tag: "Callback";
355
+ readonly name: string;
356
+ }, {
357
+ readonly tag: "Handle";
358
+ }];
359
+ readonly ret: {
360
+ readonly tag: "Void";
361
+ };
362
+ readonly hasRustCallStatus: false;
363
+ };
364
+ readonly ffi_walletkit_rust_future_cancel_i64: {
365
+ readonly args: readonly [{
366
+ readonly tag: "Handle";
367
+ }];
368
+ readonly ret: {
369
+ readonly tag: "Void";
370
+ };
371
+ readonly hasRustCallStatus: false;
372
+ };
373
+ readonly ffi_walletkit_rust_future_complete_i64: {
374
+ readonly args: readonly [{
375
+ readonly tag: "Handle";
376
+ }];
377
+ readonly ret: {
378
+ readonly tag: "Int64";
379
+ };
380
+ readonly hasRustCallStatus: true;
381
+ };
382
+ readonly ffi_walletkit_rust_future_free_i64: {
383
+ readonly args: readonly [{
384
+ readonly tag: "Handle";
385
+ }];
386
+ readonly ret: {
387
+ readonly tag: "Void";
388
+ };
389
+ readonly hasRustCallStatus: false;
390
+ };
391
+ readonly ffi_walletkit_rust_future_poll_f32: {
392
+ readonly args: readonly [{
393
+ readonly tag: "Handle";
394
+ }, {
395
+ readonly tag: "Callback";
396
+ readonly name: string;
397
+ }, {
398
+ readonly tag: "Handle";
399
+ }];
400
+ readonly ret: {
401
+ readonly tag: "Void";
402
+ };
403
+ readonly hasRustCallStatus: false;
404
+ };
405
+ readonly ffi_walletkit_rust_future_cancel_f32: {
406
+ readonly args: readonly [{
407
+ readonly tag: "Handle";
408
+ }];
409
+ readonly ret: {
410
+ readonly tag: "Void";
411
+ };
412
+ readonly hasRustCallStatus: false;
413
+ };
414
+ readonly ffi_walletkit_rust_future_complete_f32: {
415
+ readonly args: readonly [{
416
+ readonly tag: "Handle";
417
+ }];
418
+ readonly ret: {
419
+ readonly tag: "Float32";
420
+ };
421
+ readonly hasRustCallStatus: true;
422
+ };
423
+ readonly ffi_walletkit_rust_future_free_f32: {
424
+ readonly args: readonly [{
425
+ readonly tag: "Handle";
426
+ }];
427
+ readonly ret: {
428
+ readonly tag: "Void";
429
+ };
430
+ readonly hasRustCallStatus: false;
431
+ };
432
+ readonly ffi_walletkit_rust_future_poll_f64: {
433
+ readonly args: readonly [{
434
+ readonly tag: "Handle";
435
+ }, {
436
+ readonly tag: "Callback";
437
+ readonly name: string;
438
+ }, {
439
+ readonly tag: "Handle";
440
+ }];
441
+ readonly ret: {
442
+ readonly tag: "Void";
443
+ };
444
+ readonly hasRustCallStatus: false;
445
+ };
446
+ readonly ffi_walletkit_rust_future_cancel_f64: {
447
+ readonly args: readonly [{
448
+ readonly tag: "Handle";
449
+ }];
450
+ readonly ret: {
451
+ readonly tag: "Void";
452
+ };
453
+ readonly hasRustCallStatus: false;
454
+ };
455
+ readonly ffi_walletkit_rust_future_complete_f64: {
456
+ readonly args: readonly [{
457
+ readonly tag: "Handle";
458
+ }];
459
+ readonly ret: {
460
+ readonly tag: "Float64";
461
+ };
462
+ readonly hasRustCallStatus: true;
463
+ };
464
+ readonly ffi_walletkit_rust_future_free_f64: {
465
+ readonly args: readonly [{
466
+ readonly tag: "Handle";
467
+ }];
468
+ readonly ret: {
469
+ readonly tag: "Void";
470
+ };
471
+ readonly hasRustCallStatus: false;
472
+ };
473
+ readonly ffi_walletkit_rust_future_poll_rust_buffer: {
474
+ readonly args: readonly [{
475
+ readonly tag: "Handle";
476
+ }, {
477
+ readonly tag: "Callback";
478
+ readonly name: string;
479
+ }, {
480
+ readonly tag: "Handle";
481
+ }];
482
+ readonly ret: {
483
+ readonly tag: "Void";
484
+ };
485
+ readonly hasRustCallStatus: false;
486
+ };
487
+ readonly ffi_walletkit_rust_future_cancel_rust_buffer: {
488
+ readonly args: readonly [{
489
+ readonly tag: "Handle";
490
+ }];
491
+ readonly ret: {
492
+ readonly tag: "Void";
493
+ };
494
+ readonly hasRustCallStatus: false;
495
+ };
496
+ readonly ffi_walletkit_rust_future_complete_rust_buffer: {
497
+ readonly args: readonly [{
498
+ readonly tag: "Handle";
499
+ }];
500
+ readonly ret: {
501
+ readonly tag: "RustBuffer";
502
+ };
503
+ readonly hasRustCallStatus: true;
504
+ };
505
+ readonly ffi_walletkit_rust_future_free_rust_buffer: {
506
+ readonly args: readonly [{
507
+ readonly tag: "Handle";
508
+ }];
509
+ readonly ret: {
510
+ readonly tag: "Void";
511
+ };
512
+ readonly hasRustCallStatus: false;
513
+ };
514
+ readonly ffi_walletkit_rust_future_poll_void: {
515
+ readonly args: readonly [{
516
+ readonly tag: "Handle";
517
+ }, {
518
+ readonly tag: "Callback";
519
+ readonly name: string;
520
+ }, {
521
+ readonly tag: "Handle";
522
+ }];
523
+ readonly ret: {
524
+ readonly tag: "Void";
525
+ };
526
+ readonly hasRustCallStatus: false;
527
+ };
528
+ readonly ffi_walletkit_rust_future_cancel_void: {
529
+ readonly args: readonly [{
530
+ readonly tag: "Handle";
531
+ }];
532
+ readonly ret: {
533
+ readonly tag: "Void";
534
+ };
535
+ readonly hasRustCallStatus: false;
536
+ };
537
+ readonly ffi_walletkit_rust_future_complete_void: {
538
+ readonly args: readonly [{
539
+ readonly tag: "Handle";
540
+ }];
541
+ readonly ret: {
542
+ readonly tag: "Void";
543
+ };
544
+ readonly hasRustCallStatus: true;
545
+ };
546
+ readonly ffi_walletkit_rust_future_free_void: {
547
+ readonly args: readonly [{
548
+ readonly tag: "Handle";
549
+ }];
550
+ readonly ret: {
551
+ readonly tag: "Void";
552
+ };
553
+ readonly hasRustCallStatus: false;
554
+ };
555
+ readonly ffi_walletkit_uniffi_contract_version: {
556
+ readonly args: readonly [];
557
+ readonly ret: {
558
+ readonly tag: "UInt32";
559
+ };
560
+ readonly hasRustCallStatus: false;
561
+ };
562
+ };
563
+ readonly callbacks: {
564
+ readonly RustFutureContinuationCallback: {
565
+ readonly args: readonly [{
566
+ readonly tag: "Handle";
567
+ }, {
568
+ readonly tag: "Int8";
569
+ }];
570
+ readonly ret: {
571
+ readonly tag: "Void";
572
+ };
573
+ readonly hasRustCallStatus: false;
574
+ };
575
+ readonly ForeignFutureDroppedCallback: {
576
+ readonly args: readonly [{
577
+ readonly tag: "Handle";
578
+ }];
579
+ readonly ret: {
580
+ readonly tag: "Void";
581
+ };
582
+ readonly hasRustCallStatus: false;
583
+ };
584
+ };
585
+ readonly structs: {
586
+ readonly ForeignFutureDroppedCallbackStruct: readonly [{
587
+ readonly name: "handle";
588
+ readonly type: {
589
+ readonly tag: "Handle";
590
+ };
591
+ }, {
592
+ readonly name: "free";
593
+ readonly type: {
594
+ readonly tag: "Callback";
595
+ readonly name: string;
596
+ };
597
+ }];
598
+ };
599
+ };
600
+ export declare function setNativeModule(m: Record<string, (...args: any[]) => any>): void;
601
+ export default getter;
602
+ export type UniffiRustFutureContinuationCallback = (data: bigint, pollResult: number) => void;
603
+ export type UniffiForeignFutureDroppedCallback = (handle: bigint) => void;
604
+ export type UniffiForeignFutureDroppedCallbackStruct = {
605
+ handle: bigint;
606
+ free: UniffiForeignFutureDroppedCallback;
607
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This should be called before anything else.
3
+ *
4
+ * It is likely that this is being done for you by the library's `index.ts`.
5
+ *
6
+ * It checks versions of uniffi between when the Rust scaffolding was generated
7
+ * and when the bindings were generated.
8
+ *
9
+ * It also initializes the machinery to enable Rust to talk back to Javascript.
10
+ */
11
+ declare function uniffiEnsureInitialized(): void;
12
+ declare const _default: Readonly<{
13
+ initialize: typeof uniffiEnsureInitialized;
14
+ }>;
15
+ export default _default;
Binary file