@xstoicunicornx/payjoin_test 0.1.4 → 0.1.6

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,4633 @@
1
+ import { type FfiConverter, type UniffiByteArray, type UniffiRustArcPtr, type UnsafeMutableRawPointer, FfiConverterObject, RustBuffer, UniffiAbstractObject, destructorGuardSymbol, pointerLiteralSymbol, uniffiTypeNameSymbol } from "uniffi-bindgen-react-native";
2
+ export type OutPoint = {
3
+ txid: Txid;
4
+ vout: number;
5
+ };
6
+ /**
7
+ * Generated factory for {@link OutPoint} record objects.
8
+ */
9
+ export declare const OutPoint: Readonly<{
10
+ /**
11
+ * Create a frozen instance of {@link OutPoint}, with defaults specified
12
+ * in Rust, in the {@link bitcoin} crate.
13
+ */
14
+ create: (partial: Partial<OutPoint> & Required<Omit<OutPoint, never>>) => OutPoint;
15
+ /**
16
+ * Create a frozen instance of {@link OutPoint}, with defaults specified
17
+ * in Rust, in the {@link bitcoin} crate.
18
+ */
19
+ new: (partial: Partial<OutPoint> & Required<Omit<OutPoint, never>>) => OutPoint;
20
+ /**
21
+ * Defaults specified in the {@link bitcoin} crate.
22
+ */
23
+ defaults: () => Partial<OutPoint>;
24
+ }>;
25
+ export type TxIn = {
26
+ previousOutput: OutPoint;
27
+ scriptSig: ScriptInterface;
28
+ sequence: number;
29
+ witness: Array<ArrayBuffer>;
30
+ };
31
+ /**
32
+ * Generated factory for {@link TxIn} record objects.
33
+ */
34
+ export declare const TxIn: Readonly<{
35
+ /**
36
+ * Create a frozen instance of {@link TxIn}, with defaults specified
37
+ * in Rust, in the {@link bitcoin} crate.
38
+ */
39
+ create: (partial: Partial<TxIn> & Required<Omit<TxIn, never>>) => TxIn;
40
+ /**
41
+ * Create a frozen instance of {@link TxIn}, with defaults specified
42
+ * in Rust, in the {@link bitcoin} crate.
43
+ */
44
+ new: (partial: Partial<TxIn> & Required<Omit<TxIn, never>>) => TxIn;
45
+ /**
46
+ * Defaults specified in the {@link bitcoin} crate.
47
+ */
48
+ defaults: () => Partial<TxIn>;
49
+ }>;
50
+ export type TxOut = {
51
+ value: AmountInterface;
52
+ scriptPubkey: ScriptInterface;
53
+ };
54
+ /**
55
+ * Generated factory for {@link TxOut} record objects.
56
+ */
57
+ export declare const TxOut: Readonly<{
58
+ /**
59
+ * Create a frozen instance of {@link TxOut}, with defaults specified
60
+ * in Rust, in the {@link bitcoin} crate.
61
+ */
62
+ create: (partial: Partial<TxOut> & Required<Omit<TxOut, never>>) => TxOut;
63
+ /**
64
+ * Create a frozen instance of {@link TxOut}, with defaults specified
65
+ * in Rust, in the {@link bitcoin} crate.
66
+ */
67
+ new: (partial: Partial<TxOut> & Required<Omit<TxOut, never>>) => TxOut;
68
+ /**
69
+ * Defaults specified in the {@link bitcoin} crate.
70
+ */
71
+ defaults: () => Partial<TxOut>;
72
+ }>;
73
+ /**
74
+ * Typealias from the type name used in the UDL file to the builtin type. This
75
+ * is needed because the UDL type name is used in function/method signatures.
76
+ */
77
+ export type BlockHash = string;
78
+ /**
79
+ * Typealias from the type name used in the UDL file to the builtin type. This
80
+ * is needed because the UDL type name is used in function/method signatures.
81
+ */
82
+ export type Txid = string;
83
+ export declare enum AddressParseError_Tags {
84
+ Base58 = "Base58",
85
+ Bech32 = "Bech32",
86
+ WitnessVersion = "WitnessVersion",
87
+ WitnessProgram = "WitnessProgram",
88
+ UnknownHrp = "UnknownHrp",
89
+ LegacyAddressTooLong = "LegacyAddressTooLong",
90
+ InvalidBase58PayloadLength = "InvalidBase58PayloadLength",
91
+ InvalidLegacyPrefix = "InvalidLegacyPrefix",
92
+ NetworkValidation = "NetworkValidation",
93
+ OtherAddressParseErr = "OtherAddressParseErr"
94
+ }
95
+ export declare const AddressParseError: Readonly<{
96
+ instanceOf: (obj: any) => obj is AddressParseError;
97
+ Base58: {
98
+ new (): {
99
+ readonly tag: AddressParseError_Tags.Base58;
100
+ /**
101
+ * @private
102
+ * This field is private and should not be used, use `tag` instead.
103
+ */
104
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
105
+ name: string;
106
+ message: string;
107
+ stack?: string;
108
+ cause?: unknown;
109
+ };
110
+ "new"(): {
111
+ readonly tag: AddressParseError_Tags.Base58;
112
+ /**
113
+ * @private
114
+ * This field is private and should not be used, use `tag` instead.
115
+ */
116
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
117
+ name: string;
118
+ message: string;
119
+ stack?: string;
120
+ cause?: unknown;
121
+ };
122
+ instanceOf(obj: any): obj is {
123
+ readonly tag: AddressParseError_Tags.Base58;
124
+ /**
125
+ * @private
126
+ * This field is private and should not be used, use `tag` instead.
127
+ */
128
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
129
+ name: string;
130
+ message: string;
131
+ stack?: string;
132
+ cause?: unknown;
133
+ };
134
+ hasInner(obj: any): obj is {
135
+ readonly tag: AddressParseError_Tags.Base58;
136
+ /**
137
+ * @private
138
+ * This field is private and should not be used, use `tag` instead.
139
+ */
140
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
141
+ name: string;
142
+ message: string;
143
+ stack?: string;
144
+ cause?: unknown;
145
+ };
146
+ };
147
+ Bech32: {
148
+ new (): {
149
+ readonly tag: AddressParseError_Tags.Bech32;
150
+ /**
151
+ * @private
152
+ * This field is private and should not be used, use `tag` instead.
153
+ */
154
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
155
+ name: string;
156
+ message: string;
157
+ stack?: string;
158
+ cause?: unknown;
159
+ };
160
+ "new"(): {
161
+ readonly tag: AddressParseError_Tags.Bech32;
162
+ /**
163
+ * @private
164
+ * This field is private and should not be used, use `tag` instead.
165
+ */
166
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
167
+ name: string;
168
+ message: string;
169
+ stack?: string;
170
+ cause?: unknown;
171
+ };
172
+ instanceOf(obj: any): obj is {
173
+ readonly tag: AddressParseError_Tags.Bech32;
174
+ /**
175
+ * @private
176
+ * This field is private and should not be used, use `tag` instead.
177
+ */
178
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
179
+ name: string;
180
+ message: string;
181
+ stack?: string;
182
+ cause?: unknown;
183
+ };
184
+ hasInner(obj: any): obj is {
185
+ readonly tag: AddressParseError_Tags.Bech32;
186
+ /**
187
+ * @private
188
+ * This field is private and should not be used, use `tag` instead.
189
+ */
190
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
191
+ name: string;
192
+ message: string;
193
+ stack?: string;
194
+ cause?: unknown;
195
+ };
196
+ };
197
+ WitnessVersion: {
198
+ new (inner: {
199
+ errorMessage: string;
200
+ }): {
201
+ readonly tag: AddressParseError_Tags.WitnessVersion;
202
+ readonly inner: Readonly<{
203
+ errorMessage: string;
204
+ }>;
205
+ /**
206
+ * @private
207
+ * This field is private and should not be used, use `tag` instead.
208
+ */
209
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
210
+ name: string;
211
+ message: string;
212
+ stack?: string;
213
+ cause?: unknown;
214
+ };
215
+ "new"(inner: {
216
+ errorMessage: string;
217
+ }): {
218
+ readonly tag: AddressParseError_Tags.WitnessVersion;
219
+ readonly inner: Readonly<{
220
+ errorMessage: string;
221
+ }>;
222
+ /**
223
+ * @private
224
+ * This field is private and should not be used, use `tag` instead.
225
+ */
226
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
227
+ name: string;
228
+ message: string;
229
+ stack?: string;
230
+ cause?: unknown;
231
+ };
232
+ instanceOf(obj: any): obj is {
233
+ readonly tag: AddressParseError_Tags.WitnessVersion;
234
+ readonly inner: Readonly<{
235
+ errorMessage: string;
236
+ }>;
237
+ /**
238
+ * @private
239
+ * This field is private and should not be used, use `tag` instead.
240
+ */
241
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
242
+ name: string;
243
+ message: string;
244
+ stack?: string;
245
+ cause?: unknown;
246
+ };
247
+ hasInner(obj: any): obj is {
248
+ readonly tag: AddressParseError_Tags.WitnessVersion;
249
+ readonly inner: Readonly<{
250
+ errorMessage: string;
251
+ }>;
252
+ /**
253
+ * @private
254
+ * This field is private and should not be used, use `tag` instead.
255
+ */
256
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
257
+ name: string;
258
+ message: string;
259
+ stack?: string;
260
+ cause?: unknown;
261
+ };
262
+ getInner(obj: {
263
+ readonly tag: AddressParseError_Tags.WitnessVersion;
264
+ readonly inner: Readonly<{
265
+ errorMessage: string;
266
+ }>;
267
+ /**
268
+ * @private
269
+ * This field is private and should not be used, use `tag` instead.
270
+ */
271
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
272
+ name: string;
273
+ message: string;
274
+ stack?: string;
275
+ cause?: unknown;
276
+ }): Readonly<{
277
+ errorMessage: string;
278
+ }>;
279
+ };
280
+ WitnessProgram: {
281
+ new (inner: {
282
+ errorMessage: string;
283
+ }): {
284
+ readonly tag: AddressParseError_Tags.WitnessProgram;
285
+ readonly inner: Readonly<{
286
+ errorMessage: string;
287
+ }>;
288
+ /**
289
+ * @private
290
+ * This field is private and should not be used, use `tag` instead.
291
+ */
292
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
293
+ name: string;
294
+ message: string;
295
+ stack?: string;
296
+ cause?: unknown;
297
+ };
298
+ "new"(inner: {
299
+ errorMessage: string;
300
+ }): {
301
+ readonly tag: AddressParseError_Tags.WitnessProgram;
302
+ readonly inner: Readonly<{
303
+ errorMessage: string;
304
+ }>;
305
+ /**
306
+ * @private
307
+ * This field is private and should not be used, use `tag` instead.
308
+ */
309
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
310
+ name: string;
311
+ message: string;
312
+ stack?: string;
313
+ cause?: unknown;
314
+ };
315
+ instanceOf(obj: any): obj is {
316
+ readonly tag: AddressParseError_Tags.WitnessProgram;
317
+ readonly inner: Readonly<{
318
+ errorMessage: string;
319
+ }>;
320
+ /**
321
+ * @private
322
+ * This field is private and should not be used, use `tag` instead.
323
+ */
324
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
325
+ name: string;
326
+ message: string;
327
+ stack?: string;
328
+ cause?: unknown;
329
+ };
330
+ hasInner(obj: any): obj is {
331
+ readonly tag: AddressParseError_Tags.WitnessProgram;
332
+ readonly inner: Readonly<{
333
+ errorMessage: string;
334
+ }>;
335
+ /**
336
+ * @private
337
+ * This field is private and should not be used, use `tag` instead.
338
+ */
339
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
340
+ name: string;
341
+ message: string;
342
+ stack?: string;
343
+ cause?: unknown;
344
+ };
345
+ getInner(obj: {
346
+ readonly tag: AddressParseError_Tags.WitnessProgram;
347
+ readonly inner: Readonly<{
348
+ errorMessage: string;
349
+ }>;
350
+ /**
351
+ * @private
352
+ * This field is private and should not be used, use `tag` instead.
353
+ */
354
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
355
+ name: string;
356
+ message: string;
357
+ stack?: string;
358
+ cause?: unknown;
359
+ }): Readonly<{
360
+ errorMessage: string;
361
+ }>;
362
+ };
363
+ UnknownHrp: {
364
+ new (): {
365
+ readonly tag: AddressParseError_Tags.UnknownHrp;
366
+ /**
367
+ * @private
368
+ * This field is private and should not be used, use `tag` instead.
369
+ */
370
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
371
+ name: string;
372
+ message: string;
373
+ stack?: string;
374
+ cause?: unknown;
375
+ };
376
+ "new"(): {
377
+ readonly tag: AddressParseError_Tags.UnknownHrp;
378
+ /**
379
+ * @private
380
+ * This field is private and should not be used, use `tag` instead.
381
+ */
382
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
383
+ name: string;
384
+ message: string;
385
+ stack?: string;
386
+ cause?: unknown;
387
+ };
388
+ instanceOf(obj: any): obj is {
389
+ readonly tag: AddressParseError_Tags.UnknownHrp;
390
+ /**
391
+ * @private
392
+ * This field is private and should not be used, use `tag` instead.
393
+ */
394
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
395
+ name: string;
396
+ message: string;
397
+ stack?: string;
398
+ cause?: unknown;
399
+ };
400
+ hasInner(obj: any): obj is {
401
+ readonly tag: AddressParseError_Tags.UnknownHrp;
402
+ /**
403
+ * @private
404
+ * This field is private and should not be used, use `tag` instead.
405
+ */
406
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
407
+ name: string;
408
+ message: string;
409
+ stack?: string;
410
+ cause?: unknown;
411
+ };
412
+ };
413
+ LegacyAddressTooLong: {
414
+ new (): {
415
+ readonly tag: AddressParseError_Tags.LegacyAddressTooLong;
416
+ /**
417
+ * @private
418
+ * This field is private and should not be used, use `tag` instead.
419
+ */
420
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
421
+ name: string;
422
+ message: string;
423
+ stack?: string;
424
+ cause?: unknown;
425
+ };
426
+ "new"(): {
427
+ readonly tag: AddressParseError_Tags.LegacyAddressTooLong;
428
+ /**
429
+ * @private
430
+ * This field is private and should not be used, use `tag` instead.
431
+ */
432
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
433
+ name: string;
434
+ message: string;
435
+ stack?: string;
436
+ cause?: unknown;
437
+ };
438
+ instanceOf(obj: any): obj is {
439
+ readonly tag: AddressParseError_Tags.LegacyAddressTooLong;
440
+ /**
441
+ * @private
442
+ * This field is private and should not be used, use `tag` instead.
443
+ */
444
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
445
+ name: string;
446
+ message: string;
447
+ stack?: string;
448
+ cause?: unknown;
449
+ };
450
+ hasInner(obj: any): obj is {
451
+ readonly tag: AddressParseError_Tags.LegacyAddressTooLong;
452
+ /**
453
+ * @private
454
+ * This field is private and should not be used, use `tag` instead.
455
+ */
456
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
457
+ name: string;
458
+ message: string;
459
+ stack?: string;
460
+ cause?: unknown;
461
+ };
462
+ };
463
+ InvalidBase58PayloadLength: {
464
+ new (): {
465
+ readonly tag: AddressParseError_Tags.InvalidBase58PayloadLength;
466
+ /**
467
+ * @private
468
+ * This field is private and should not be used, use `tag` instead.
469
+ */
470
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
471
+ name: string;
472
+ message: string;
473
+ stack?: string;
474
+ cause?: unknown;
475
+ };
476
+ "new"(): {
477
+ readonly tag: AddressParseError_Tags.InvalidBase58PayloadLength;
478
+ /**
479
+ * @private
480
+ * This field is private and should not be used, use `tag` instead.
481
+ */
482
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
483
+ name: string;
484
+ message: string;
485
+ stack?: string;
486
+ cause?: unknown;
487
+ };
488
+ instanceOf(obj: any): obj is {
489
+ readonly tag: AddressParseError_Tags.InvalidBase58PayloadLength;
490
+ /**
491
+ * @private
492
+ * This field is private and should not be used, use `tag` instead.
493
+ */
494
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
495
+ name: string;
496
+ message: string;
497
+ stack?: string;
498
+ cause?: unknown;
499
+ };
500
+ hasInner(obj: any): obj is {
501
+ readonly tag: AddressParseError_Tags.InvalidBase58PayloadLength;
502
+ /**
503
+ * @private
504
+ * This field is private and should not be used, use `tag` instead.
505
+ */
506
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
507
+ name: string;
508
+ message: string;
509
+ stack?: string;
510
+ cause?: unknown;
511
+ };
512
+ };
513
+ InvalidLegacyPrefix: {
514
+ new (): {
515
+ readonly tag: AddressParseError_Tags.InvalidLegacyPrefix;
516
+ /**
517
+ * @private
518
+ * This field is private and should not be used, use `tag` instead.
519
+ */
520
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
521
+ name: string;
522
+ message: string;
523
+ stack?: string;
524
+ cause?: unknown;
525
+ };
526
+ "new"(): {
527
+ readonly tag: AddressParseError_Tags.InvalidLegacyPrefix;
528
+ /**
529
+ * @private
530
+ * This field is private and should not be used, use `tag` instead.
531
+ */
532
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
533
+ name: string;
534
+ message: string;
535
+ stack?: string;
536
+ cause?: unknown;
537
+ };
538
+ instanceOf(obj: any): obj is {
539
+ readonly tag: AddressParseError_Tags.InvalidLegacyPrefix;
540
+ /**
541
+ * @private
542
+ * This field is private and should not be used, use `tag` instead.
543
+ */
544
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
545
+ name: string;
546
+ message: string;
547
+ stack?: string;
548
+ cause?: unknown;
549
+ };
550
+ hasInner(obj: any): obj is {
551
+ readonly tag: AddressParseError_Tags.InvalidLegacyPrefix;
552
+ /**
553
+ * @private
554
+ * This field is private and should not be used, use `tag` instead.
555
+ */
556
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
557
+ name: string;
558
+ message: string;
559
+ stack?: string;
560
+ cause?: unknown;
561
+ };
562
+ };
563
+ NetworkValidation: {
564
+ new (): {
565
+ readonly tag: AddressParseError_Tags.NetworkValidation;
566
+ /**
567
+ * @private
568
+ * This field is private and should not be used, use `tag` instead.
569
+ */
570
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
571
+ name: string;
572
+ message: string;
573
+ stack?: string;
574
+ cause?: unknown;
575
+ };
576
+ "new"(): {
577
+ readonly tag: AddressParseError_Tags.NetworkValidation;
578
+ /**
579
+ * @private
580
+ * This field is private and should not be used, use `tag` instead.
581
+ */
582
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
583
+ name: string;
584
+ message: string;
585
+ stack?: string;
586
+ cause?: unknown;
587
+ };
588
+ instanceOf(obj: any): obj is {
589
+ readonly tag: AddressParseError_Tags.NetworkValidation;
590
+ /**
591
+ * @private
592
+ * This field is private and should not be used, use `tag` instead.
593
+ */
594
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
595
+ name: string;
596
+ message: string;
597
+ stack?: string;
598
+ cause?: unknown;
599
+ };
600
+ hasInner(obj: any): obj is {
601
+ readonly tag: AddressParseError_Tags.NetworkValidation;
602
+ /**
603
+ * @private
604
+ * This field is private and should not be used, use `tag` instead.
605
+ */
606
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
607
+ name: string;
608
+ message: string;
609
+ stack?: string;
610
+ cause?: unknown;
611
+ };
612
+ };
613
+ OtherAddressParseErr: {
614
+ new (): {
615
+ readonly tag: AddressParseError_Tags.OtherAddressParseErr;
616
+ /**
617
+ * @private
618
+ * This field is private and should not be used, use `tag` instead.
619
+ */
620
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
621
+ name: string;
622
+ message: string;
623
+ stack?: string;
624
+ cause?: unknown;
625
+ };
626
+ "new"(): {
627
+ readonly tag: AddressParseError_Tags.OtherAddressParseErr;
628
+ /**
629
+ * @private
630
+ * This field is private and should not be used, use `tag` instead.
631
+ */
632
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
633
+ name: string;
634
+ message: string;
635
+ stack?: string;
636
+ cause?: unknown;
637
+ };
638
+ instanceOf(obj: any): obj is {
639
+ readonly tag: AddressParseError_Tags.OtherAddressParseErr;
640
+ /**
641
+ * @private
642
+ * This field is private and should not be used, use `tag` instead.
643
+ */
644
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
645
+ name: string;
646
+ message: string;
647
+ stack?: string;
648
+ cause?: unknown;
649
+ };
650
+ hasInner(obj: any): obj is {
651
+ readonly tag: AddressParseError_Tags.OtherAddressParseErr;
652
+ /**
653
+ * @private
654
+ * This field is private and should not be used, use `tag` instead.
655
+ */
656
+ readonly [uniffiTypeNameSymbol]: "AddressParseError";
657
+ name: string;
658
+ message: string;
659
+ stack?: string;
660
+ cause?: unknown;
661
+ };
662
+ };
663
+ }>;
664
+ export type AddressParseError = InstanceType<(typeof AddressParseError)[keyof Omit<typeof AddressParseError, "instanceOf">]>;
665
+ export declare enum EncodeError_Tags {
666
+ Io = "Io",
667
+ OversizedVectorAllocation = "OversizedVectorAllocation",
668
+ InvalidChecksum = "InvalidChecksum",
669
+ NonMinimalVarInt = "NonMinimalVarInt",
670
+ ParseFailed = "ParseFailed",
671
+ UnsupportedSegwitFlag = "UnsupportedSegwitFlag",
672
+ OtherEncodeErr = "OtherEncodeErr"
673
+ }
674
+ export declare const EncodeError: Readonly<{
675
+ instanceOf: (obj: any) => obj is EncodeError;
676
+ Io: {
677
+ new (): {
678
+ readonly tag: EncodeError_Tags.Io;
679
+ /**
680
+ * @private
681
+ * This field is private and should not be used, use `tag` instead.
682
+ */
683
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
684
+ name: string;
685
+ message: string;
686
+ stack?: string;
687
+ cause?: unknown;
688
+ };
689
+ "new"(): {
690
+ readonly tag: EncodeError_Tags.Io;
691
+ /**
692
+ * @private
693
+ * This field is private and should not be used, use `tag` instead.
694
+ */
695
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
696
+ name: string;
697
+ message: string;
698
+ stack?: string;
699
+ cause?: unknown;
700
+ };
701
+ instanceOf(obj: any): obj is {
702
+ readonly tag: EncodeError_Tags.Io;
703
+ /**
704
+ * @private
705
+ * This field is private and should not be used, use `tag` instead.
706
+ */
707
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
708
+ name: string;
709
+ message: string;
710
+ stack?: string;
711
+ cause?: unknown;
712
+ };
713
+ hasInner(obj: any): obj is {
714
+ readonly tag: EncodeError_Tags.Io;
715
+ /**
716
+ * @private
717
+ * This field is private and should not be used, use `tag` instead.
718
+ */
719
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
720
+ name: string;
721
+ message: string;
722
+ stack?: string;
723
+ cause?: unknown;
724
+ };
725
+ };
726
+ OversizedVectorAllocation: {
727
+ new (): {
728
+ readonly tag: EncodeError_Tags.OversizedVectorAllocation;
729
+ /**
730
+ * @private
731
+ * This field is private and should not be used, use `tag` instead.
732
+ */
733
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
734
+ name: string;
735
+ message: string;
736
+ stack?: string;
737
+ cause?: unknown;
738
+ };
739
+ "new"(): {
740
+ readonly tag: EncodeError_Tags.OversizedVectorAllocation;
741
+ /**
742
+ * @private
743
+ * This field is private and should not be used, use `tag` instead.
744
+ */
745
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
746
+ name: string;
747
+ message: string;
748
+ stack?: string;
749
+ cause?: unknown;
750
+ };
751
+ instanceOf(obj: any): obj is {
752
+ readonly tag: EncodeError_Tags.OversizedVectorAllocation;
753
+ /**
754
+ * @private
755
+ * This field is private and should not be used, use `tag` instead.
756
+ */
757
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
758
+ name: string;
759
+ message: string;
760
+ stack?: string;
761
+ cause?: unknown;
762
+ };
763
+ hasInner(obj: any): obj is {
764
+ readonly tag: EncodeError_Tags.OversizedVectorAllocation;
765
+ /**
766
+ * @private
767
+ * This field is private and should not be used, use `tag` instead.
768
+ */
769
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
770
+ name: string;
771
+ message: string;
772
+ stack?: string;
773
+ cause?: unknown;
774
+ };
775
+ };
776
+ InvalidChecksum: {
777
+ new (inner: {
778
+ expected: string;
779
+ actual: string;
780
+ }): {
781
+ readonly tag: EncodeError_Tags.InvalidChecksum;
782
+ readonly inner: Readonly<{
783
+ expected: string;
784
+ actual: string;
785
+ }>;
786
+ /**
787
+ * @private
788
+ * This field is private and should not be used, use `tag` instead.
789
+ */
790
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
791
+ name: string;
792
+ message: string;
793
+ stack?: string;
794
+ cause?: unknown;
795
+ };
796
+ "new"(inner: {
797
+ expected: string;
798
+ actual: string;
799
+ }): {
800
+ readonly tag: EncodeError_Tags.InvalidChecksum;
801
+ readonly inner: Readonly<{
802
+ expected: string;
803
+ actual: string;
804
+ }>;
805
+ /**
806
+ * @private
807
+ * This field is private and should not be used, use `tag` instead.
808
+ */
809
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
810
+ name: string;
811
+ message: string;
812
+ stack?: string;
813
+ cause?: unknown;
814
+ };
815
+ instanceOf(obj: any): obj is {
816
+ readonly tag: EncodeError_Tags.InvalidChecksum;
817
+ readonly inner: Readonly<{
818
+ expected: string;
819
+ actual: string;
820
+ }>;
821
+ /**
822
+ * @private
823
+ * This field is private and should not be used, use `tag` instead.
824
+ */
825
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
826
+ name: string;
827
+ message: string;
828
+ stack?: string;
829
+ cause?: unknown;
830
+ };
831
+ hasInner(obj: any): obj is {
832
+ readonly tag: EncodeError_Tags.InvalidChecksum;
833
+ readonly inner: Readonly<{
834
+ expected: string;
835
+ actual: string;
836
+ }>;
837
+ /**
838
+ * @private
839
+ * This field is private and should not be used, use `tag` instead.
840
+ */
841
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
842
+ name: string;
843
+ message: string;
844
+ stack?: string;
845
+ cause?: unknown;
846
+ };
847
+ getInner(obj: {
848
+ readonly tag: EncodeError_Tags.InvalidChecksum;
849
+ readonly inner: Readonly<{
850
+ expected: string;
851
+ actual: string;
852
+ }>;
853
+ /**
854
+ * @private
855
+ * This field is private and should not be used, use `tag` instead.
856
+ */
857
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
858
+ name: string;
859
+ message: string;
860
+ stack?: string;
861
+ cause?: unknown;
862
+ }): Readonly<{
863
+ expected: string;
864
+ actual: string;
865
+ }>;
866
+ };
867
+ NonMinimalVarInt: {
868
+ new (): {
869
+ readonly tag: EncodeError_Tags.NonMinimalVarInt;
870
+ /**
871
+ * @private
872
+ * This field is private and should not be used, use `tag` instead.
873
+ */
874
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
875
+ name: string;
876
+ message: string;
877
+ stack?: string;
878
+ cause?: unknown;
879
+ };
880
+ "new"(): {
881
+ readonly tag: EncodeError_Tags.NonMinimalVarInt;
882
+ /**
883
+ * @private
884
+ * This field is private and should not be used, use `tag` instead.
885
+ */
886
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
887
+ name: string;
888
+ message: string;
889
+ stack?: string;
890
+ cause?: unknown;
891
+ };
892
+ instanceOf(obj: any): obj is {
893
+ readonly tag: EncodeError_Tags.NonMinimalVarInt;
894
+ /**
895
+ * @private
896
+ * This field is private and should not be used, use `tag` instead.
897
+ */
898
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
899
+ name: string;
900
+ message: string;
901
+ stack?: string;
902
+ cause?: unknown;
903
+ };
904
+ hasInner(obj: any): obj is {
905
+ readonly tag: EncodeError_Tags.NonMinimalVarInt;
906
+ /**
907
+ * @private
908
+ * This field is private and should not be used, use `tag` instead.
909
+ */
910
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
911
+ name: string;
912
+ message: string;
913
+ stack?: string;
914
+ cause?: unknown;
915
+ };
916
+ };
917
+ ParseFailed: {
918
+ new (): {
919
+ readonly tag: EncodeError_Tags.ParseFailed;
920
+ /**
921
+ * @private
922
+ * This field is private and should not be used, use `tag` instead.
923
+ */
924
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
925
+ name: string;
926
+ message: string;
927
+ stack?: string;
928
+ cause?: unknown;
929
+ };
930
+ "new"(): {
931
+ readonly tag: EncodeError_Tags.ParseFailed;
932
+ /**
933
+ * @private
934
+ * This field is private and should not be used, use `tag` instead.
935
+ */
936
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
937
+ name: string;
938
+ message: string;
939
+ stack?: string;
940
+ cause?: unknown;
941
+ };
942
+ instanceOf(obj: any): obj is {
943
+ readonly tag: EncodeError_Tags.ParseFailed;
944
+ /**
945
+ * @private
946
+ * This field is private and should not be used, use `tag` instead.
947
+ */
948
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
949
+ name: string;
950
+ message: string;
951
+ stack?: string;
952
+ cause?: unknown;
953
+ };
954
+ hasInner(obj: any): obj is {
955
+ readonly tag: EncodeError_Tags.ParseFailed;
956
+ /**
957
+ * @private
958
+ * This field is private and should not be used, use `tag` instead.
959
+ */
960
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
961
+ name: string;
962
+ message: string;
963
+ stack?: string;
964
+ cause?: unknown;
965
+ };
966
+ };
967
+ UnsupportedSegwitFlag: {
968
+ new (inner: {
969
+ flag: number;
970
+ }): {
971
+ readonly tag: EncodeError_Tags.UnsupportedSegwitFlag;
972
+ readonly inner: Readonly<{
973
+ flag: number;
974
+ }>;
975
+ /**
976
+ * @private
977
+ * This field is private and should not be used, use `tag` instead.
978
+ */
979
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
980
+ name: string;
981
+ message: string;
982
+ stack?: string;
983
+ cause?: unknown;
984
+ };
985
+ "new"(inner: {
986
+ flag: number;
987
+ }): {
988
+ readonly tag: EncodeError_Tags.UnsupportedSegwitFlag;
989
+ readonly inner: Readonly<{
990
+ flag: number;
991
+ }>;
992
+ /**
993
+ * @private
994
+ * This field is private and should not be used, use `tag` instead.
995
+ */
996
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
997
+ name: string;
998
+ message: string;
999
+ stack?: string;
1000
+ cause?: unknown;
1001
+ };
1002
+ instanceOf(obj: any): obj is {
1003
+ readonly tag: EncodeError_Tags.UnsupportedSegwitFlag;
1004
+ readonly inner: Readonly<{
1005
+ flag: number;
1006
+ }>;
1007
+ /**
1008
+ * @private
1009
+ * This field is private and should not be used, use `tag` instead.
1010
+ */
1011
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
1012
+ name: string;
1013
+ message: string;
1014
+ stack?: string;
1015
+ cause?: unknown;
1016
+ };
1017
+ hasInner(obj: any): obj is {
1018
+ readonly tag: EncodeError_Tags.UnsupportedSegwitFlag;
1019
+ readonly inner: Readonly<{
1020
+ flag: number;
1021
+ }>;
1022
+ /**
1023
+ * @private
1024
+ * This field is private and should not be used, use `tag` instead.
1025
+ */
1026
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
1027
+ name: string;
1028
+ message: string;
1029
+ stack?: string;
1030
+ cause?: unknown;
1031
+ };
1032
+ getInner(obj: {
1033
+ readonly tag: EncodeError_Tags.UnsupportedSegwitFlag;
1034
+ readonly inner: Readonly<{
1035
+ flag: number;
1036
+ }>;
1037
+ /**
1038
+ * @private
1039
+ * This field is private and should not be used, use `tag` instead.
1040
+ */
1041
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
1042
+ name: string;
1043
+ message: string;
1044
+ stack?: string;
1045
+ cause?: unknown;
1046
+ }): Readonly<{
1047
+ flag: number;
1048
+ }>;
1049
+ };
1050
+ OtherEncodeErr: {
1051
+ new (): {
1052
+ readonly tag: EncodeError_Tags.OtherEncodeErr;
1053
+ /**
1054
+ * @private
1055
+ * This field is private and should not be used, use `tag` instead.
1056
+ */
1057
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
1058
+ name: string;
1059
+ message: string;
1060
+ stack?: string;
1061
+ cause?: unknown;
1062
+ };
1063
+ "new"(): {
1064
+ readonly tag: EncodeError_Tags.OtherEncodeErr;
1065
+ /**
1066
+ * @private
1067
+ * This field is private and should not be used, use `tag` instead.
1068
+ */
1069
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
1070
+ name: string;
1071
+ message: string;
1072
+ stack?: string;
1073
+ cause?: unknown;
1074
+ };
1075
+ instanceOf(obj: any): obj is {
1076
+ readonly tag: EncodeError_Tags.OtherEncodeErr;
1077
+ /**
1078
+ * @private
1079
+ * This field is private and should not be used, use `tag` instead.
1080
+ */
1081
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
1082
+ name: string;
1083
+ message: string;
1084
+ stack?: string;
1085
+ cause?: unknown;
1086
+ };
1087
+ hasInner(obj: any): obj is {
1088
+ readonly tag: EncodeError_Tags.OtherEncodeErr;
1089
+ /**
1090
+ * @private
1091
+ * This field is private and should not be used, use `tag` instead.
1092
+ */
1093
+ readonly [uniffiTypeNameSymbol]: "EncodeError";
1094
+ name: string;
1095
+ message: string;
1096
+ stack?: string;
1097
+ cause?: unknown;
1098
+ };
1099
+ };
1100
+ }>;
1101
+ export type EncodeError = InstanceType<(typeof EncodeError)[keyof Omit<typeof EncodeError, "instanceOf">]>;
1102
+ export declare enum ExtractTxError_Tags {
1103
+ AbsurdFeeRate = "AbsurdFeeRate",
1104
+ MissingInputValue = "MissingInputValue",
1105
+ SendingTooMuch = "SendingTooMuch",
1106
+ OtherExtractTxErr = "OtherExtractTxErr"
1107
+ }
1108
+ export declare const ExtractTxError: Readonly<{
1109
+ instanceOf: (obj: any) => obj is ExtractTxError;
1110
+ AbsurdFeeRate: {
1111
+ new (inner: {
1112
+ feeRate: string;
1113
+ }): {
1114
+ readonly tag: ExtractTxError_Tags.AbsurdFeeRate;
1115
+ readonly inner: Readonly<{
1116
+ feeRate: string;
1117
+ }>;
1118
+ /**
1119
+ * @private
1120
+ * This field is private and should not be used, use `tag` instead.
1121
+ */
1122
+ readonly [uniffiTypeNameSymbol]: "ExtractTxError";
1123
+ name: string;
1124
+ message: string;
1125
+ stack?: string;
1126
+ cause?: unknown;
1127
+ };
1128
+ "new"(inner: {
1129
+ feeRate: string;
1130
+ }): {
1131
+ readonly tag: ExtractTxError_Tags.AbsurdFeeRate;
1132
+ readonly inner: Readonly<{
1133
+ feeRate: string;
1134
+ }>;
1135
+ /**
1136
+ * @private
1137
+ * This field is private and should not be used, use `tag` instead.
1138
+ */
1139
+ readonly [uniffiTypeNameSymbol]: "ExtractTxError";
1140
+ name: string;
1141
+ message: string;
1142
+ stack?: string;
1143
+ cause?: unknown;
1144
+ };
1145
+ instanceOf(obj: any): obj is {
1146
+ readonly tag: ExtractTxError_Tags.AbsurdFeeRate;
1147
+ readonly inner: Readonly<{
1148
+ feeRate: string;
1149
+ }>;
1150
+ /**
1151
+ * @private
1152
+ * This field is private and should not be used, use `tag` instead.
1153
+ */
1154
+ readonly [uniffiTypeNameSymbol]: "ExtractTxError";
1155
+ name: string;
1156
+ message: string;
1157
+ stack?: string;
1158
+ cause?: unknown;
1159
+ };
1160
+ hasInner(obj: any): obj is {
1161
+ readonly tag: ExtractTxError_Tags.AbsurdFeeRate;
1162
+ readonly inner: Readonly<{
1163
+ feeRate: string;
1164
+ }>;
1165
+ /**
1166
+ * @private
1167
+ * This field is private and should not be used, use `tag` instead.
1168
+ */
1169
+ readonly [uniffiTypeNameSymbol]: "ExtractTxError";
1170
+ name: string;
1171
+ message: string;
1172
+ stack?: string;
1173
+ cause?: unknown;
1174
+ };
1175
+ getInner(obj: {
1176
+ readonly tag: ExtractTxError_Tags.AbsurdFeeRate;
1177
+ readonly inner: Readonly<{
1178
+ feeRate: string;
1179
+ }>;
1180
+ /**
1181
+ * @private
1182
+ * This field is private and should not be used, use `tag` instead.
1183
+ */
1184
+ readonly [uniffiTypeNameSymbol]: "ExtractTxError";
1185
+ name: string;
1186
+ message: string;
1187
+ stack?: string;
1188
+ cause?: unknown;
1189
+ }): Readonly<{
1190
+ feeRate: string;
1191
+ }>;
1192
+ };
1193
+ MissingInputValue: {
1194
+ new (): {
1195
+ readonly tag: ExtractTxError_Tags.MissingInputValue;
1196
+ /**
1197
+ * @private
1198
+ * This field is private and should not be used, use `tag` instead.
1199
+ */
1200
+ readonly [uniffiTypeNameSymbol]: "ExtractTxError";
1201
+ name: string;
1202
+ message: string;
1203
+ stack?: string;
1204
+ cause?: unknown;
1205
+ };
1206
+ "new"(): {
1207
+ readonly tag: ExtractTxError_Tags.MissingInputValue;
1208
+ /**
1209
+ * @private
1210
+ * This field is private and should not be used, use `tag` instead.
1211
+ */
1212
+ readonly [uniffiTypeNameSymbol]: "ExtractTxError";
1213
+ name: string;
1214
+ message: string;
1215
+ stack?: string;
1216
+ cause?: unknown;
1217
+ };
1218
+ instanceOf(obj: any): obj is {
1219
+ readonly tag: ExtractTxError_Tags.MissingInputValue;
1220
+ /**
1221
+ * @private
1222
+ * This field is private and should not be used, use `tag` instead.
1223
+ */
1224
+ readonly [uniffiTypeNameSymbol]: "ExtractTxError";
1225
+ name: string;
1226
+ message: string;
1227
+ stack?: string;
1228
+ cause?: unknown;
1229
+ };
1230
+ hasInner(obj: any): obj is {
1231
+ readonly tag: ExtractTxError_Tags.MissingInputValue;
1232
+ /**
1233
+ * @private
1234
+ * This field is private and should not be used, use `tag` instead.
1235
+ */
1236
+ readonly [uniffiTypeNameSymbol]: "ExtractTxError";
1237
+ name: string;
1238
+ message: string;
1239
+ stack?: string;
1240
+ cause?: unknown;
1241
+ };
1242
+ };
1243
+ SendingTooMuch: {
1244
+ new (): {
1245
+ readonly tag: ExtractTxError_Tags.SendingTooMuch;
1246
+ /**
1247
+ * @private
1248
+ * This field is private and should not be used, use `tag` instead.
1249
+ */
1250
+ readonly [uniffiTypeNameSymbol]: "ExtractTxError";
1251
+ name: string;
1252
+ message: string;
1253
+ stack?: string;
1254
+ cause?: unknown;
1255
+ };
1256
+ "new"(): {
1257
+ readonly tag: ExtractTxError_Tags.SendingTooMuch;
1258
+ /**
1259
+ * @private
1260
+ * This field is private and should not be used, use `tag` instead.
1261
+ */
1262
+ readonly [uniffiTypeNameSymbol]: "ExtractTxError";
1263
+ name: string;
1264
+ message: string;
1265
+ stack?: string;
1266
+ cause?: unknown;
1267
+ };
1268
+ instanceOf(obj: any): obj is {
1269
+ readonly tag: ExtractTxError_Tags.SendingTooMuch;
1270
+ /**
1271
+ * @private
1272
+ * This field is private and should not be used, use `tag` instead.
1273
+ */
1274
+ readonly [uniffiTypeNameSymbol]: "ExtractTxError";
1275
+ name: string;
1276
+ message: string;
1277
+ stack?: string;
1278
+ cause?: unknown;
1279
+ };
1280
+ hasInner(obj: any): obj is {
1281
+ readonly tag: ExtractTxError_Tags.SendingTooMuch;
1282
+ /**
1283
+ * @private
1284
+ * This field is private and should not be used, use `tag` instead.
1285
+ */
1286
+ readonly [uniffiTypeNameSymbol]: "ExtractTxError";
1287
+ name: string;
1288
+ message: string;
1289
+ stack?: string;
1290
+ cause?: unknown;
1291
+ };
1292
+ };
1293
+ OtherExtractTxErr: {
1294
+ new (): {
1295
+ readonly tag: ExtractTxError_Tags.OtherExtractTxErr;
1296
+ /**
1297
+ * @private
1298
+ * This field is private and should not be used, use `tag` instead.
1299
+ */
1300
+ readonly [uniffiTypeNameSymbol]: "ExtractTxError";
1301
+ name: string;
1302
+ message: string;
1303
+ stack?: string;
1304
+ cause?: unknown;
1305
+ };
1306
+ "new"(): {
1307
+ readonly tag: ExtractTxError_Tags.OtherExtractTxErr;
1308
+ /**
1309
+ * @private
1310
+ * This field is private and should not be used, use `tag` instead.
1311
+ */
1312
+ readonly [uniffiTypeNameSymbol]: "ExtractTxError";
1313
+ name: string;
1314
+ message: string;
1315
+ stack?: string;
1316
+ cause?: unknown;
1317
+ };
1318
+ instanceOf(obj: any): obj is {
1319
+ readonly tag: ExtractTxError_Tags.OtherExtractTxErr;
1320
+ /**
1321
+ * @private
1322
+ * This field is private and should not be used, use `tag` instead.
1323
+ */
1324
+ readonly [uniffiTypeNameSymbol]: "ExtractTxError";
1325
+ name: string;
1326
+ message: string;
1327
+ stack?: string;
1328
+ cause?: unknown;
1329
+ };
1330
+ hasInner(obj: any): obj is {
1331
+ readonly tag: ExtractTxError_Tags.OtherExtractTxErr;
1332
+ /**
1333
+ * @private
1334
+ * This field is private and should not be used, use `tag` instead.
1335
+ */
1336
+ readonly [uniffiTypeNameSymbol]: "ExtractTxError";
1337
+ name: string;
1338
+ message: string;
1339
+ stack?: string;
1340
+ cause?: unknown;
1341
+ };
1342
+ };
1343
+ }>;
1344
+ export type ExtractTxError = InstanceType<(typeof ExtractTxError)[keyof Omit<typeof ExtractTxError, "instanceOf">]>;
1345
+ export declare enum FeeRateError_Tags {
1346
+ ArithmeticOverflow = "ArithmeticOverflow"
1347
+ }
1348
+ export declare const FeeRateError: Readonly<{
1349
+ instanceOf: (obj: any) => obj is FeeRateError;
1350
+ ArithmeticOverflow: {
1351
+ new (): {
1352
+ readonly tag: FeeRateError_Tags.ArithmeticOverflow;
1353
+ /**
1354
+ * @private
1355
+ * This field is private and should not be used, use `tag` instead.
1356
+ */
1357
+ readonly [uniffiTypeNameSymbol]: "FeeRateError";
1358
+ name: string;
1359
+ message: string;
1360
+ stack?: string;
1361
+ cause?: unknown;
1362
+ };
1363
+ "new"(): {
1364
+ readonly tag: FeeRateError_Tags.ArithmeticOverflow;
1365
+ /**
1366
+ * @private
1367
+ * This field is private and should not be used, use `tag` instead.
1368
+ */
1369
+ readonly [uniffiTypeNameSymbol]: "FeeRateError";
1370
+ name: string;
1371
+ message: string;
1372
+ stack?: string;
1373
+ cause?: unknown;
1374
+ };
1375
+ instanceOf(obj: any): obj is {
1376
+ readonly tag: FeeRateError_Tags.ArithmeticOverflow;
1377
+ /**
1378
+ * @private
1379
+ * This field is private and should not be used, use `tag` instead.
1380
+ */
1381
+ readonly [uniffiTypeNameSymbol]: "FeeRateError";
1382
+ name: string;
1383
+ message: string;
1384
+ stack?: string;
1385
+ cause?: unknown;
1386
+ };
1387
+ hasInner(obj: any): obj is {
1388
+ readonly tag: FeeRateError_Tags.ArithmeticOverflow;
1389
+ /**
1390
+ * @private
1391
+ * This field is private and should not be used, use `tag` instead.
1392
+ */
1393
+ readonly [uniffiTypeNameSymbol]: "FeeRateError";
1394
+ name: string;
1395
+ message: string;
1396
+ stack?: string;
1397
+ cause?: unknown;
1398
+ };
1399
+ };
1400
+ }>;
1401
+ export type FeeRateError = InstanceType<(typeof FeeRateError)[keyof Omit<typeof FeeRateError, "instanceOf">]>;
1402
+ export declare enum FromScriptError_Tags {
1403
+ UnrecognizedScript = "UnrecognizedScript",
1404
+ WitnessProgram = "WitnessProgram",
1405
+ WitnessVersion = "WitnessVersion",
1406
+ OtherFromScriptErr = "OtherFromScriptErr"
1407
+ }
1408
+ export declare const FromScriptError: Readonly<{
1409
+ instanceOf: (obj: any) => obj is FromScriptError;
1410
+ UnrecognizedScript: {
1411
+ new (): {
1412
+ readonly tag: FromScriptError_Tags.UnrecognizedScript;
1413
+ /**
1414
+ * @private
1415
+ * This field is private and should not be used, use `tag` instead.
1416
+ */
1417
+ readonly [uniffiTypeNameSymbol]: "FromScriptError";
1418
+ name: string;
1419
+ message: string;
1420
+ stack?: string;
1421
+ cause?: unknown;
1422
+ };
1423
+ "new"(): {
1424
+ readonly tag: FromScriptError_Tags.UnrecognizedScript;
1425
+ /**
1426
+ * @private
1427
+ * This field is private and should not be used, use `tag` instead.
1428
+ */
1429
+ readonly [uniffiTypeNameSymbol]: "FromScriptError";
1430
+ name: string;
1431
+ message: string;
1432
+ stack?: string;
1433
+ cause?: unknown;
1434
+ };
1435
+ instanceOf(obj: any): obj is {
1436
+ readonly tag: FromScriptError_Tags.UnrecognizedScript;
1437
+ /**
1438
+ * @private
1439
+ * This field is private and should not be used, use `tag` instead.
1440
+ */
1441
+ readonly [uniffiTypeNameSymbol]: "FromScriptError";
1442
+ name: string;
1443
+ message: string;
1444
+ stack?: string;
1445
+ cause?: unknown;
1446
+ };
1447
+ hasInner(obj: any): obj is {
1448
+ readonly tag: FromScriptError_Tags.UnrecognizedScript;
1449
+ /**
1450
+ * @private
1451
+ * This field is private and should not be used, use `tag` instead.
1452
+ */
1453
+ readonly [uniffiTypeNameSymbol]: "FromScriptError";
1454
+ name: string;
1455
+ message: string;
1456
+ stack?: string;
1457
+ cause?: unknown;
1458
+ };
1459
+ };
1460
+ WitnessProgram: {
1461
+ new (inner: {
1462
+ errorMessage: string;
1463
+ }): {
1464
+ readonly tag: FromScriptError_Tags.WitnessProgram;
1465
+ readonly inner: Readonly<{
1466
+ errorMessage: string;
1467
+ }>;
1468
+ /**
1469
+ * @private
1470
+ * This field is private and should not be used, use `tag` instead.
1471
+ */
1472
+ readonly [uniffiTypeNameSymbol]: "FromScriptError";
1473
+ name: string;
1474
+ message: string;
1475
+ stack?: string;
1476
+ cause?: unknown;
1477
+ };
1478
+ "new"(inner: {
1479
+ errorMessage: string;
1480
+ }): {
1481
+ readonly tag: FromScriptError_Tags.WitnessProgram;
1482
+ readonly inner: Readonly<{
1483
+ errorMessage: string;
1484
+ }>;
1485
+ /**
1486
+ * @private
1487
+ * This field is private and should not be used, use `tag` instead.
1488
+ */
1489
+ readonly [uniffiTypeNameSymbol]: "FromScriptError";
1490
+ name: string;
1491
+ message: string;
1492
+ stack?: string;
1493
+ cause?: unknown;
1494
+ };
1495
+ instanceOf(obj: any): obj is {
1496
+ readonly tag: FromScriptError_Tags.WitnessProgram;
1497
+ readonly inner: Readonly<{
1498
+ errorMessage: string;
1499
+ }>;
1500
+ /**
1501
+ * @private
1502
+ * This field is private and should not be used, use `tag` instead.
1503
+ */
1504
+ readonly [uniffiTypeNameSymbol]: "FromScriptError";
1505
+ name: string;
1506
+ message: string;
1507
+ stack?: string;
1508
+ cause?: unknown;
1509
+ };
1510
+ hasInner(obj: any): obj is {
1511
+ readonly tag: FromScriptError_Tags.WitnessProgram;
1512
+ readonly inner: Readonly<{
1513
+ errorMessage: string;
1514
+ }>;
1515
+ /**
1516
+ * @private
1517
+ * This field is private and should not be used, use `tag` instead.
1518
+ */
1519
+ readonly [uniffiTypeNameSymbol]: "FromScriptError";
1520
+ name: string;
1521
+ message: string;
1522
+ stack?: string;
1523
+ cause?: unknown;
1524
+ };
1525
+ getInner(obj: {
1526
+ readonly tag: FromScriptError_Tags.WitnessProgram;
1527
+ readonly inner: Readonly<{
1528
+ errorMessage: string;
1529
+ }>;
1530
+ /**
1531
+ * @private
1532
+ * This field is private and should not be used, use `tag` instead.
1533
+ */
1534
+ readonly [uniffiTypeNameSymbol]: "FromScriptError";
1535
+ name: string;
1536
+ message: string;
1537
+ stack?: string;
1538
+ cause?: unknown;
1539
+ }): Readonly<{
1540
+ errorMessage: string;
1541
+ }>;
1542
+ };
1543
+ WitnessVersion: {
1544
+ new (inner: {
1545
+ errorMessage: string;
1546
+ }): {
1547
+ readonly tag: FromScriptError_Tags.WitnessVersion;
1548
+ readonly inner: Readonly<{
1549
+ errorMessage: string;
1550
+ }>;
1551
+ /**
1552
+ * @private
1553
+ * This field is private and should not be used, use `tag` instead.
1554
+ */
1555
+ readonly [uniffiTypeNameSymbol]: "FromScriptError";
1556
+ name: string;
1557
+ message: string;
1558
+ stack?: string;
1559
+ cause?: unknown;
1560
+ };
1561
+ "new"(inner: {
1562
+ errorMessage: string;
1563
+ }): {
1564
+ readonly tag: FromScriptError_Tags.WitnessVersion;
1565
+ readonly inner: Readonly<{
1566
+ errorMessage: string;
1567
+ }>;
1568
+ /**
1569
+ * @private
1570
+ * This field is private and should not be used, use `tag` instead.
1571
+ */
1572
+ readonly [uniffiTypeNameSymbol]: "FromScriptError";
1573
+ name: string;
1574
+ message: string;
1575
+ stack?: string;
1576
+ cause?: unknown;
1577
+ };
1578
+ instanceOf(obj: any): obj is {
1579
+ readonly tag: FromScriptError_Tags.WitnessVersion;
1580
+ readonly inner: Readonly<{
1581
+ errorMessage: string;
1582
+ }>;
1583
+ /**
1584
+ * @private
1585
+ * This field is private and should not be used, use `tag` instead.
1586
+ */
1587
+ readonly [uniffiTypeNameSymbol]: "FromScriptError";
1588
+ name: string;
1589
+ message: string;
1590
+ stack?: string;
1591
+ cause?: unknown;
1592
+ };
1593
+ hasInner(obj: any): obj is {
1594
+ readonly tag: FromScriptError_Tags.WitnessVersion;
1595
+ readonly inner: Readonly<{
1596
+ errorMessage: string;
1597
+ }>;
1598
+ /**
1599
+ * @private
1600
+ * This field is private and should not be used, use `tag` instead.
1601
+ */
1602
+ readonly [uniffiTypeNameSymbol]: "FromScriptError";
1603
+ name: string;
1604
+ message: string;
1605
+ stack?: string;
1606
+ cause?: unknown;
1607
+ };
1608
+ getInner(obj: {
1609
+ readonly tag: FromScriptError_Tags.WitnessVersion;
1610
+ readonly inner: Readonly<{
1611
+ errorMessage: string;
1612
+ }>;
1613
+ /**
1614
+ * @private
1615
+ * This field is private and should not be used, use `tag` instead.
1616
+ */
1617
+ readonly [uniffiTypeNameSymbol]: "FromScriptError";
1618
+ name: string;
1619
+ message: string;
1620
+ stack?: string;
1621
+ cause?: unknown;
1622
+ }): Readonly<{
1623
+ errorMessage: string;
1624
+ }>;
1625
+ };
1626
+ OtherFromScriptErr: {
1627
+ new (): {
1628
+ readonly tag: FromScriptError_Tags.OtherFromScriptErr;
1629
+ /**
1630
+ * @private
1631
+ * This field is private and should not be used, use `tag` instead.
1632
+ */
1633
+ readonly [uniffiTypeNameSymbol]: "FromScriptError";
1634
+ name: string;
1635
+ message: string;
1636
+ stack?: string;
1637
+ cause?: unknown;
1638
+ };
1639
+ "new"(): {
1640
+ readonly tag: FromScriptError_Tags.OtherFromScriptErr;
1641
+ /**
1642
+ * @private
1643
+ * This field is private and should not be used, use `tag` instead.
1644
+ */
1645
+ readonly [uniffiTypeNameSymbol]: "FromScriptError";
1646
+ name: string;
1647
+ message: string;
1648
+ stack?: string;
1649
+ cause?: unknown;
1650
+ };
1651
+ instanceOf(obj: any): obj is {
1652
+ readonly tag: FromScriptError_Tags.OtherFromScriptErr;
1653
+ /**
1654
+ * @private
1655
+ * This field is private and should not be used, use `tag` instead.
1656
+ */
1657
+ readonly [uniffiTypeNameSymbol]: "FromScriptError";
1658
+ name: string;
1659
+ message: string;
1660
+ stack?: string;
1661
+ cause?: unknown;
1662
+ };
1663
+ hasInner(obj: any): obj is {
1664
+ readonly tag: FromScriptError_Tags.OtherFromScriptErr;
1665
+ /**
1666
+ * @private
1667
+ * This field is private and should not be used, use `tag` instead.
1668
+ */
1669
+ readonly [uniffiTypeNameSymbol]: "FromScriptError";
1670
+ name: string;
1671
+ message: string;
1672
+ stack?: string;
1673
+ cause?: unknown;
1674
+ };
1675
+ };
1676
+ }>;
1677
+ export type FromScriptError = InstanceType<(typeof FromScriptError)[keyof Omit<typeof FromScriptError, "instanceOf">]>;
1678
+ export declare enum Network {
1679
+ Bitcoin = 0,
1680
+ Testnet = 1,
1681
+ Testnet4 = 2,
1682
+ Signet = 3,
1683
+ Regtest = 4
1684
+ }
1685
+ export declare enum ParseAmountError_Tags {
1686
+ OutOfRange = "OutOfRange",
1687
+ TooPrecise = "TooPrecise",
1688
+ MissingDigits = "MissingDigits",
1689
+ InputTooLarge = "InputTooLarge",
1690
+ InvalidCharacter = "InvalidCharacter",
1691
+ OtherParseAmountErr = "OtherParseAmountErr"
1692
+ }
1693
+ export declare const ParseAmountError: Readonly<{
1694
+ instanceOf: (obj: any) => obj is ParseAmountError;
1695
+ OutOfRange: {
1696
+ new (): {
1697
+ readonly tag: ParseAmountError_Tags.OutOfRange;
1698
+ /**
1699
+ * @private
1700
+ * This field is private and should not be used, use `tag` instead.
1701
+ */
1702
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1703
+ name: string;
1704
+ message: string;
1705
+ stack?: string;
1706
+ cause?: unknown;
1707
+ };
1708
+ "new"(): {
1709
+ readonly tag: ParseAmountError_Tags.OutOfRange;
1710
+ /**
1711
+ * @private
1712
+ * This field is private and should not be used, use `tag` instead.
1713
+ */
1714
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1715
+ name: string;
1716
+ message: string;
1717
+ stack?: string;
1718
+ cause?: unknown;
1719
+ };
1720
+ instanceOf(obj: any): obj is {
1721
+ readonly tag: ParseAmountError_Tags.OutOfRange;
1722
+ /**
1723
+ * @private
1724
+ * This field is private and should not be used, use `tag` instead.
1725
+ */
1726
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1727
+ name: string;
1728
+ message: string;
1729
+ stack?: string;
1730
+ cause?: unknown;
1731
+ };
1732
+ hasInner(obj: any): obj is {
1733
+ readonly tag: ParseAmountError_Tags.OutOfRange;
1734
+ /**
1735
+ * @private
1736
+ * This field is private and should not be used, use `tag` instead.
1737
+ */
1738
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1739
+ name: string;
1740
+ message: string;
1741
+ stack?: string;
1742
+ cause?: unknown;
1743
+ };
1744
+ };
1745
+ TooPrecise: {
1746
+ new (): {
1747
+ readonly tag: ParseAmountError_Tags.TooPrecise;
1748
+ /**
1749
+ * @private
1750
+ * This field is private and should not be used, use `tag` instead.
1751
+ */
1752
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1753
+ name: string;
1754
+ message: string;
1755
+ stack?: string;
1756
+ cause?: unknown;
1757
+ };
1758
+ "new"(): {
1759
+ readonly tag: ParseAmountError_Tags.TooPrecise;
1760
+ /**
1761
+ * @private
1762
+ * This field is private and should not be used, use `tag` instead.
1763
+ */
1764
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1765
+ name: string;
1766
+ message: string;
1767
+ stack?: string;
1768
+ cause?: unknown;
1769
+ };
1770
+ instanceOf(obj: any): obj is {
1771
+ readonly tag: ParseAmountError_Tags.TooPrecise;
1772
+ /**
1773
+ * @private
1774
+ * This field is private and should not be used, use `tag` instead.
1775
+ */
1776
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1777
+ name: string;
1778
+ message: string;
1779
+ stack?: string;
1780
+ cause?: unknown;
1781
+ };
1782
+ hasInner(obj: any): obj is {
1783
+ readonly tag: ParseAmountError_Tags.TooPrecise;
1784
+ /**
1785
+ * @private
1786
+ * This field is private and should not be used, use `tag` instead.
1787
+ */
1788
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1789
+ name: string;
1790
+ message: string;
1791
+ stack?: string;
1792
+ cause?: unknown;
1793
+ };
1794
+ };
1795
+ MissingDigits: {
1796
+ new (): {
1797
+ readonly tag: ParseAmountError_Tags.MissingDigits;
1798
+ /**
1799
+ * @private
1800
+ * This field is private and should not be used, use `tag` instead.
1801
+ */
1802
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1803
+ name: string;
1804
+ message: string;
1805
+ stack?: string;
1806
+ cause?: unknown;
1807
+ };
1808
+ "new"(): {
1809
+ readonly tag: ParseAmountError_Tags.MissingDigits;
1810
+ /**
1811
+ * @private
1812
+ * This field is private and should not be used, use `tag` instead.
1813
+ */
1814
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1815
+ name: string;
1816
+ message: string;
1817
+ stack?: string;
1818
+ cause?: unknown;
1819
+ };
1820
+ instanceOf(obj: any): obj is {
1821
+ readonly tag: ParseAmountError_Tags.MissingDigits;
1822
+ /**
1823
+ * @private
1824
+ * This field is private and should not be used, use `tag` instead.
1825
+ */
1826
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1827
+ name: string;
1828
+ message: string;
1829
+ stack?: string;
1830
+ cause?: unknown;
1831
+ };
1832
+ hasInner(obj: any): obj is {
1833
+ readonly tag: ParseAmountError_Tags.MissingDigits;
1834
+ /**
1835
+ * @private
1836
+ * This field is private and should not be used, use `tag` instead.
1837
+ */
1838
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1839
+ name: string;
1840
+ message: string;
1841
+ stack?: string;
1842
+ cause?: unknown;
1843
+ };
1844
+ };
1845
+ InputTooLarge: {
1846
+ new (): {
1847
+ readonly tag: ParseAmountError_Tags.InputTooLarge;
1848
+ /**
1849
+ * @private
1850
+ * This field is private and should not be used, use `tag` instead.
1851
+ */
1852
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1853
+ name: string;
1854
+ message: string;
1855
+ stack?: string;
1856
+ cause?: unknown;
1857
+ };
1858
+ "new"(): {
1859
+ readonly tag: ParseAmountError_Tags.InputTooLarge;
1860
+ /**
1861
+ * @private
1862
+ * This field is private and should not be used, use `tag` instead.
1863
+ */
1864
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1865
+ name: string;
1866
+ message: string;
1867
+ stack?: string;
1868
+ cause?: unknown;
1869
+ };
1870
+ instanceOf(obj: any): obj is {
1871
+ readonly tag: ParseAmountError_Tags.InputTooLarge;
1872
+ /**
1873
+ * @private
1874
+ * This field is private and should not be used, use `tag` instead.
1875
+ */
1876
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1877
+ name: string;
1878
+ message: string;
1879
+ stack?: string;
1880
+ cause?: unknown;
1881
+ };
1882
+ hasInner(obj: any): obj is {
1883
+ readonly tag: ParseAmountError_Tags.InputTooLarge;
1884
+ /**
1885
+ * @private
1886
+ * This field is private and should not be used, use `tag` instead.
1887
+ */
1888
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1889
+ name: string;
1890
+ message: string;
1891
+ stack?: string;
1892
+ cause?: unknown;
1893
+ };
1894
+ };
1895
+ InvalidCharacter: {
1896
+ new (inner: {
1897
+ errorMessage: string;
1898
+ }): {
1899
+ readonly tag: ParseAmountError_Tags.InvalidCharacter;
1900
+ readonly inner: Readonly<{
1901
+ errorMessage: string;
1902
+ }>;
1903
+ /**
1904
+ * @private
1905
+ * This field is private and should not be used, use `tag` instead.
1906
+ */
1907
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1908
+ name: string;
1909
+ message: string;
1910
+ stack?: string;
1911
+ cause?: unknown;
1912
+ };
1913
+ "new"(inner: {
1914
+ errorMessage: string;
1915
+ }): {
1916
+ readonly tag: ParseAmountError_Tags.InvalidCharacter;
1917
+ readonly inner: Readonly<{
1918
+ errorMessage: string;
1919
+ }>;
1920
+ /**
1921
+ * @private
1922
+ * This field is private and should not be used, use `tag` instead.
1923
+ */
1924
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1925
+ name: string;
1926
+ message: string;
1927
+ stack?: string;
1928
+ cause?: unknown;
1929
+ };
1930
+ instanceOf(obj: any): obj is {
1931
+ readonly tag: ParseAmountError_Tags.InvalidCharacter;
1932
+ readonly inner: Readonly<{
1933
+ errorMessage: string;
1934
+ }>;
1935
+ /**
1936
+ * @private
1937
+ * This field is private and should not be used, use `tag` instead.
1938
+ */
1939
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1940
+ name: string;
1941
+ message: string;
1942
+ stack?: string;
1943
+ cause?: unknown;
1944
+ };
1945
+ hasInner(obj: any): obj is {
1946
+ readonly tag: ParseAmountError_Tags.InvalidCharacter;
1947
+ readonly inner: Readonly<{
1948
+ errorMessage: string;
1949
+ }>;
1950
+ /**
1951
+ * @private
1952
+ * This field is private and should not be used, use `tag` instead.
1953
+ */
1954
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1955
+ name: string;
1956
+ message: string;
1957
+ stack?: string;
1958
+ cause?: unknown;
1959
+ };
1960
+ getInner(obj: {
1961
+ readonly tag: ParseAmountError_Tags.InvalidCharacter;
1962
+ readonly inner: Readonly<{
1963
+ errorMessage: string;
1964
+ }>;
1965
+ /**
1966
+ * @private
1967
+ * This field is private and should not be used, use `tag` instead.
1968
+ */
1969
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1970
+ name: string;
1971
+ message: string;
1972
+ stack?: string;
1973
+ cause?: unknown;
1974
+ }): Readonly<{
1975
+ errorMessage: string;
1976
+ }>;
1977
+ };
1978
+ OtherParseAmountErr: {
1979
+ new (): {
1980
+ readonly tag: ParseAmountError_Tags.OtherParseAmountErr;
1981
+ /**
1982
+ * @private
1983
+ * This field is private and should not be used, use `tag` instead.
1984
+ */
1985
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1986
+ name: string;
1987
+ message: string;
1988
+ stack?: string;
1989
+ cause?: unknown;
1990
+ };
1991
+ "new"(): {
1992
+ readonly tag: ParseAmountError_Tags.OtherParseAmountErr;
1993
+ /**
1994
+ * @private
1995
+ * This field is private and should not be used, use `tag` instead.
1996
+ */
1997
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
1998
+ name: string;
1999
+ message: string;
2000
+ stack?: string;
2001
+ cause?: unknown;
2002
+ };
2003
+ instanceOf(obj: any): obj is {
2004
+ readonly tag: ParseAmountError_Tags.OtherParseAmountErr;
2005
+ /**
2006
+ * @private
2007
+ * This field is private and should not be used, use `tag` instead.
2008
+ */
2009
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
2010
+ name: string;
2011
+ message: string;
2012
+ stack?: string;
2013
+ cause?: unknown;
2014
+ };
2015
+ hasInner(obj: any): obj is {
2016
+ readonly tag: ParseAmountError_Tags.OtherParseAmountErr;
2017
+ /**
2018
+ * @private
2019
+ * This field is private and should not be used, use `tag` instead.
2020
+ */
2021
+ readonly [uniffiTypeNameSymbol]: "ParseAmountError";
2022
+ name: string;
2023
+ message: string;
2024
+ stack?: string;
2025
+ cause?: unknown;
2026
+ };
2027
+ };
2028
+ }>;
2029
+ export type ParseAmountError = InstanceType<(typeof ParseAmountError)[keyof Omit<typeof ParseAmountError, "instanceOf">]>;
2030
+ export declare enum PsbtError_Tags {
2031
+ InvalidMagic = "InvalidMagic",
2032
+ MissingUtxo = "MissingUtxo",
2033
+ InvalidSeparator = "InvalidSeparator",
2034
+ PsbtUtxoOutOfBounds = "PsbtUtxoOutOfBounds",
2035
+ InvalidKey = "InvalidKey",
2036
+ InvalidProprietaryKey = "InvalidProprietaryKey",
2037
+ DuplicateKey = "DuplicateKey",
2038
+ UnsignedTxHasScriptSigs = "UnsignedTxHasScriptSigs",
2039
+ UnsignedTxHasScriptWitnesses = "UnsignedTxHasScriptWitnesses",
2040
+ MustHaveUnsignedTx = "MustHaveUnsignedTx",
2041
+ NoMorePairs = "NoMorePairs",
2042
+ UnexpectedUnsignedTx = "UnexpectedUnsignedTx",
2043
+ NonStandardSighashType = "NonStandardSighashType",
2044
+ InvalidHash = "InvalidHash",
2045
+ InvalidPreimageHashPair = "InvalidPreimageHashPair",
2046
+ CombineInconsistentKeySources = "CombineInconsistentKeySources",
2047
+ ConsensusEncoding = "ConsensusEncoding",
2048
+ NegativeFee = "NegativeFee",
2049
+ FeeOverflow = "FeeOverflow",
2050
+ InvalidPublicKey = "InvalidPublicKey",
2051
+ InvalidSecp256k1PublicKey = "InvalidSecp256k1PublicKey",
2052
+ InvalidXOnlyPublicKey = "InvalidXOnlyPublicKey",
2053
+ InvalidEcdsaSignature = "InvalidEcdsaSignature",
2054
+ InvalidTaprootSignature = "InvalidTaprootSignature",
2055
+ InvalidControlBlock = "InvalidControlBlock",
2056
+ InvalidLeafVersion = "InvalidLeafVersion",
2057
+ Taproot = "Taproot",
2058
+ TapTree = "TapTree",
2059
+ XPubKey = "XPubKey",
2060
+ Version = "Version",
2061
+ PartialDataConsumption = "PartialDataConsumption",
2062
+ Io = "Io",
2063
+ OtherPsbtErr = "OtherPsbtErr"
2064
+ }
2065
+ export declare const PsbtError: Readonly<{
2066
+ instanceOf: (obj: any) => obj is PsbtError;
2067
+ InvalidMagic: {
2068
+ new (): {
2069
+ readonly tag: PsbtError_Tags.InvalidMagic;
2070
+ /**
2071
+ * @private
2072
+ * This field is private and should not be used, use `tag` instead.
2073
+ */
2074
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2075
+ name: string;
2076
+ message: string;
2077
+ stack?: string;
2078
+ cause?: unknown;
2079
+ };
2080
+ "new"(): {
2081
+ readonly tag: PsbtError_Tags.InvalidMagic;
2082
+ /**
2083
+ * @private
2084
+ * This field is private and should not be used, use `tag` instead.
2085
+ */
2086
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2087
+ name: string;
2088
+ message: string;
2089
+ stack?: string;
2090
+ cause?: unknown;
2091
+ };
2092
+ instanceOf(obj: any): obj is {
2093
+ readonly tag: PsbtError_Tags.InvalidMagic;
2094
+ /**
2095
+ * @private
2096
+ * This field is private and should not be used, use `tag` instead.
2097
+ */
2098
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2099
+ name: string;
2100
+ message: string;
2101
+ stack?: string;
2102
+ cause?: unknown;
2103
+ };
2104
+ hasInner(obj: any): obj is {
2105
+ readonly tag: PsbtError_Tags.InvalidMagic;
2106
+ /**
2107
+ * @private
2108
+ * This field is private and should not be used, use `tag` instead.
2109
+ */
2110
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2111
+ name: string;
2112
+ message: string;
2113
+ stack?: string;
2114
+ cause?: unknown;
2115
+ };
2116
+ };
2117
+ MissingUtxo: {
2118
+ new (): {
2119
+ readonly tag: PsbtError_Tags.MissingUtxo;
2120
+ /**
2121
+ * @private
2122
+ * This field is private and should not be used, use `tag` instead.
2123
+ */
2124
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2125
+ name: string;
2126
+ message: string;
2127
+ stack?: string;
2128
+ cause?: unknown;
2129
+ };
2130
+ "new"(): {
2131
+ readonly tag: PsbtError_Tags.MissingUtxo;
2132
+ /**
2133
+ * @private
2134
+ * This field is private and should not be used, use `tag` instead.
2135
+ */
2136
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2137
+ name: string;
2138
+ message: string;
2139
+ stack?: string;
2140
+ cause?: unknown;
2141
+ };
2142
+ instanceOf(obj: any): obj is {
2143
+ readonly tag: PsbtError_Tags.MissingUtxo;
2144
+ /**
2145
+ * @private
2146
+ * This field is private and should not be used, use `tag` instead.
2147
+ */
2148
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2149
+ name: string;
2150
+ message: string;
2151
+ stack?: string;
2152
+ cause?: unknown;
2153
+ };
2154
+ hasInner(obj: any): obj is {
2155
+ readonly tag: PsbtError_Tags.MissingUtxo;
2156
+ /**
2157
+ * @private
2158
+ * This field is private and should not be used, use `tag` instead.
2159
+ */
2160
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2161
+ name: string;
2162
+ message: string;
2163
+ stack?: string;
2164
+ cause?: unknown;
2165
+ };
2166
+ };
2167
+ InvalidSeparator: {
2168
+ new (): {
2169
+ readonly tag: PsbtError_Tags.InvalidSeparator;
2170
+ /**
2171
+ * @private
2172
+ * This field is private and should not be used, use `tag` instead.
2173
+ */
2174
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2175
+ name: string;
2176
+ message: string;
2177
+ stack?: string;
2178
+ cause?: unknown;
2179
+ };
2180
+ "new"(): {
2181
+ readonly tag: PsbtError_Tags.InvalidSeparator;
2182
+ /**
2183
+ * @private
2184
+ * This field is private and should not be used, use `tag` instead.
2185
+ */
2186
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2187
+ name: string;
2188
+ message: string;
2189
+ stack?: string;
2190
+ cause?: unknown;
2191
+ };
2192
+ instanceOf(obj: any): obj is {
2193
+ readonly tag: PsbtError_Tags.InvalidSeparator;
2194
+ /**
2195
+ * @private
2196
+ * This field is private and should not be used, use `tag` instead.
2197
+ */
2198
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2199
+ name: string;
2200
+ message: string;
2201
+ stack?: string;
2202
+ cause?: unknown;
2203
+ };
2204
+ hasInner(obj: any): obj is {
2205
+ readonly tag: PsbtError_Tags.InvalidSeparator;
2206
+ /**
2207
+ * @private
2208
+ * This field is private and should not be used, use `tag` instead.
2209
+ */
2210
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2211
+ name: string;
2212
+ message: string;
2213
+ stack?: string;
2214
+ cause?: unknown;
2215
+ };
2216
+ };
2217
+ PsbtUtxoOutOfBounds: {
2218
+ new (): {
2219
+ readonly tag: PsbtError_Tags.PsbtUtxoOutOfBounds;
2220
+ /**
2221
+ * @private
2222
+ * This field is private and should not be used, use `tag` instead.
2223
+ */
2224
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2225
+ name: string;
2226
+ message: string;
2227
+ stack?: string;
2228
+ cause?: unknown;
2229
+ };
2230
+ "new"(): {
2231
+ readonly tag: PsbtError_Tags.PsbtUtxoOutOfBounds;
2232
+ /**
2233
+ * @private
2234
+ * This field is private and should not be used, use `tag` instead.
2235
+ */
2236
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2237
+ name: string;
2238
+ message: string;
2239
+ stack?: string;
2240
+ cause?: unknown;
2241
+ };
2242
+ instanceOf(obj: any): obj is {
2243
+ readonly tag: PsbtError_Tags.PsbtUtxoOutOfBounds;
2244
+ /**
2245
+ * @private
2246
+ * This field is private and should not be used, use `tag` instead.
2247
+ */
2248
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2249
+ name: string;
2250
+ message: string;
2251
+ stack?: string;
2252
+ cause?: unknown;
2253
+ };
2254
+ hasInner(obj: any): obj is {
2255
+ readonly tag: PsbtError_Tags.PsbtUtxoOutOfBounds;
2256
+ /**
2257
+ * @private
2258
+ * This field is private and should not be used, use `tag` instead.
2259
+ */
2260
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2261
+ name: string;
2262
+ message: string;
2263
+ stack?: string;
2264
+ cause?: unknown;
2265
+ };
2266
+ };
2267
+ InvalidKey: {
2268
+ new (inner: {
2269
+ key: string;
2270
+ }): {
2271
+ readonly tag: PsbtError_Tags.InvalidKey;
2272
+ readonly inner: Readonly<{
2273
+ key: string;
2274
+ }>;
2275
+ /**
2276
+ * @private
2277
+ * This field is private and should not be used, use `tag` instead.
2278
+ */
2279
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2280
+ name: string;
2281
+ message: string;
2282
+ stack?: string;
2283
+ cause?: unknown;
2284
+ };
2285
+ "new"(inner: {
2286
+ key: string;
2287
+ }): {
2288
+ readonly tag: PsbtError_Tags.InvalidKey;
2289
+ readonly inner: Readonly<{
2290
+ key: string;
2291
+ }>;
2292
+ /**
2293
+ * @private
2294
+ * This field is private and should not be used, use `tag` instead.
2295
+ */
2296
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2297
+ name: string;
2298
+ message: string;
2299
+ stack?: string;
2300
+ cause?: unknown;
2301
+ };
2302
+ instanceOf(obj: any): obj is {
2303
+ readonly tag: PsbtError_Tags.InvalidKey;
2304
+ readonly inner: Readonly<{
2305
+ key: string;
2306
+ }>;
2307
+ /**
2308
+ * @private
2309
+ * This field is private and should not be used, use `tag` instead.
2310
+ */
2311
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2312
+ name: string;
2313
+ message: string;
2314
+ stack?: string;
2315
+ cause?: unknown;
2316
+ };
2317
+ hasInner(obj: any): obj is {
2318
+ readonly tag: PsbtError_Tags.InvalidKey;
2319
+ readonly inner: Readonly<{
2320
+ key: string;
2321
+ }>;
2322
+ /**
2323
+ * @private
2324
+ * This field is private and should not be used, use `tag` instead.
2325
+ */
2326
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2327
+ name: string;
2328
+ message: string;
2329
+ stack?: string;
2330
+ cause?: unknown;
2331
+ };
2332
+ getInner(obj: {
2333
+ readonly tag: PsbtError_Tags.InvalidKey;
2334
+ readonly inner: Readonly<{
2335
+ key: string;
2336
+ }>;
2337
+ /**
2338
+ * @private
2339
+ * This field is private and should not be used, use `tag` instead.
2340
+ */
2341
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2342
+ name: string;
2343
+ message: string;
2344
+ stack?: string;
2345
+ cause?: unknown;
2346
+ }): Readonly<{
2347
+ key: string;
2348
+ }>;
2349
+ };
2350
+ InvalidProprietaryKey: {
2351
+ new (): {
2352
+ readonly tag: PsbtError_Tags.InvalidProprietaryKey;
2353
+ /**
2354
+ * @private
2355
+ * This field is private and should not be used, use `tag` instead.
2356
+ */
2357
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2358
+ name: string;
2359
+ message: string;
2360
+ stack?: string;
2361
+ cause?: unknown;
2362
+ };
2363
+ "new"(): {
2364
+ readonly tag: PsbtError_Tags.InvalidProprietaryKey;
2365
+ /**
2366
+ * @private
2367
+ * This field is private and should not be used, use `tag` instead.
2368
+ */
2369
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2370
+ name: string;
2371
+ message: string;
2372
+ stack?: string;
2373
+ cause?: unknown;
2374
+ };
2375
+ instanceOf(obj: any): obj is {
2376
+ readonly tag: PsbtError_Tags.InvalidProprietaryKey;
2377
+ /**
2378
+ * @private
2379
+ * This field is private and should not be used, use `tag` instead.
2380
+ */
2381
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2382
+ name: string;
2383
+ message: string;
2384
+ stack?: string;
2385
+ cause?: unknown;
2386
+ };
2387
+ hasInner(obj: any): obj is {
2388
+ readonly tag: PsbtError_Tags.InvalidProprietaryKey;
2389
+ /**
2390
+ * @private
2391
+ * This field is private and should not be used, use `tag` instead.
2392
+ */
2393
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2394
+ name: string;
2395
+ message: string;
2396
+ stack?: string;
2397
+ cause?: unknown;
2398
+ };
2399
+ };
2400
+ DuplicateKey: {
2401
+ new (inner: {
2402
+ key: string;
2403
+ }): {
2404
+ readonly tag: PsbtError_Tags.DuplicateKey;
2405
+ readonly inner: Readonly<{
2406
+ key: string;
2407
+ }>;
2408
+ /**
2409
+ * @private
2410
+ * This field is private and should not be used, use `tag` instead.
2411
+ */
2412
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2413
+ name: string;
2414
+ message: string;
2415
+ stack?: string;
2416
+ cause?: unknown;
2417
+ };
2418
+ "new"(inner: {
2419
+ key: string;
2420
+ }): {
2421
+ readonly tag: PsbtError_Tags.DuplicateKey;
2422
+ readonly inner: Readonly<{
2423
+ key: string;
2424
+ }>;
2425
+ /**
2426
+ * @private
2427
+ * This field is private and should not be used, use `tag` instead.
2428
+ */
2429
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2430
+ name: string;
2431
+ message: string;
2432
+ stack?: string;
2433
+ cause?: unknown;
2434
+ };
2435
+ instanceOf(obj: any): obj is {
2436
+ readonly tag: PsbtError_Tags.DuplicateKey;
2437
+ readonly inner: Readonly<{
2438
+ key: string;
2439
+ }>;
2440
+ /**
2441
+ * @private
2442
+ * This field is private and should not be used, use `tag` instead.
2443
+ */
2444
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2445
+ name: string;
2446
+ message: string;
2447
+ stack?: string;
2448
+ cause?: unknown;
2449
+ };
2450
+ hasInner(obj: any): obj is {
2451
+ readonly tag: PsbtError_Tags.DuplicateKey;
2452
+ readonly inner: Readonly<{
2453
+ key: string;
2454
+ }>;
2455
+ /**
2456
+ * @private
2457
+ * This field is private and should not be used, use `tag` instead.
2458
+ */
2459
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2460
+ name: string;
2461
+ message: string;
2462
+ stack?: string;
2463
+ cause?: unknown;
2464
+ };
2465
+ getInner(obj: {
2466
+ readonly tag: PsbtError_Tags.DuplicateKey;
2467
+ readonly inner: Readonly<{
2468
+ key: string;
2469
+ }>;
2470
+ /**
2471
+ * @private
2472
+ * This field is private and should not be used, use `tag` instead.
2473
+ */
2474
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2475
+ name: string;
2476
+ message: string;
2477
+ stack?: string;
2478
+ cause?: unknown;
2479
+ }): Readonly<{
2480
+ key: string;
2481
+ }>;
2482
+ };
2483
+ UnsignedTxHasScriptSigs: {
2484
+ new (): {
2485
+ readonly tag: PsbtError_Tags.UnsignedTxHasScriptSigs;
2486
+ /**
2487
+ * @private
2488
+ * This field is private and should not be used, use `tag` instead.
2489
+ */
2490
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2491
+ name: string;
2492
+ message: string;
2493
+ stack?: string;
2494
+ cause?: unknown;
2495
+ };
2496
+ "new"(): {
2497
+ readonly tag: PsbtError_Tags.UnsignedTxHasScriptSigs;
2498
+ /**
2499
+ * @private
2500
+ * This field is private and should not be used, use `tag` instead.
2501
+ */
2502
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2503
+ name: string;
2504
+ message: string;
2505
+ stack?: string;
2506
+ cause?: unknown;
2507
+ };
2508
+ instanceOf(obj: any): obj is {
2509
+ readonly tag: PsbtError_Tags.UnsignedTxHasScriptSigs;
2510
+ /**
2511
+ * @private
2512
+ * This field is private and should not be used, use `tag` instead.
2513
+ */
2514
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2515
+ name: string;
2516
+ message: string;
2517
+ stack?: string;
2518
+ cause?: unknown;
2519
+ };
2520
+ hasInner(obj: any): obj is {
2521
+ readonly tag: PsbtError_Tags.UnsignedTxHasScriptSigs;
2522
+ /**
2523
+ * @private
2524
+ * This field is private and should not be used, use `tag` instead.
2525
+ */
2526
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2527
+ name: string;
2528
+ message: string;
2529
+ stack?: string;
2530
+ cause?: unknown;
2531
+ };
2532
+ };
2533
+ UnsignedTxHasScriptWitnesses: {
2534
+ new (): {
2535
+ readonly tag: PsbtError_Tags.UnsignedTxHasScriptWitnesses;
2536
+ /**
2537
+ * @private
2538
+ * This field is private and should not be used, use `tag` instead.
2539
+ */
2540
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2541
+ name: string;
2542
+ message: string;
2543
+ stack?: string;
2544
+ cause?: unknown;
2545
+ };
2546
+ "new"(): {
2547
+ readonly tag: PsbtError_Tags.UnsignedTxHasScriptWitnesses;
2548
+ /**
2549
+ * @private
2550
+ * This field is private and should not be used, use `tag` instead.
2551
+ */
2552
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2553
+ name: string;
2554
+ message: string;
2555
+ stack?: string;
2556
+ cause?: unknown;
2557
+ };
2558
+ instanceOf(obj: any): obj is {
2559
+ readonly tag: PsbtError_Tags.UnsignedTxHasScriptWitnesses;
2560
+ /**
2561
+ * @private
2562
+ * This field is private and should not be used, use `tag` instead.
2563
+ */
2564
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2565
+ name: string;
2566
+ message: string;
2567
+ stack?: string;
2568
+ cause?: unknown;
2569
+ };
2570
+ hasInner(obj: any): obj is {
2571
+ readonly tag: PsbtError_Tags.UnsignedTxHasScriptWitnesses;
2572
+ /**
2573
+ * @private
2574
+ * This field is private and should not be used, use `tag` instead.
2575
+ */
2576
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2577
+ name: string;
2578
+ message: string;
2579
+ stack?: string;
2580
+ cause?: unknown;
2581
+ };
2582
+ };
2583
+ MustHaveUnsignedTx: {
2584
+ new (): {
2585
+ readonly tag: PsbtError_Tags.MustHaveUnsignedTx;
2586
+ /**
2587
+ * @private
2588
+ * This field is private and should not be used, use `tag` instead.
2589
+ */
2590
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2591
+ name: string;
2592
+ message: string;
2593
+ stack?: string;
2594
+ cause?: unknown;
2595
+ };
2596
+ "new"(): {
2597
+ readonly tag: PsbtError_Tags.MustHaveUnsignedTx;
2598
+ /**
2599
+ * @private
2600
+ * This field is private and should not be used, use `tag` instead.
2601
+ */
2602
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2603
+ name: string;
2604
+ message: string;
2605
+ stack?: string;
2606
+ cause?: unknown;
2607
+ };
2608
+ instanceOf(obj: any): obj is {
2609
+ readonly tag: PsbtError_Tags.MustHaveUnsignedTx;
2610
+ /**
2611
+ * @private
2612
+ * This field is private and should not be used, use `tag` instead.
2613
+ */
2614
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2615
+ name: string;
2616
+ message: string;
2617
+ stack?: string;
2618
+ cause?: unknown;
2619
+ };
2620
+ hasInner(obj: any): obj is {
2621
+ readonly tag: PsbtError_Tags.MustHaveUnsignedTx;
2622
+ /**
2623
+ * @private
2624
+ * This field is private and should not be used, use `tag` instead.
2625
+ */
2626
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2627
+ name: string;
2628
+ message: string;
2629
+ stack?: string;
2630
+ cause?: unknown;
2631
+ };
2632
+ };
2633
+ NoMorePairs: {
2634
+ new (): {
2635
+ readonly tag: PsbtError_Tags.NoMorePairs;
2636
+ /**
2637
+ * @private
2638
+ * This field is private and should not be used, use `tag` instead.
2639
+ */
2640
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2641
+ name: string;
2642
+ message: string;
2643
+ stack?: string;
2644
+ cause?: unknown;
2645
+ };
2646
+ "new"(): {
2647
+ readonly tag: PsbtError_Tags.NoMorePairs;
2648
+ /**
2649
+ * @private
2650
+ * This field is private and should not be used, use `tag` instead.
2651
+ */
2652
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2653
+ name: string;
2654
+ message: string;
2655
+ stack?: string;
2656
+ cause?: unknown;
2657
+ };
2658
+ instanceOf(obj: any): obj is {
2659
+ readonly tag: PsbtError_Tags.NoMorePairs;
2660
+ /**
2661
+ * @private
2662
+ * This field is private and should not be used, use `tag` instead.
2663
+ */
2664
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2665
+ name: string;
2666
+ message: string;
2667
+ stack?: string;
2668
+ cause?: unknown;
2669
+ };
2670
+ hasInner(obj: any): obj is {
2671
+ readonly tag: PsbtError_Tags.NoMorePairs;
2672
+ /**
2673
+ * @private
2674
+ * This field is private and should not be used, use `tag` instead.
2675
+ */
2676
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2677
+ name: string;
2678
+ message: string;
2679
+ stack?: string;
2680
+ cause?: unknown;
2681
+ };
2682
+ };
2683
+ UnexpectedUnsignedTx: {
2684
+ new (): {
2685
+ readonly tag: PsbtError_Tags.UnexpectedUnsignedTx;
2686
+ /**
2687
+ * @private
2688
+ * This field is private and should not be used, use `tag` instead.
2689
+ */
2690
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2691
+ name: string;
2692
+ message: string;
2693
+ stack?: string;
2694
+ cause?: unknown;
2695
+ };
2696
+ "new"(): {
2697
+ readonly tag: PsbtError_Tags.UnexpectedUnsignedTx;
2698
+ /**
2699
+ * @private
2700
+ * This field is private and should not be used, use `tag` instead.
2701
+ */
2702
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2703
+ name: string;
2704
+ message: string;
2705
+ stack?: string;
2706
+ cause?: unknown;
2707
+ };
2708
+ instanceOf(obj: any): obj is {
2709
+ readonly tag: PsbtError_Tags.UnexpectedUnsignedTx;
2710
+ /**
2711
+ * @private
2712
+ * This field is private and should not be used, use `tag` instead.
2713
+ */
2714
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2715
+ name: string;
2716
+ message: string;
2717
+ stack?: string;
2718
+ cause?: unknown;
2719
+ };
2720
+ hasInner(obj: any): obj is {
2721
+ readonly tag: PsbtError_Tags.UnexpectedUnsignedTx;
2722
+ /**
2723
+ * @private
2724
+ * This field is private and should not be used, use `tag` instead.
2725
+ */
2726
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2727
+ name: string;
2728
+ message: string;
2729
+ stack?: string;
2730
+ cause?: unknown;
2731
+ };
2732
+ };
2733
+ NonStandardSighashType: {
2734
+ new (inner: {
2735
+ sighash: number;
2736
+ }): {
2737
+ readonly tag: PsbtError_Tags.NonStandardSighashType;
2738
+ readonly inner: Readonly<{
2739
+ sighash: number;
2740
+ }>;
2741
+ /**
2742
+ * @private
2743
+ * This field is private and should not be used, use `tag` instead.
2744
+ */
2745
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2746
+ name: string;
2747
+ message: string;
2748
+ stack?: string;
2749
+ cause?: unknown;
2750
+ };
2751
+ "new"(inner: {
2752
+ sighash: number;
2753
+ }): {
2754
+ readonly tag: PsbtError_Tags.NonStandardSighashType;
2755
+ readonly inner: Readonly<{
2756
+ sighash: number;
2757
+ }>;
2758
+ /**
2759
+ * @private
2760
+ * This field is private and should not be used, use `tag` instead.
2761
+ */
2762
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2763
+ name: string;
2764
+ message: string;
2765
+ stack?: string;
2766
+ cause?: unknown;
2767
+ };
2768
+ instanceOf(obj: any): obj is {
2769
+ readonly tag: PsbtError_Tags.NonStandardSighashType;
2770
+ readonly inner: Readonly<{
2771
+ sighash: number;
2772
+ }>;
2773
+ /**
2774
+ * @private
2775
+ * This field is private and should not be used, use `tag` instead.
2776
+ */
2777
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2778
+ name: string;
2779
+ message: string;
2780
+ stack?: string;
2781
+ cause?: unknown;
2782
+ };
2783
+ hasInner(obj: any): obj is {
2784
+ readonly tag: PsbtError_Tags.NonStandardSighashType;
2785
+ readonly inner: Readonly<{
2786
+ sighash: number;
2787
+ }>;
2788
+ /**
2789
+ * @private
2790
+ * This field is private and should not be used, use `tag` instead.
2791
+ */
2792
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2793
+ name: string;
2794
+ message: string;
2795
+ stack?: string;
2796
+ cause?: unknown;
2797
+ };
2798
+ getInner(obj: {
2799
+ readonly tag: PsbtError_Tags.NonStandardSighashType;
2800
+ readonly inner: Readonly<{
2801
+ sighash: number;
2802
+ }>;
2803
+ /**
2804
+ * @private
2805
+ * This field is private and should not be used, use `tag` instead.
2806
+ */
2807
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2808
+ name: string;
2809
+ message: string;
2810
+ stack?: string;
2811
+ cause?: unknown;
2812
+ }): Readonly<{
2813
+ sighash: number;
2814
+ }>;
2815
+ };
2816
+ InvalidHash: {
2817
+ new (inner: {
2818
+ hash: string;
2819
+ }): {
2820
+ readonly tag: PsbtError_Tags.InvalidHash;
2821
+ readonly inner: Readonly<{
2822
+ hash: string;
2823
+ }>;
2824
+ /**
2825
+ * @private
2826
+ * This field is private and should not be used, use `tag` instead.
2827
+ */
2828
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2829
+ name: string;
2830
+ message: string;
2831
+ stack?: string;
2832
+ cause?: unknown;
2833
+ };
2834
+ "new"(inner: {
2835
+ hash: string;
2836
+ }): {
2837
+ readonly tag: PsbtError_Tags.InvalidHash;
2838
+ readonly inner: Readonly<{
2839
+ hash: string;
2840
+ }>;
2841
+ /**
2842
+ * @private
2843
+ * This field is private and should not be used, use `tag` instead.
2844
+ */
2845
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2846
+ name: string;
2847
+ message: string;
2848
+ stack?: string;
2849
+ cause?: unknown;
2850
+ };
2851
+ instanceOf(obj: any): obj is {
2852
+ readonly tag: PsbtError_Tags.InvalidHash;
2853
+ readonly inner: Readonly<{
2854
+ hash: string;
2855
+ }>;
2856
+ /**
2857
+ * @private
2858
+ * This field is private and should not be used, use `tag` instead.
2859
+ */
2860
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2861
+ name: string;
2862
+ message: string;
2863
+ stack?: string;
2864
+ cause?: unknown;
2865
+ };
2866
+ hasInner(obj: any): obj is {
2867
+ readonly tag: PsbtError_Tags.InvalidHash;
2868
+ readonly inner: Readonly<{
2869
+ hash: string;
2870
+ }>;
2871
+ /**
2872
+ * @private
2873
+ * This field is private and should not be used, use `tag` instead.
2874
+ */
2875
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2876
+ name: string;
2877
+ message: string;
2878
+ stack?: string;
2879
+ cause?: unknown;
2880
+ };
2881
+ getInner(obj: {
2882
+ readonly tag: PsbtError_Tags.InvalidHash;
2883
+ readonly inner: Readonly<{
2884
+ hash: string;
2885
+ }>;
2886
+ /**
2887
+ * @private
2888
+ * This field is private and should not be used, use `tag` instead.
2889
+ */
2890
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2891
+ name: string;
2892
+ message: string;
2893
+ stack?: string;
2894
+ cause?: unknown;
2895
+ }): Readonly<{
2896
+ hash: string;
2897
+ }>;
2898
+ };
2899
+ InvalidPreimageHashPair: {
2900
+ new (): {
2901
+ readonly tag: PsbtError_Tags.InvalidPreimageHashPair;
2902
+ /**
2903
+ * @private
2904
+ * This field is private and should not be used, use `tag` instead.
2905
+ */
2906
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2907
+ name: string;
2908
+ message: string;
2909
+ stack?: string;
2910
+ cause?: unknown;
2911
+ };
2912
+ "new"(): {
2913
+ readonly tag: PsbtError_Tags.InvalidPreimageHashPair;
2914
+ /**
2915
+ * @private
2916
+ * This field is private and should not be used, use `tag` instead.
2917
+ */
2918
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2919
+ name: string;
2920
+ message: string;
2921
+ stack?: string;
2922
+ cause?: unknown;
2923
+ };
2924
+ instanceOf(obj: any): obj is {
2925
+ readonly tag: PsbtError_Tags.InvalidPreimageHashPair;
2926
+ /**
2927
+ * @private
2928
+ * This field is private and should not be used, use `tag` instead.
2929
+ */
2930
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2931
+ name: string;
2932
+ message: string;
2933
+ stack?: string;
2934
+ cause?: unknown;
2935
+ };
2936
+ hasInner(obj: any): obj is {
2937
+ readonly tag: PsbtError_Tags.InvalidPreimageHashPair;
2938
+ /**
2939
+ * @private
2940
+ * This field is private and should not be used, use `tag` instead.
2941
+ */
2942
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2943
+ name: string;
2944
+ message: string;
2945
+ stack?: string;
2946
+ cause?: unknown;
2947
+ };
2948
+ };
2949
+ CombineInconsistentKeySources: {
2950
+ new (inner: {
2951
+ xpub: string;
2952
+ }): {
2953
+ readonly tag: PsbtError_Tags.CombineInconsistentKeySources;
2954
+ readonly inner: Readonly<{
2955
+ xpub: string;
2956
+ }>;
2957
+ /**
2958
+ * @private
2959
+ * This field is private and should not be used, use `tag` instead.
2960
+ */
2961
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2962
+ name: string;
2963
+ message: string;
2964
+ stack?: string;
2965
+ cause?: unknown;
2966
+ };
2967
+ "new"(inner: {
2968
+ xpub: string;
2969
+ }): {
2970
+ readonly tag: PsbtError_Tags.CombineInconsistentKeySources;
2971
+ readonly inner: Readonly<{
2972
+ xpub: string;
2973
+ }>;
2974
+ /**
2975
+ * @private
2976
+ * This field is private and should not be used, use `tag` instead.
2977
+ */
2978
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2979
+ name: string;
2980
+ message: string;
2981
+ stack?: string;
2982
+ cause?: unknown;
2983
+ };
2984
+ instanceOf(obj: any): obj is {
2985
+ readonly tag: PsbtError_Tags.CombineInconsistentKeySources;
2986
+ readonly inner: Readonly<{
2987
+ xpub: string;
2988
+ }>;
2989
+ /**
2990
+ * @private
2991
+ * This field is private and should not be used, use `tag` instead.
2992
+ */
2993
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
2994
+ name: string;
2995
+ message: string;
2996
+ stack?: string;
2997
+ cause?: unknown;
2998
+ };
2999
+ hasInner(obj: any): obj is {
3000
+ readonly tag: PsbtError_Tags.CombineInconsistentKeySources;
3001
+ readonly inner: Readonly<{
3002
+ xpub: string;
3003
+ }>;
3004
+ /**
3005
+ * @private
3006
+ * This field is private and should not be used, use `tag` instead.
3007
+ */
3008
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3009
+ name: string;
3010
+ message: string;
3011
+ stack?: string;
3012
+ cause?: unknown;
3013
+ };
3014
+ getInner(obj: {
3015
+ readonly tag: PsbtError_Tags.CombineInconsistentKeySources;
3016
+ readonly inner: Readonly<{
3017
+ xpub: string;
3018
+ }>;
3019
+ /**
3020
+ * @private
3021
+ * This field is private and should not be used, use `tag` instead.
3022
+ */
3023
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3024
+ name: string;
3025
+ message: string;
3026
+ stack?: string;
3027
+ cause?: unknown;
3028
+ }): Readonly<{
3029
+ xpub: string;
3030
+ }>;
3031
+ };
3032
+ ConsensusEncoding: {
3033
+ new (inner: {
3034
+ encodingError: string;
3035
+ }): {
3036
+ readonly tag: PsbtError_Tags.ConsensusEncoding;
3037
+ readonly inner: Readonly<{
3038
+ encodingError: string;
3039
+ }>;
3040
+ /**
3041
+ * @private
3042
+ * This field is private and should not be used, use `tag` instead.
3043
+ */
3044
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3045
+ name: string;
3046
+ message: string;
3047
+ stack?: string;
3048
+ cause?: unknown;
3049
+ };
3050
+ "new"(inner: {
3051
+ encodingError: string;
3052
+ }): {
3053
+ readonly tag: PsbtError_Tags.ConsensusEncoding;
3054
+ readonly inner: Readonly<{
3055
+ encodingError: string;
3056
+ }>;
3057
+ /**
3058
+ * @private
3059
+ * This field is private and should not be used, use `tag` instead.
3060
+ */
3061
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3062
+ name: string;
3063
+ message: string;
3064
+ stack?: string;
3065
+ cause?: unknown;
3066
+ };
3067
+ instanceOf(obj: any): obj is {
3068
+ readonly tag: PsbtError_Tags.ConsensusEncoding;
3069
+ readonly inner: Readonly<{
3070
+ encodingError: string;
3071
+ }>;
3072
+ /**
3073
+ * @private
3074
+ * This field is private and should not be used, use `tag` instead.
3075
+ */
3076
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3077
+ name: string;
3078
+ message: string;
3079
+ stack?: string;
3080
+ cause?: unknown;
3081
+ };
3082
+ hasInner(obj: any): obj is {
3083
+ readonly tag: PsbtError_Tags.ConsensusEncoding;
3084
+ readonly inner: Readonly<{
3085
+ encodingError: string;
3086
+ }>;
3087
+ /**
3088
+ * @private
3089
+ * This field is private and should not be used, use `tag` instead.
3090
+ */
3091
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3092
+ name: string;
3093
+ message: string;
3094
+ stack?: string;
3095
+ cause?: unknown;
3096
+ };
3097
+ getInner(obj: {
3098
+ readonly tag: PsbtError_Tags.ConsensusEncoding;
3099
+ readonly inner: Readonly<{
3100
+ encodingError: string;
3101
+ }>;
3102
+ /**
3103
+ * @private
3104
+ * This field is private and should not be used, use `tag` instead.
3105
+ */
3106
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3107
+ name: string;
3108
+ message: string;
3109
+ stack?: string;
3110
+ cause?: unknown;
3111
+ }): Readonly<{
3112
+ encodingError: string;
3113
+ }>;
3114
+ };
3115
+ NegativeFee: {
3116
+ new (): {
3117
+ readonly tag: PsbtError_Tags.NegativeFee;
3118
+ /**
3119
+ * @private
3120
+ * This field is private and should not be used, use `tag` instead.
3121
+ */
3122
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3123
+ name: string;
3124
+ message: string;
3125
+ stack?: string;
3126
+ cause?: unknown;
3127
+ };
3128
+ "new"(): {
3129
+ readonly tag: PsbtError_Tags.NegativeFee;
3130
+ /**
3131
+ * @private
3132
+ * This field is private and should not be used, use `tag` instead.
3133
+ */
3134
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3135
+ name: string;
3136
+ message: string;
3137
+ stack?: string;
3138
+ cause?: unknown;
3139
+ };
3140
+ instanceOf(obj: any): obj is {
3141
+ readonly tag: PsbtError_Tags.NegativeFee;
3142
+ /**
3143
+ * @private
3144
+ * This field is private and should not be used, use `tag` instead.
3145
+ */
3146
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3147
+ name: string;
3148
+ message: string;
3149
+ stack?: string;
3150
+ cause?: unknown;
3151
+ };
3152
+ hasInner(obj: any): obj is {
3153
+ readonly tag: PsbtError_Tags.NegativeFee;
3154
+ /**
3155
+ * @private
3156
+ * This field is private and should not be used, use `tag` instead.
3157
+ */
3158
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3159
+ name: string;
3160
+ message: string;
3161
+ stack?: string;
3162
+ cause?: unknown;
3163
+ };
3164
+ };
3165
+ FeeOverflow: {
3166
+ new (): {
3167
+ readonly tag: PsbtError_Tags.FeeOverflow;
3168
+ /**
3169
+ * @private
3170
+ * This field is private and should not be used, use `tag` instead.
3171
+ */
3172
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3173
+ name: string;
3174
+ message: string;
3175
+ stack?: string;
3176
+ cause?: unknown;
3177
+ };
3178
+ "new"(): {
3179
+ readonly tag: PsbtError_Tags.FeeOverflow;
3180
+ /**
3181
+ * @private
3182
+ * This field is private and should not be used, use `tag` instead.
3183
+ */
3184
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3185
+ name: string;
3186
+ message: string;
3187
+ stack?: string;
3188
+ cause?: unknown;
3189
+ };
3190
+ instanceOf(obj: any): obj is {
3191
+ readonly tag: PsbtError_Tags.FeeOverflow;
3192
+ /**
3193
+ * @private
3194
+ * This field is private and should not be used, use `tag` instead.
3195
+ */
3196
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3197
+ name: string;
3198
+ message: string;
3199
+ stack?: string;
3200
+ cause?: unknown;
3201
+ };
3202
+ hasInner(obj: any): obj is {
3203
+ readonly tag: PsbtError_Tags.FeeOverflow;
3204
+ /**
3205
+ * @private
3206
+ * This field is private and should not be used, use `tag` instead.
3207
+ */
3208
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3209
+ name: string;
3210
+ message: string;
3211
+ stack?: string;
3212
+ cause?: unknown;
3213
+ };
3214
+ };
3215
+ InvalidPublicKey: {
3216
+ new (inner: {
3217
+ errorMessage: string;
3218
+ }): {
3219
+ readonly tag: PsbtError_Tags.InvalidPublicKey;
3220
+ readonly inner: Readonly<{
3221
+ errorMessage: string;
3222
+ }>;
3223
+ /**
3224
+ * @private
3225
+ * This field is private and should not be used, use `tag` instead.
3226
+ */
3227
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3228
+ name: string;
3229
+ message: string;
3230
+ stack?: string;
3231
+ cause?: unknown;
3232
+ };
3233
+ "new"(inner: {
3234
+ errorMessage: string;
3235
+ }): {
3236
+ readonly tag: PsbtError_Tags.InvalidPublicKey;
3237
+ readonly inner: Readonly<{
3238
+ errorMessage: string;
3239
+ }>;
3240
+ /**
3241
+ * @private
3242
+ * This field is private and should not be used, use `tag` instead.
3243
+ */
3244
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3245
+ name: string;
3246
+ message: string;
3247
+ stack?: string;
3248
+ cause?: unknown;
3249
+ };
3250
+ instanceOf(obj: any): obj is {
3251
+ readonly tag: PsbtError_Tags.InvalidPublicKey;
3252
+ readonly inner: Readonly<{
3253
+ errorMessage: string;
3254
+ }>;
3255
+ /**
3256
+ * @private
3257
+ * This field is private and should not be used, use `tag` instead.
3258
+ */
3259
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3260
+ name: string;
3261
+ message: string;
3262
+ stack?: string;
3263
+ cause?: unknown;
3264
+ };
3265
+ hasInner(obj: any): obj is {
3266
+ readonly tag: PsbtError_Tags.InvalidPublicKey;
3267
+ readonly inner: Readonly<{
3268
+ errorMessage: string;
3269
+ }>;
3270
+ /**
3271
+ * @private
3272
+ * This field is private and should not be used, use `tag` instead.
3273
+ */
3274
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3275
+ name: string;
3276
+ message: string;
3277
+ stack?: string;
3278
+ cause?: unknown;
3279
+ };
3280
+ getInner(obj: {
3281
+ readonly tag: PsbtError_Tags.InvalidPublicKey;
3282
+ readonly inner: Readonly<{
3283
+ errorMessage: string;
3284
+ }>;
3285
+ /**
3286
+ * @private
3287
+ * This field is private and should not be used, use `tag` instead.
3288
+ */
3289
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3290
+ name: string;
3291
+ message: string;
3292
+ stack?: string;
3293
+ cause?: unknown;
3294
+ }): Readonly<{
3295
+ errorMessage: string;
3296
+ }>;
3297
+ };
3298
+ InvalidSecp256k1PublicKey: {
3299
+ new (inner: {
3300
+ secp256k1Error: string;
3301
+ }): {
3302
+ readonly tag: PsbtError_Tags.InvalidSecp256k1PublicKey;
3303
+ readonly inner: Readonly<{
3304
+ secp256k1Error: string;
3305
+ }>;
3306
+ /**
3307
+ * @private
3308
+ * This field is private and should not be used, use `tag` instead.
3309
+ */
3310
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3311
+ name: string;
3312
+ message: string;
3313
+ stack?: string;
3314
+ cause?: unknown;
3315
+ };
3316
+ "new"(inner: {
3317
+ secp256k1Error: string;
3318
+ }): {
3319
+ readonly tag: PsbtError_Tags.InvalidSecp256k1PublicKey;
3320
+ readonly inner: Readonly<{
3321
+ secp256k1Error: string;
3322
+ }>;
3323
+ /**
3324
+ * @private
3325
+ * This field is private and should not be used, use `tag` instead.
3326
+ */
3327
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3328
+ name: string;
3329
+ message: string;
3330
+ stack?: string;
3331
+ cause?: unknown;
3332
+ };
3333
+ instanceOf(obj: any): obj is {
3334
+ readonly tag: PsbtError_Tags.InvalidSecp256k1PublicKey;
3335
+ readonly inner: Readonly<{
3336
+ secp256k1Error: string;
3337
+ }>;
3338
+ /**
3339
+ * @private
3340
+ * This field is private and should not be used, use `tag` instead.
3341
+ */
3342
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3343
+ name: string;
3344
+ message: string;
3345
+ stack?: string;
3346
+ cause?: unknown;
3347
+ };
3348
+ hasInner(obj: any): obj is {
3349
+ readonly tag: PsbtError_Tags.InvalidSecp256k1PublicKey;
3350
+ readonly inner: Readonly<{
3351
+ secp256k1Error: string;
3352
+ }>;
3353
+ /**
3354
+ * @private
3355
+ * This field is private and should not be used, use `tag` instead.
3356
+ */
3357
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3358
+ name: string;
3359
+ message: string;
3360
+ stack?: string;
3361
+ cause?: unknown;
3362
+ };
3363
+ getInner(obj: {
3364
+ readonly tag: PsbtError_Tags.InvalidSecp256k1PublicKey;
3365
+ readonly inner: Readonly<{
3366
+ secp256k1Error: string;
3367
+ }>;
3368
+ /**
3369
+ * @private
3370
+ * This field is private and should not be used, use `tag` instead.
3371
+ */
3372
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3373
+ name: string;
3374
+ message: string;
3375
+ stack?: string;
3376
+ cause?: unknown;
3377
+ }): Readonly<{
3378
+ secp256k1Error: string;
3379
+ }>;
3380
+ };
3381
+ InvalidXOnlyPublicKey: {
3382
+ new (): {
3383
+ readonly tag: PsbtError_Tags.InvalidXOnlyPublicKey;
3384
+ /**
3385
+ * @private
3386
+ * This field is private and should not be used, use `tag` instead.
3387
+ */
3388
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3389
+ name: string;
3390
+ message: string;
3391
+ stack?: string;
3392
+ cause?: unknown;
3393
+ };
3394
+ "new"(): {
3395
+ readonly tag: PsbtError_Tags.InvalidXOnlyPublicKey;
3396
+ /**
3397
+ * @private
3398
+ * This field is private and should not be used, use `tag` instead.
3399
+ */
3400
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3401
+ name: string;
3402
+ message: string;
3403
+ stack?: string;
3404
+ cause?: unknown;
3405
+ };
3406
+ instanceOf(obj: any): obj is {
3407
+ readonly tag: PsbtError_Tags.InvalidXOnlyPublicKey;
3408
+ /**
3409
+ * @private
3410
+ * This field is private and should not be used, use `tag` instead.
3411
+ */
3412
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3413
+ name: string;
3414
+ message: string;
3415
+ stack?: string;
3416
+ cause?: unknown;
3417
+ };
3418
+ hasInner(obj: any): obj is {
3419
+ readonly tag: PsbtError_Tags.InvalidXOnlyPublicKey;
3420
+ /**
3421
+ * @private
3422
+ * This field is private and should not be used, use `tag` instead.
3423
+ */
3424
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3425
+ name: string;
3426
+ message: string;
3427
+ stack?: string;
3428
+ cause?: unknown;
3429
+ };
3430
+ };
3431
+ InvalidEcdsaSignature: {
3432
+ new (inner: {
3433
+ errorMessage: string;
3434
+ }): {
3435
+ readonly tag: PsbtError_Tags.InvalidEcdsaSignature;
3436
+ readonly inner: Readonly<{
3437
+ errorMessage: string;
3438
+ }>;
3439
+ /**
3440
+ * @private
3441
+ * This field is private and should not be used, use `tag` instead.
3442
+ */
3443
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3444
+ name: string;
3445
+ message: string;
3446
+ stack?: string;
3447
+ cause?: unknown;
3448
+ };
3449
+ "new"(inner: {
3450
+ errorMessage: string;
3451
+ }): {
3452
+ readonly tag: PsbtError_Tags.InvalidEcdsaSignature;
3453
+ readonly inner: Readonly<{
3454
+ errorMessage: string;
3455
+ }>;
3456
+ /**
3457
+ * @private
3458
+ * This field is private and should not be used, use `tag` instead.
3459
+ */
3460
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3461
+ name: string;
3462
+ message: string;
3463
+ stack?: string;
3464
+ cause?: unknown;
3465
+ };
3466
+ instanceOf(obj: any): obj is {
3467
+ readonly tag: PsbtError_Tags.InvalidEcdsaSignature;
3468
+ readonly inner: Readonly<{
3469
+ errorMessage: string;
3470
+ }>;
3471
+ /**
3472
+ * @private
3473
+ * This field is private and should not be used, use `tag` instead.
3474
+ */
3475
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3476
+ name: string;
3477
+ message: string;
3478
+ stack?: string;
3479
+ cause?: unknown;
3480
+ };
3481
+ hasInner(obj: any): obj is {
3482
+ readonly tag: PsbtError_Tags.InvalidEcdsaSignature;
3483
+ readonly inner: Readonly<{
3484
+ errorMessage: string;
3485
+ }>;
3486
+ /**
3487
+ * @private
3488
+ * This field is private and should not be used, use `tag` instead.
3489
+ */
3490
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3491
+ name: string;
3492
+ message: string;
3493
+ stack?: string;
3494
+ cause?: unknown;
3495
+ };
3496
+ getInner(obj: {
3497
+ readonly tag: PsbtError_Tags.InvalidEcdsaSignature;
3498
+ readonly inner: Readonly<{
3499
+ errorMessage: string;
3500
+ }>;
3501
+ /**
3502
+ * @private
3503
+ * This field is private and should not be used, use `tag` instead.
3504
+ */
3505
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3506
+ name: string;
3507
+ message: string;
3508
+ stack?: string;
3509
+ cause?: unknown;
3510
+ }): Readonly<{
3511
+ errorMessage: string;
3512
+ }>;
3513
+ };
3514
+ InvalidTaprootSignature: {
3515
+ new (inner: {
3516
+ errorMessage: string;
3517
+ }): {
3518
+ readonly tag: PsbtError_Tags.InvalidTaprootSignature;
3519
+ readonly inner: Readonly<{
3520
+ errorMessage: string;
3521
+ }>;
3522
+ /**
3523
+ * @private
3524
+ * This field is private and should not be used, use `tag` instead.
3525
+ */
3526
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3527
+ name: string;
3528
+ message: string;
3529
+ stack?: string;
3530
+ cause?: unknown;
3531
+ };
3532
+ "new"(inner: {
3533
+ errorMessage: string;
3534
+ }): {
3535
+ readonly tag: PsbtError_Tags.InvalidTaprootSignature;
3536
+ readonly inner: Readonly<{
3537
+ errorMessage: string;
3538
+ }>;
3539
+ /**
3540
+ * @private
3541
+ * This field is private and should not be used, use `tag` instead.
3542
+ */
3543
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3544
+ name: string;
3545
+ message: string;
3546
+ stack?: string;
3547
+ cause?: unknown;
3548
+ };
3549
+ instanceOf(obj: any): obj is {
3550
+ readonly tag: PsbtError_Tags.InvalidTaprootSignature;
3551
+ readonly inner: Readonly<{
3552
+ errorMessage: string;
3553
+ }>;
3554
+ /**
3555
+ * @private
3556
+ * This field is private and should not be used, use `tag` instead.
3557
+ */
3558
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3559
+ name: string;
3560
+ message: string;
3561
+ stack?: string;
3562
+ cause?: unknown;
3563
+ };
3564
+ hasInner(obj: any): obj is {
3565
+ readonly tag: PsbtError_Tags.InvalidTaprootSignature;
3566
+ readonly inner: Readonly<{
3567
+ errorMessage: string;
3568
+ }>;
3569
+ /**
3570
+ * @private
3571
+ * This field is private and should not be used, use `tag` instead.
3572
+ */
3573
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3574
+ name: string;
3575
+ message: string;
3576
+ stack?: string;
3577
+ cause?: unknown;
3578
+ };
3579
+ getInner(obj: {
3580
+ readonly tag: PsbtError_Tags.InvalidTaprootSignature;
3581
+ readonly inner: Readonly<{
3582
+ errorMessage: string;
3583
+ }>;
3584
+ /**
3585
+ * @private
3586
+ * This field is private and should not be used, use `tag` instead.
3587
+ */
3588
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3589
+ name: string;
3590
+ message: string;
3591
+ stack?: string;
3592
+ cause?: unknown;
3593
+ }): Readonly<{
3594
+ errorMessage: string;
3595
+ }>;
3596
+ };
3597
+ InvalidControlBlock: {
3598
+ new (): {
3599
+ readonly tag: PsbtError_Tags.InvalidControlBlock;
3600
+ /**
3601
+ * @private
3602
+ * This field is private and should not be used, use `tag` instead.
3603
+ */
3604
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3605
+ name: string;
3606
+ message: string;
3607
+ stack?: string;
3608
+ cause?: unknown;
3609
+ };
3610
+ "new"(): {
3611
+ readonly tag: PsbtError_Tags.InvalidControlBlock;
3612
+ /**
3613
+ * @private
3614
+ * This field is private and should not be used, use `tag` instead.
3615
+ */
3616
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3617
+ name: string;
3618
+ message: string;
3619
+ stack?: string;
3620
+ cause?: unknown;
3621
+ };
3622
+ instanceOf(obj: any): obj is {
3623
+ readonly tag: PsbtError_Tags.InvalidControlBlock;
3624
+ /**
3625
+ * @private
3626
+ * This field is private and should not be used, use `tag` instead.
3627
+ */
3628
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3629
+ name: string;
3630
+ message: string;
3631
+ stack?: string;
3632
+ cause?: unknown;
3633
+ };
3634
+ hasInner(obj: any): obj is {
3635
+ readonly tag: PsbtError_Tags.InvalidControlBlock;
3636
+ /**
3637
+ * @private
3638
+ * This field is private and should not be used, use `tag` instead.
3639
+ */
3640
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3641
+ name: string;
3642
+ message: string;
3643
+ stack?: string;
3644
+ cause?: unknown;
3645
+ };
3646
+ };
3647
+ InvalidLeafVersion: {
3648
+ new (): {
3649
+ readonly tag: PsbtError_Tags.InvalidLeafVersion;
3650
+ /**
3651
+ * @private
3652
+ * This field is private and should not be used, use `tag` instead.
3653
+ */
3654
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3655
+ name: string;
3656
+ message: string;
3657
+ stack?: string;
3658
+ cause?: unknown;
3659
+ };
3660
+ "new"(): {
3661
+ readonly tag: PsbtError_Tags.InvalidLeafVersion;
3662
+ /**
3663
+ * @private
3664
+ * This field is private and should not be used, use `tag` instead.
3665
+ */
3666
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3667
+ name: string;
3668
+ message: string;
3669
+ stack?: string;
3670
+ cause?: unknown;
3671
+ };
3672
+ instanceOf(obj: any): obj is {
3673
+ readonly tag: PsbtError_Tags.InvalidLeafVersion;
3674
+ /**
3675
+ * @private
3676
+ * This field is private and should not be used, use `tag` instead.
3677
+ */
3678
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3679
+ name: string;
3680
+ message: string;
3681
+ stack?: string;
3682
+ cause?: unknown;
3683
+ };
3684
+ hasInner(obj: any): obj is {
3685
+ readonly tag: PsbtError_Tags.InvalidLeafVersion;
3686
+ /**
3687
+ * @private
3688
+ * This field is private and should not be used, use `tag` instead.
3689
+ */
3690
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3691
+ name: string;
3692
+ message: string;
3693
+ stack?: string;
3694
+ cause?: unknown;
3695
+ };
3696
+ };
3697
+ Taproot: {
3698
+ new (): {
3699
+ readonly tag: PsbtError_Tags.Taproot;
3700
+ /**
3701
+ * @private
3702
+ * This field is private and should not be used, use `tag` instead.
3703
+ */
3704
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3705
+ name: string;
3706
+ message: string;
3707
+ stack?: string;
3708
+ cause?: unknown;
3709
+ };
3710
+ "new"(): {
3711
+ readonly tag: PsbtError_Tags.Taproot;
3712
+ /**
3713
+ * @private
3714
+ * This field is private and should not be used, use `tag` instead.
3715
+ */
3716
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3717
+ name: string;
3718
+ message: string;
3719
+ stack?: string;
3720
+ cause?: unknown;
3721
+ };
3722
+ instanceOf(obj: any): obj is {
3723
+ readonly tag: PsbtError_Tags.Taproot;
3724
+ /**
3725
+ * @private
3726
+ * This field is private and should not be used, use `tag` instead.
3727
+ */
3728
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3729
+ name: string;
3730
+ message: string;
3731
+ stack?: string;
3732
+ cause?: unknown;
3733
+ };
3734
+ hasInner(obj: any): obj is {
3735
+ readonly tag: PsbtError_Tags.Taproot;
3736
+ /**
3737
+ * @private
3738
+ * This field is private and should not be used, use `tag` instead.
3739
+ */
3740
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3741
+ name: string;
3742
+ message: string;
3743
+ stack?: string;
3744
+ cause?: unknown;
3745
+ };
3746
+ };
3747
+ TapTree: {
3748
+ new (inner: {
3749
+ errorMessage: string;
3750
+ }): {
3751
+ readonly tag: PsbtError_Tags.TapTree;
3752
+ readonly inner: Readonly<{
3753
+ errorMessage: string;
3754
+ }>;
3755
+ /**
3756
+ * @private
3757
+ * This field is private and should not be used, use `tag` instead.
3758
+ */
3759
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3760
+ name: string;
3761
+ message: string;
3762
+ stack?: string;
3763
+ cause?: unknown;
3764
+ };
3765
+ "new"(inner: {
3766
+ errorMessage: string;
3767
+ }): {
3768
+ readonly tag: PsbtError_Tags.TapTree;
3769
+ readonly inner: Readonly<{
3770
+ errorMessage: string;
3771
+ }>;
3772
+ /**
3773
+ * @private
3774
+ * This field is private and should not be used, use `tag` instead.
3775
+ */
3776
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3777
+ name: string;
3778
+ message: string;
3779
+ stack?: string;
3780
+ cause?: unknown;
3781
+ };
3782
+ instanceOf(obj: any): obj is {
3783
+ readonly tag: PsbtError_Tags.TapTree;
3784
+ readonly inner: Readonly<{
3785
+ errorMessage: string;
3786
+ }>;
3787
+ /**
3788
+ * @private
3789
+ * This field is private and should not be used, use `tag` instead.
3790
+ */
3791
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3792
+ name: string;
3793
+ message: string;
3794
+ stack?: string;
3795
+ cause?: unknown;
3796
+ };
3797
+ hasInner(obj: any): obj is {
3798
+ readonly tag: PsbtError_Tags.TapTree;
3799
+ readonly inner: Readonly<{
3800
+ errorMessage: string;
3801
+ }>;
3802
+ /**
3803
+ * @private
3804
+ * This field is private and should not be used, use `tag` instead.
3805
+ */
3806
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3807
+ name: string;
3808
+ message: string;
3809
+ stack?: string;
3810
+ cause?: unknown;
3811
+ };
3812
+ getInner(obj: {
3813
+ readonly tag: PsbtError_Tags.TapTree;
3814
+ readonly inner: Readonly<{
3815
+ errorMessage: string;
3816
+ }>;
3817
+ /**
3818
+ * @private
3819
+ * This field is private and should not be used, use `tag` instead.
3820
+ */
3821
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3822
+ name: string;
3823
+ message: string;
3824
+ stack?: string;
3825
+ cause?: unknown;
3826
+ }): Readonly<{
3827
+ errorMessage: string;
3828
+ }>;
3829
+ };
3830
+ XPubKey: {
3831
+ new (): {
3832
+ readonly tag: PsbtError_Tags.XPubKey;
3833
+ /**
3834
+ * @private
3835
+ * This field is private and should not be used, use `tag` instead.
3836
+ */
3837
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3838
+ name: string;
3839
+ message: string;
3840
+ stack?: string;
3841
+ cause?: unknown;
3842
+ };
3843
+ "new"(): {
3844
+ readonly tag: PsbtError_Tags.XPubKey;
3845
+ /**
3846
+ * @private
3847
+ * This field is private and should not be used, use `tag` instead.
3848
+ */
3849
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3850
+ name: string;
3851
+ message: string;
3852
+ stack?: string;
3853
+ cause?: unknown;
3854
+ };
3855
+ instanceOf(obj: any): obj is {
3856
+ readonly tag: PsbtError_Tags.XPubKey;
3857
+ /**
3858
+ * @private
3859
+ * This field is private and should not be used, use `tag` instead.
3860
+ */
3861
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3862
+ name: string;
3863
+ message: string;
3864
+ stack?: string;
3865
+ cause?: unknown;
3866
+ };
3867
+ hasInner(obj: any): obj is {
3868
+ readonly tag: PsbtError_Tags.XPubKey;
3869
+ /**
3870
+ * @private
3871
+ * This field is private and should not be used, use `tag` instead.
3872
+ */
3873
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3874
+ name: string;
3875
+ message: string;
3876
+ stack?: string;
3877
+ cause?: unknown;
3878
+ };
3879
+ };
3880
+ Version: {
3881
+ new (inner: {
3882
+ errorMessage: string;
3883
+ }): {
3884
+ readonly tag: PsbtError_Tags.Version;
3885
+ readonly inner: Readonly<{
3886
+ errorMessage: string;
3887
+ }>;
3888
+ /**
3889
+ * @private
3890
+ * This field is private and should not be used, use `tag` instead.
3891
+ */
3892
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3893
+ name: string;
3894
+ message: string;
3895
+ stack?: string;
3896
+ cause?: unknown;
3897
+ };
3898
+ "new"(inner: {
3899
+ errorMessage: string;
3900
+ }): {
3901
+ readonly tag: PsbtError_Tags.Version;
3902
+ readonly inner: Readonly<{
3903
+ errorMessage: string;
3904
+ }>;
3905
+ /**
3906
+ * @private
3907
+ * This field is private and should not be used, use `tag` instead.
3908
+ */
3909
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3910
+ name: string;
3911
+ message: string;
3912
+ stack?: string;
3913
+ cause?: unknown;
3914
+ };
3915
+ instanceOf(obj: any): obj is {
3916
+ readonly tag: PsbtError_Tags.Version;
3917
+ readonly inner: Readonly<{
3918
+ errorMessage: string;
3919
+ }>;
3920
+ /**
3921
+ * @private
3922
+ * This field is private and should not be used, use `tag` instead.
3923
+ */
3924
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3925
+ name: string;
3926
+ message: string;
3927
+ stack?: string;
3928
+ cause?: unknown;
3929
+ };
3930
+ hasInner(obj: any): obj is {
3931
+ readonly tag: PsbtError_Tags.Version;
3932
+ readonly inner: Readonly<{
3933
+ errorMessage: string;
3934
+ }>;
3935
+ /**
3936
+ * @private
3937
+ * This field is private and should not be used, use `tag` instead.
3938
+ */
3939
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3940
+ name: string;
3941
+ message: string;
3942
+ stack?: string;
3943
+ cause?: unknown;
3944
+ };
3945
+ getInner(obj: {
3946
+ readonly tag: PsbtError_Tags.Version;
3947
+ readonly inner: Readonly<{
3948
+ errorMessage: string;
3949
+ }>;
3950
+ /**
3951
+ * @private
3952
+ * This field is private and should not be used, use `tag` instead.
3953
+ */
3954
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3955
+ name: string;
3956
+ message: string;
3957
+ stack?: string;
3958
+ cause?: unknown;
3959
+ }): Readonly<{
3960
+ errorMessage: string;
3961
+ }>;
3962
+ };
3963
+ PartialDataConsumption: {
3964
+ new (): {
3965
+ readonly tag: PsbtError_Tags.PartialDataConsumption;
3966
+ /**
3967
+ * @private
3968
+ * This field is private and should not be used, use `tag` instead.
3969
+ */
3970
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3971
+ name: string;
3972
+ message: string;
3973
+ stack?: string;
3974
+ cause?: unknown;
3975
+ };
3976
+ "new"(): {
3977
+ readonly tag: PsbtError_Tags.PartialDataConsumption;
3978
+ /**
3979
+ * @private
3980
+ * This field is private and should not be used, use `tag` instead.
3981
+ */
3982
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3983
+ name: string;
3984
+ message: string;
3985
+ stack?: string;
3986
+ cause?: unknown;
3987
+ };
3988
+ instanceOf(obj: any): obj is {
3989
+ readonly tag: PsbtError_Tags.PartialDataConsumption;
3990
+ /**
3991
+ * @private
3992
+ * This field is private and should not be used, use `tag` instead.
3993
+ */
3994
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
3995
+ name: string;
3996
+ message: string;
3997
+ stack?: string;
3998
+ cause?: unknown;
3999
+ };
4000
+ hasInner(obj: any): obj is {
4001
+ readonly tag: PsbtError_Tags.PartialDataConsumption;
4002
+ /**
4003
+ * @private
4004
+ * This field is private and should not be used, use `tag` instead.
4005
+ */
4006
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
4007
+ name: string;
4008
+ message: string;
4009
+ stack?: string;
4010
+ cause?: unknown;
4011
+ };
4012
+ };
4013
+ Io: {
4014
+ new (inner: {
4015
+ errorMessage: string;
4016
+ }): {
4017
+ readonly tag: PsbtError_Tags.Io;
4018
+ readonly inner: Readonly<{
4019
+ errorMessage: string;
4020
+ }>;
4021
+ /**
4022
+ * @private
4023
+ * This field is private and should not be used, use `tag` instead.
4024
+ */
4025
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
4026
+ name: string;
4027
+ message: string;
4028
+ stack?: string;
4029
+ cause?: unknown;
4030
+ };
4031
+ "new"(inner: {
4032
+ errorMessage: string;
4033
+ }): {
4034
+ readonly tag: PsbtError_Tags.Io;
4035
+ readonly inner: Readonly<{
4036
+ errorMessage: string;
4037
+ }>;
4038
+ /**
4039
+ * @private
4040
+ * This field is private and should not be used, use `tag` instead.
4041
+ */
4042
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
4043
+ name: string;
4044
+ message: string;
4045
+ stack?: string;
4046
+ cause?: unknown;
4047
+ };
4048
+ instanceOf(obj: any): obj is {
4049
+ readonly tag: PsbtError_Tags.Io;
4050
+ readonly inner: Readonly<{
4051
+ errorMessage: string;
4052
+ }>;
4053
+ /**
4054
+ * @private
4055
+ * This field is private and should not be used, use `tag` instead.
4056
+ */
4057
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
4058
+ name: string;
4059
+ message: string;
4060
+ stack?: string;
4061
+ cause?: unknown;
4062
+ };
4063
+ hasInner(obj: any): obj is {
4064
+ readonly tag: PsbtError_Tags.Io;
4065
+ readonly inner: Readonly<{
4066
+ errorMessage: string;
4067
+ }>;
4068
+ /**
4069
+ * @private
4070
+ * This field is private and should not be used, use `tag` instead.
4071
+ */
4072
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
4073
+ name: string;
4074
+ message: string;
4075
+ stack?: string;
4076
+ cause?: unknown;
4077
+ };
4078
+ getInner(obj: {
4079
+ readonly tag: PsbtError_Tags.Io;
4080
+ readonly inner: Readonly<{
4081
+ errorMessage: string;
4082
+ }>;
4083
+ /**
4084
+ * @private
4085
+ * This field is private and should not be used, use `tag` instead.
4086
+ */
4087
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
4088
+ name: string;
4089
+ message: string;
4090
+ stack?: string;
4091
+ cause?: unknown;
4092
+ }): Readonly<{
4093
+ errorMessage: string;
4094
+ }>;
4095
+ };
4096
+ OtherPsbtErr: {
4097
+ new (): {
4098
+ readonly tag: PsbtError_Tags.OtherPsbtErr;
4099
+ /**
4100
+ * @private
4101
+ * This field is private and should not be used, use `tag` instead.
4102
+ */
4103
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
4104
+ name: string;
4105
+ message: string;
4106
+ stack?: string;
4107
+ cause?: unknown;
4108
+ };
4109
+ "new"(): {
4110
+ readonly tag: PsbtError_Tags.OtherPsbtErr;
4111
+ /**
4112
+ * @private
4113
+ * This field is private and should not be used, use `tag` instead.
4114
+ */
4115
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
4116
+ name: string;
4117
+ message: string;
4118
+ stack?: string;
4119
+ cause?: unknown;
4120
+ };
4121
+ instanceOf(obj: any): obj is {
4122
+ readonly tag: PsbtError_Tags.OtherPsbtErr;
4123
+ /**
4124
+ * @private
4125
+ * This field is private and should not be used, use `tag` instead.
4126
+ */
4127
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
4128
+ name: string;
4129
+ message: string;
4130
+ stack?: string;
4131
+ cause?: unknown;
4132
+ };
4133
+ hasInner(obj: any): obj is {
4134
+ readonly tag: PsbtError_Tags.OtherPsbtErr;
4135
+ /**
4136
+ * @private
4137
+ * This field is private and should not be used, use `tag` instead.
4138
+ */
4139
+ readonly [uniffiTypeNameSymbol]: "PsbtError";
4140
+ name: string;
4141
+ message: string;
4142
+ stack?: string;
4143
+ cause?: unknown;
4144
+ };
4145
+ };
4146
+ }>;
4147
+ export type PsbtError = InstanceType<(typeof PsbtError)[keyof Omit<typeof PsbtError, "instanceOf">]>;
4148
+ export declare enum PsbtParseError_Tags {
4149
+ PsbtEncoding = "PsbtEncoding",
4150
+ Base64Encoding = "Base64Encoding"
4151
+ }
4152
+ export declare const PsbtParseError: Readonly<{
4153
+ instanceOf: (obj: any) => obj is PsbtParseError;
4154
+ PsbtEncoding: {
4155
+ new (inner: {
4156
+ errorMessage: string;
4157
+ }): {
4158
+ readonly tag: PsbtParseError_Tags.PsbtEncoding;
4159
+ readonly inner: Readonly<{
4160
+ errorMessage: string;
4161
+ }>;
4162
+ /**
4163
+ * @private
4164
+ * This field is private and should not be used, use `tag` instead.
4165
+ */
4166
+ readonly [uniffiTypeNameSymbol]: "PsbtParseError";
4167
+ name: string;
4168
+ message: string;
4169
+ stack?: string;
4170
+ cause?: unknown;
4171
+ };
4172
+ "new"(inner: {
4173
+ errorMessage: string;
4174
+ }): {
4175
+ readonly tag: PsbtParseError_Tags.PsbtEncoding;
4176
+ readonly inner: Readonly<{
4177
+ errorMessage: string;
4178
+ }>;
4179
+ /**
4180
+ * @private
4181
+ * This field is private and should not be used, use `tag` instead.
4182
+ */
4183
+ readonly [uniffiTypeNameSymbol]: "PsbtParseError";
4184
+ name: string;
4185
+ message: string;
4186
+ stack?: string;
4187
+ cause?: unknown;
4188
+ };
4189
+ instanceOf(obj: any): obj is {
4190
+ readonly tag: PsbtParseError_Tags.PsbtEncoding;
4191
+ readonly inner: Readonly<{
4192
+ errorMessage: string;
4193
+ }>;
4194
+ /**
4195
+ * @private
4196
+ * This field is private and should not be used, use `tag` instead.
4197
+ */
4198
+ readonly [uniffiTypeNameSymbol]: "PsbtParseError";
4199
+ name: string;
4200
+ message: string;
4201
+ stack?: string;
4202
+ cause?: unknown;
4203
+ };
4204
+ hasInner(obj: any): obj is {
4205
+ readonly tag: PsbtParseError_Tags.PsbtEncoding;
4206
+ readonly inner: Readonly<{
4207
+ errorMessage: string;
4208
+ }>;
4209
+ /**
4210
+ * @private
4211
+ * This field is private and should not be used, use `tag` instead.
4212
+ */
4213
+ readonly [uniffiTypeNameSymbol]: "PsbtParseError";
4214
+ name: string;
4215
+ message: string;
4216
+ stack?: string;
4217
+ cause?: unknown;
4218
+ };
4219
+ getInner(obj: {
4220
+ readonly tag: PsbtParseError_Tags.PsbtEncoding;
4221
+ readonly inner: Readonly<{
4222
+ errorMessage: string;
4223
+ }>;
4224
+ /**
4225
+ * @private
4226
+ * This field is private and should not be used, use `tag` instead.
4227
+ */
4228
+ readonly [uniffiTypeNameSymbol]: "PsbtParseError";
4229
+ name: string;
4230
+ message: string;
4231
+ stack?: string;
4232
+ cause?: unknown;
4233
+ }): Readonly<{
4234
+ errorMessage: string;
4235
+ }>;
4236
+ };
4237
+ Base64Encoding: {
4238
+ new (inner: {
4239
+ errorMessage: string;
4240
+ }): {
4241
+ readonly tag: PsbtParseError_Tags.Base64Encoding;
4242
+ readonly inner: Readonly<{
4243
+ errorMessage: string;
4244
+ }>;
4245
+ /**
4246
+ * @private
4247
+ * This field is private and should not be used, use `tag` instead.
4248
+ */
4249
+ readonly [uniffiTypeNameSymbol]: "PsbtParseError";
4250
+ name: string;
4251
+ message: string;
4252
+ stack?: string;
4253
+ cause?: unknown;
4254
+ };
4255
+ "new"(inner: {
4256
+ errorMessage: string;
4257
+ }): {
4258
+ readonly tag: PsbtParseError_Tags.Base64Encoding;
4259
+ readonly inner: Readonly<{
4260
+ errorMessage: string;
4261
+ }>;
4262
+ /**
4263
+ * @private
4264
+ * This field is private and should not be used, use `tag` instead.
4265
+ */
4266
+ readonly [uniffiTypeNameSymbol]: "PsbtParseError";
4267
+ name: string;
4268
+ message: string;
4269
+ stack?: string;
4270
+ cause?: unknown;
4271
+ };
4272
+ instanceOf(obj: any): obj is {
4273
+ readonly tag: PsbtParseError_Tags.Base64Encoding;
4274
+ readonly inner: Readonly<{
4275
+ errorMessage: string;
4276
+ }>;
4277
+ /**
4278
+ * @private
4279
+ * This field is private and should not be used, use `tag` instead.
4280
+ */
4281
+ readonly [uniffiTypeNameSymbol]: "PsbtParseError";
4282
+ name: string;
4283
+ message: string;
4284
+ stack?: string;
4285
+ cause?: unknown;
4286
+ };
4287
+ hasInner(obj: any): obj is {
4288
+ readonly tag: PsbtParseError_Tags.Base64Encoding;
4289
+ readonly inner: Readonly<{
4290
+ errorMessage: string;
4291
+ }>;
4292
+ /**
4293
+ * @private
4294
+ * This field is private and should not be used, use `tag` instead.
4295
+ */
4296
+ readonly [uniffiTypeNameSymbol]: "PsbtParseError";
4297
+ name: string;
4298
+ message: string;
4299
+ stack?: string;
4300
+ cause?: unknown;
4301
+ };
4302
+ getInner(obj: {
4303
+ readonly tag: PsbtParseError_Tags.Base64Encoding;
4304
+ readonly inner: Readonly<{
4305
+ errorMessage: string;
4306
+ }>;
4307
+ /**
4308
+ * @private
4309
+ * This field is private and should not be used, use `tag` instead.
4310
+ */
4311
+ readonly [uniffiTypeNameSymbol]: "PsbtParseError";
4312
+ name: string;
4313
+ message: string;
4314
+ stack?: string;
4315
+ cause?: unknown;
4316
+ }): Readonly<{
4317
+ errorMessage: string;
4318
+ }>;
4319
+ };
4320
+ }>;
4321
+ export type PsbtParseError = InstanceType<(typeof PsbtParseError)[keyof Omit<typeof PsbtParseError, "instanceOf">]>;
4322
+ export interface AddressInterface {
4323
+ isValidForNetwork(network: Network): boolean;
4324
+ scriptPubkey(): ScriptInterface;
4325
+ toQrUri(): string;
4326
+ }
4327
+ export declare class Address extends UniffiAbstractObject implements AddressInterface {
4328
+ readonly [uniffiTypeNameSymbol] = "Address";
4329
+ readonly [destructorGuardSymbol]: UniffiRustArcPtr;
4330
+ readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
4331
+ constructor(address: string, network: Network);
4332
+ static fromScript(script: ScriptInterface, network: Network): AddressInterface;
4333
+ isValidForNetwork(network: Network): boolean;
4334
+ scriptPubkey(): ScriptInterface;
4335
+ toQrUri(): string;
4336
+ /**
4337
+ * Calls into the `AddressInterface::to_string()` method of the native Rust peer.
4338
+ *
4339
+ * Generated by deriving the `Display` trait in Rust.
4340
+ */
4341
+ toString(): string;
4342
+ /**
4343
+ * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
4344
+ */
4345
+ uniffiDestroy(): void;
4346
+ static instanceOf(obj: any): obj is Address;
4347
+ }
4348
+ export interface AmountInterface {
4349
+ toBtc(): number;
4350
+ toSat(): bigint;
4351
+ }
4352
+ export declare class Amount extends UniffiAbstractObject implements AmountInterface {
4353
+ readonly [uniffiTypeNameSymbol] = "Amount";
4354
+ readonly [destructorGuardSymbol]: UniffiRustArcPtr;
4355
+ readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
4356
+ private constructor();
4357
+ static fromBtc(btc: number): AmountInterface;
4358
+ static fromSat(sat: bigint): AmountInterface;
4359
+ toBtc(): number;
4360
+ toSat(): bigint;
4361
+ /**
4362
+ * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
4363
+ */
4364
+ uniffiDestroy(): void;
4365
+ static instanceOf(obj: any): obj is Amount;
4366
+ }
4367
+ export interface FeeRateInterface {
4368
+ toSatPerKwu(): bigint;
4369
+ toSatPerVbCeil(): bigint;
4370
+ toSatPerVbFloor(): bigint;
4371
+ }
4372
+ export declare class FeeRate extends UniffiAbstractObject implements FeeRateInterface {
4373
+ readonly [uniffiTypeNameSymbol] = "FeeRate";
4374
+ readonly [destructorGuardSymbol]: UniffiRustArcPtr;
4375
+ readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
4376
+ private constructor();
4377
+ static fromSatPerKwu(satPerKwu: bigint): FeeRateInterface;
4378
+ static fromSatPerVb(satPerVb: bigint): FeeRateInterface;
4379
+ toSatPerKwu(): bigint;
4380
+ toSatPerVbCeil(): bigint;
4381
+ toSatPerVbFloor(): bigint;
4382
+ /**
4383
+ * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
4384
+ */
4385
+ uniffiDestroy(): void;
4386
+ static instanceOf(obj: any): obj is FeeRate;
4387
+ }
4388
+ export interface PsbtInterface {
4389
+ combine(other: PsbtInterface): PsbtInterface;
4390
+ extractTx(): TransactionInterface;
4391
+ fee(): AmountInterface;
4392
+ serialize(): ArrayBuffer;
4393
+ serializeBase64(): string;
4394
+ serializeHex(): string;
4395
+ }
4396
+ export declare class Psbt extends UniffiAbstractObject implements PsbtInterface {
4397
+ readonly [uniffiTypeNameSymbol] = "Psbt";
4398
+ readonly [destructorGuardSymbol]: UniffiRustArcPtr;
4399
+ readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
4400
+ private constructor();
4401
+ static deserialize(psbtBytes: ArrayBuffer): PsbtInterface;
4402
+ static deserializeBase64(psbtBase64: string): PsbtInterface;
4403
+ static fromUnsignedTx(tx: TransactionInterface): PsbtInterface;
4404
+ combine(other: PsbtInterface): PsbtInterface;
4405
+ extractTx(): TransactionInterface;
4406
+ fee(): AmountInterface;
4407
+ serialize(): ArrayBuffer;
4408
+ serializeBase64(): string;
4409
+ serializeHex(): string;
4410
+ /**
4411
+ * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
4412
+ */
4413
+ uniffiDestroy(): void;
4414
+ static instanceOf(obj: any): obj is Psbt;
4415
+ }
4416
+ export interface ScriptInterface {
4417
+ toBytes(): ArrayBuffer;
4418
+ }
4419
+ export declare class Script extends UniffiAbstractObject implements ScriptInterface {
4420
+ readonly [uniffiTypeNameSymbol] = "Script";
4421
+ readonly [destructorGuardSymbol]: UniffiRustArcPtr;
4422
+ readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
4423
+ constructor(rawOutputScript: ArrayBuffer);
4424
+ toBytes(): ArrayBuffer;
4425
+ /**
4426
+ * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
4427
+ */
4428
+ uniffiDestroy(): void;
4429
+ static instanceOf(obj: any): obj is Script;
4430
+ }
4431
+ export interface TransactionInterface {
4432
+ computeTxid(): string;
4433
+ input(): Array<TxIn>;
4434
+ isCoinbase(): boolean;
4435
+ isExplicitlyRbf(): boolean;
4436
+ isLockTimeEnabled(): boolean;
4437
+ lockTime(): number;
4438
+ output(): Array<TxOut>;
4439
+ serialize(): ArrayBuffer;
4440
+ totalSize(): bigint;
4441
+ version(): number;
4442
+ vsize(): bigint;
4443
+ weight(): bigint;
4444
+ }
4445
+ export declare class Transaction extends UniffiAbstractObject implements TransactionInterface {
4446
+ readonly [uniffiTypeNameSymbol] = "Transaction";
4447
+ readonly [destructorGuardSymbol]: UniffiRustArcPtr;
4448
+ readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
4449
+ private constructor();
4450
+ static deserialize(transactionBytes: ArrayBuffer): TransactionInterface;
4451
+ computeTxid(): string;
4452
+ input(): Array<TxIn>;
4453
+ isCoinbase(): boolean;
4454
+ isExplicitlyRbf(): boolean;
4455
+ isLockTimeEnabled(): boolean;
4456
+ lockTime(): number;
4457
+ output(): Array<TxOut>;
4458
+ serialize(): ArrayBuffer;
4459
+ totalSize(): bigint;
4460
+ version(): number;
4461
+ vsize(): bigint;
4462
+ weight(): bigint;
4463
+ /**
4464
+ * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
4465
+ */
4466
+ uniffiDestroy(): void;
4467
+ static instanceOf(obj: any): obj is Transaction;
4468
+ }
4469
+ /**
4470
+ * This should be called before anything else.
4471
+ *
4472
+ * It is likely that this is being done for you by the library's `index.ts`.
4473
+ *
4474
+ * It checks versions of uniffi between when the Rust scaffolding was generated
4475
+ * and when the bindings were generated.
4476
+ *
4477
+ * It also initializes the machinery to enable Rust to talk back to Javascript.
4478
+ */
4479
+ declare function uniffiEnsureInitialized(): void;
4480
+ declare const _default: Readonly<{
4481
+ initialize: typeof uniffiEnsureInitialized;
4482
+ converters: {
4483
+ FfiConverterTypeAddress: FfiConverterObject<AddressInterface>;
4484
+ FfiConverterTypeAddressParseError: {
4485
+ read(from: RustBuffer): AddressParseError;
4486
+ write(value: AddressParseError, into: RustBuffer): void;
4487
+ allocationSize(value: AddressParseError): number;
4488
+ lift(value: UniffiByteArray): AddressParseError;
4489
+ lower(value: AddressParseError): UniffiByteArray;
4490
+ };
4491
+ FfiConverterTypeAmount: FfiConverterObject<AmountInterface>;
4492
+ FfiConverterTypeBlockHash: FfiConverter<UniffiByteArray, string>;
4493
+ FfiConverterTypeEncodeError: {
4494
+ read(from: RustBuffer): EncodeError;
4495
+ write(value: EncodeError, into: RustBuffer): void;
4496
+ allocationSize(value: EncodeError): number;
4497
+ lift(value: UniffiByteArray): EncodeError;
4498
+ lower(value: EncodeError): UniffiByteArray;
4499
+ };
4500
+ FfiConverterTypeExtractTxError: {
4501
+ read(from: RustBuffer): ExtractTxError;
4502
+ write(value: ExtractTxError, into: RustBuffer): void;
4503
+ allocationSize(value: ExtractTxError): number;
4504
+ lift(value: UniffiByteArray): ExtractTxError;
4505
+ lower(value: ExtractTxError): UniffiByteArray;
4506
+ };
4507
+ FfiConverterTypeFeeRate: FfiConverterObject<FeeRateInterface>;
4508
+ FfiConverterTypeFeeRateError: {
4509
+ read(from: RustBuffer): {
4510
+ readonly tag: FeeRateError_Tags.ArithmeticOverflow;
4511
+ /**
4512
+ * @private
4513
+ * This field is private and should not be used, use `tag` instead.
4514
+ */
4515
+ readonly [uniffiTypeNameSymbol]: "FeeRateError";
4516
+ name: string;
4517
+ message: string;
4518
+ stack?: string;
4519
+ cause?: unknown;
4520
+ };
4521
+ write(value: {
4522
+ readonly tag: FeeRateError_Tags.ArithmeticOverflow;
4523
+ /**
4524
+ * @private
4525
+ * This field is private and should not be used, use `tag` instead.
4526
+ */
4527
+ readonly [uniffiTypeNameSymbol]: "FeeRateError";
4528
+ name: string;
4529
+ message: string;
4530
+ stack?: string;
4531
+ cause?: unknown;
4532
+ }, into: RustBuffer): void;
4533
+ allocationSize(value: {
4534
+ readonly tag: FeeRateError_Tags.ArithmeticOverflow;
4535
+ /**
4536
+ * @private
4537
+ * This field is private and should not be used, use `tag` instead.
4538
+ */
4539
+ readonly [uniffiTypeNameSymbol]: "FeeRateError";
4540
+ name: string;
4541
+ message: string;
4542
+ stack?: string;
4543
+ cause?: unknown;
4544
+ }): number;
4545
+ lift(value: UniffiByteArray): {
4546
+ readonly tag: FeeRateError_Tags.ArithmeticOverflow;
4547
+ /**
4548
+ * @private
4549
+ * This field is private and should not be used, use `tag` instead.
4550
+ */
4551
+ readonly [uniffiTypeNameSymbol]: "FeeRateError";
4552
+ name: string;
4553
+ message: string;
4554
+ stack?: string;
4555
+ cause?: unknown;
4556
+ };
4557
+ lower(value: {
4558
+ readonly tag: FeeRateError_Tags.ArithmeticOverflow;
4559
+ /**
4560
+ * @private
4561
+ * This field is private and should not be used, use `tag` instead.
4562
+ */
4563
+ readonly [uniffiTypeNameSymbol]: "FeeRateError";
4564
+ name: string;
4565
+ message: string;
4566
+ stack?: string;
4567
+ cause?: unknown;
4568
+ }): UniffiByteArray;
4569
+ };
4570
+ FfiConverterTypeFromScriptError: {
4571
+ read(from: RustBuffer): FromScriptError;
4572
+ write(value: FromScriptError, into: RustBuffer): void;
4573
+ allocationSize(value: FromScriptError): number;
4574
+ lift(value: UniffiByteArray): FromScriptError;
4575
+ lower(value: FromScriptError): UniffiByteArray;
4576
+ };
4577
+ FfiConverterTypeNetwork: {
4578
+ read(from: RustBuffer): Network;
4579
+ write(value: Network, into: RustBuffer): void;
4580
+ allocationSize(value: Network): number;
4581
+ lift(value: UniffiByteArray): Network;
4582
+ lower(value: Network): UniffiByteArray;
4583
+ };
4584
+ FfiConverterTypeOutPoint: {
4585
+ read(from: RustBuffer): OutPoint;
4586
+ write(value: OutPoint, into: RustBuffer): void;
4587
+ allocationSize(value: OutPoint): number;
4588
+ lift(value: UniffiByteArray): OutPoint;
4589
+ lower(value: OutPoint): UniffiByteArray;
4590
+ };
4591
+ FfiConverterTypeParseAmountError: {
4592
+ read(from: RustBuffer): ParseAmountError;
4593
+ write(value: ParseAmountError, into: RustBuffer): void;
4594
+ allocationSize(value: ParseAmountError): number;
4595
+ lift(value: UniffiByteArray): ParseAmountError;
4596
+ lower(value: ParseAmountError): UniffiByteArray;
4597
+ };
4598
+ FfiConverterTypePsbt: FfiConverterObject<PsbtInterface>;
4599
+ FfiConverterTypePsbtError: {
4600
+ read(from: RustBuffer): PsbtError;
4601
+ write(value: PsbtError, into: RustBuffer): void;
4602
+ allocationSize(value: PsbtError): number;
4603
+ lift(value: UniffiByteArray): PsbtError;
4604
+ lower(value: PsbtError): UniffiByteArray;
4605
+ };
4606
+ FfiConverterTypePsbtParseError: {
4607
+ read(from: RustBuffer): PsbtParseError;
4608
+ write(value: PsbtParseError, into: RustBuffer): void;
4609
+ allocationSize(value: PsbtParseError): number;
4610
+ lift(value: UniffiByteArray): PsbtParseError;
4611
+ lower(value: PsbtParseError): UniffiByteArray;
4612
+ };
4613
+ FfiConverterTypeScript: FfiConverterObject<ScriptInterface>;
4614
+ FfiConverterTypeTransaction: FfiConverterObject<TransactionInterface>;
4615
+ FfiConverterTypeTxIn: {
4616
+ read(from: RustBuffer): TxIn;
4617
+ write(value: TxIn, into: RustBuffer): void;
4618
+ allocationSize(value: TxIn): number;
4619
+ lift(value: UniffiByteArray): TxIn;
4620
+ lower(value: TxIn): UniffiByteArray;
4621
+ };
4622
+ FfiConverterTypeTxOut: {
4623
+ read(from: RustBuffer): TxOut;
4624
+ write(value: TxOut, into: RustBuffer): void;
4625
+ allocationSize(value: TxOut): number;
4626
+ lift(value: UniffiByteArray): TxOut;
4627
+ lower(value: TxOut): UniffiByteArray;
4628
+ };
4629
+ FfiConverterTypeTxid: FfiConverter<UniffiByteArray, string>;
4630
+ };
4631
+ }>;
4632
+ export default _default;
4633
+ //# sourceMappingURL=bitcoin.d.ts.map