@secondts/bark-react-native 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { type UniffiGcObject, type UniffiHandle, FfiConverterObject, FfiConverterObjectWithCallbacks, RustBuffer, UniffiAbstractObject, destructorGuardSymbol, pointerLiteralSymbol, uniffiTypeNameSymbol } from "uniffi-bindgen-react-native";
2
+ import { type UniffiGcObject, type UniffiHandle, FfiConverterObject, FfiConverterObjectWithCallbacks, RustBuffer, UniffiAbstractObject, destructorGuardSymbol, pointerLiteralSymbol, uniffiTypeNameSymbol, variantOrdinalSymbol } from "uniffi-bindgen-react-native";
3
3
  /**
4
4
  * Extract a signed transaction from a PSBT
5
5
  *
@@ -38,6 +38,14 @@ export declare function validateMnemonic(mnemonic: string): boolean;
38
38
  * will return an error.
39
39
  */
40
40
  export declare function setLogger(logger: BarkLogger, maxLevel: LogLevel): void;
41
+ /**
42
+ * Low-level function to initialize a wallet
43
+ *
44
+ * You probably want to use [`Wallet::open`] instead.
45
+ */
46
+ export declare function initWallet(network: Network, mnemonicOrSeed: string, config: Config, datadir: string, allowUnreachableServer: boolean, asyncOpts_?: {
47
+ signal: AbortSignal;
48
+ }): Promise<void>;
41
49
  export type AddressWithIndex = {
42
50
  address: string;
43
51
  index: number;
@@ -121,7 +129,6 @@ export type Config = {
121
129
  bitcoindCookiefile?: string;
122
130
  bitcoindUser?: string;
123
131
  bitcoindPass?: string;
124
- network: Network;
125
132
  vtxoRefreshExpiryThreshold?: number;
126
133
  vtxoExitMargin?: number;
127
134
  htlcRecvClaimDelta?: number;
@@ -131,13 +138,14 @@ export type Config = {
131
138
  offboardRequiredConfirmations?: number;
132
139
  daemonManualSync?: boolean;
133
140
  lightningReceiveClaimRetries?: number;
141
+ userAgent?: string;
134
142
  };
135
143
  /**
136
144
  * Generated factory for {@link Config} record objects.
137
145
  */
138
146
  export declare const Config: Readonly<{
139
- create: (partial: Partial<Config> & Required<Omit<Config, "serverAccessToken" | "esploraAddress" | "bitcoindAddress" | "bitcoindCookiefile" | "bitcoindUser" | "bitcoindPass" | "vtxoRefreshExpiryThreshold" | "vtxoExitMargin" | "htlcRecvClaimDelta" | "fallbackFeeRate" | "roundTxRequiredConfirmations" | "daemonSyncIntervalSecs" | "offboardRequiredConfirmations" | "daemonManualSync" | "lightningReceiveClaimRetries">>) => Config;
140
- new: (partial: Partial<Config> & Required<Omit<Config, "serverAccessToken" | "esploraAddress" | "bitcoindAddress" | "bitcoindCookiefile" | "bitcoindUser" | "bitcoindPass" | "vtxoRefreshExpiryThreshold" | "vtxoExitMargin" | "htlcRecvClaimDelta" | "fallbackFeeRate" | "roundTxRequiredConfirmations" | "daemonSyncIntervalSecs" | "offboardRequiredConfirmations" | "daemonManualSync" | "lightningReceiveClaimRetries">>) => Config;
147
+ create: (partial: Partial<Config> & Required<Omit<Config, "serverAccessToken" | "esploraAddress" | "bitcoindAddress" | "bitcoindCookiefile" | "bitcoindUser" | "bitcoindPass" | "vtxoRefreshExpiryThreshold" | "vtxoExitMargin" | "htlcRecvClaimDelta" | "fallbackFeeRate" | "roundTxRequiredConfirmations" | "daemonSyncIntervalSecs" | "offboardRequiredConfirmations" | "daemonManualSync" | "lightningReceiveClaimRetries" | "userAgent">>) => Config;
148
+ new: (partial: Partial<Config> & Required<Omit<Config, "serverAccessToken" | "esploraAddress" | "bitcoindAddress" | "bitcoindCookiefile" | "bitcoindUser" | "bitcoindPass" | "vtxoRefreshExpiryThreshold" | "vtxoExitMargin" | "htlcRecvClaimDelta" | "fallbackFeeRate" | "roundTxRequiredConfirmations" | "daemonSyncIntervalSecs" | "offboardRequiredConfirmations" | "daemonManualSync" | "lightningReceiveClaimRetries" | "userAgent">>) => Config;
141
149
  defaults: () => Partial<Config>;
142
150
  }>;
143
151
  /**
@@ -364,1316 +372,211 @@ export declare const OnchainBalance: Readonly<{
364
372
  /**
365
373
  * A Bitcoin transaction outpoint (reference to a previous output)
366
374
  */
367
- export type OutPoint = {
368
- txid: string;
369
- vout: number;
370
- };
371
- /**
372
- * Generated factory for {@link OutPoint} record objects.
373
- */
374
- export declare const OutPoint: Readonly<{
375
- create: (partial: Partial<OutPoint> & Required<Omit<OutPoint, never>>) => OutPoint;
376
- new: (partial: Partial<OutPoint> & Required<Omit<OutPoint, never>>) => OutPoint;
377
- defaults: () => Partial<OutPoint>;
378
- }>;
379
- export type PendingBoard = {
380
- vtxoId: string;
381
- amountSats: bigint;
382
- txid: string;
383
- };
384
- /**
385
- * Generated factory for {@link PendingBoard} record objects.
386
- */
387
- export declare const PendingBoard: Readonly<{
388
- create: (partial: Partial<PendingBoard> & Required<Omit<PendingBoard, never>>) => PendingBoard;
389
- new: (partial: Partial<PendingBoard> & Required<Omit<PendingBoard, never>>) => PendingBoard;
390
- defaults: () => Partial<PendingBoard>;
391
- }>;
392
- /**
393
- * A pending round state
394
- */
395
- export type RoundState = {
396
- id: number;
397
- /**
398
- * Whether the round is ongoing
399
- */
400
- ongoing: boolean;
401
- };
402
- /**
403
- * Generated factory for {@link RoundState} record objects.
404
- */
405
- export declare const RoundState: Readonly<{
406
- create: (partial: Partial<RoundState> & Required<Omit<RoundState, never>>) => RoundState;
407
- new: (partial: Partial<RoundState> & Required<Omit<RoundState, never>>) => RoundState;
408
- defaults: () => Partial<RoundState>;
409
- }>;
410
- export type Vtxo = {
411
- id: string;
412
- amountSats: bigint;
413
- expiryHeight: number;
414
- kind: string;
415
- state: string;
416
- /**
417
- * Genesis chain length. Compare against `ArkInfo.max_vtxo_exit_depth` to
418
- * detect VTXOs nearing the server's OOR-cosign refusal threshold.
419
- */
420
- exitDepth: number;
421
- /**
422
- * Weight units of the unilateral exit transaction chain. Lets clients
423
- * estimate exit cost without loading the full genesis.
424
- */
425
- exitTxWeightWu: bigint;
426
- };
427
- /**
428
- * Generated factory for {@link Vtxo} record objects.
429
- */
430
- export declare const Vtxo: Readonly<{
431
- create: (partial: Partial<Vtxo> & Required<Omit<Vtxo, never>>) => Vtxo;
432
- new: (partial: Partial<Vtxo> & Required<Omit<Vtxo, never>>) => Vtxo;
433
- defaults: () => Partial<Vtxo>;
434
- }>;
435
- export type WalletProperties = {
436
- network: Network;
437
- fingerprint: string;
438
- };
439
- /**
440
- * Generated factory for {@link WalletProperties} record objects.
441
- */
442
- export declare const WalletProperties: Readonly<{
443
- create: (partial: Partial<WalletProperties> & Required<Omit<WalletProperties, never>>) => WalletProperties;
444
- new: (partial: Partial<WalletProperties> & Required<Omit<WalletProperties, never>>) => WalletProperties;
445
- defaults: () => Partial<WalletProperties>;
446
- }>;
447
- export declare enum BarkError_Tags {
448
- Network = "Network",
449
- Database = "Database",
450
- InvalidMnemonic = "InvalidMnemonic",
451
- InvalidAddress = "InvalidAddress",
452
- InvalidInvoice = "InvalidInvoice",
453
- InvalidPsbt = "InvalidPsbt",
454
- InvalidTransaction = "InvalidTransaction",
455
- InsufficientFunds = "InsufficientFunds",
456
- NotFound = "NotFound",
457
- ServerConnection = "ServerConnection",
458
- Internal = "Internal",
459
- OnchainWalletRequired = "OnchainWalletRequired",
460
- InvalidVtxoId = "InvalidVtxoId",
461
- ServerPubkeyChanged = "ServerPubkeyChanged"
462
- }
463
- /**
464
- * Error types that can occur when using the Bark wallet FFI
465
- */
466
- export declare const BarkError: Readonly<{
467
- instanceOf: (obj: any) => obj is BarkError;
468
- Network: {
469
- new (inner: {
470
- errorMessage: string;
471
- }): {
472
- readonly tag: BarkError_Tags.Network;
473
- readonly inner: Readonly<{
474
- errorMessage: string;
475
- }>;
476
- /**
477
- * @private
478
- * This field is private and should not be used, use `tag` instead.
479
- */
480
- readonly [uniffiTypeNameSymbol]: "BarkError";
481
- name: string;
482
- message: string;
483
- stack?: string | undefined;
484
- cause?: unknown;
485
- };
486
- new(inner: {
487
- errorMessage: string;
488
- }): {
489
- readonly tag: BarkError_Tags.Network;
490
- readonly inner: Readonly<{
491
- errorMessage: string;
492
- }>;
493
- /**
494
- * @private
495
- * This field is private and should not be used, use `tag` instead.
496
- */
497
- readonly [uniffiTypeNameSymbol]: "BarkError";
498
- name: string;
499
- message: string;
500
- stack?: string | undefined;
501
- cause?: unknown;
502
- };
503
- instanceOf(obj: any): obj is {
504
- readonly tag: BarkError_Tags.Network;
505
- readonly inner: Readonly<{
506
- errorMessage: string;
507
- }>;
508
- /**
509
- * @private
510
- * This field is private and should not be used, use `tag` instead.
511
- */
512
- readonly [uniffiTypeNameSymbol]: "BarkError";
513
- name: string;
514
- message: string;
515
- stack?: string | undefined;
516
- cause?: unknown;
517
- };
518
- hasInner(obj: any): obj is {
519
- readonly tag: BarkError_Tags.Network;
520
- readonly inner: Readonly<{
521
- errorMessage: string;
522
- }>;
523
- /**
524
- * @private
525
- * This field is private and should not be used, use `tag` instead.
526
- */
527
- readonly [uniffiTypeNameSymbol]: "BarkError";
528
- name: string;
529
- message: string;
530
- stack?: string | undefined;
531
- cause?: unknown;
532
- };
533
- getInner(obj: {
534
- readonly tag: BarkError_Tags.Network;
535
- readonly inner: Readonly<{
536
- errorMessage: string;
537
- }>;
538
- /**
539
- * @private
540
- * This field is private and should not be used, use `tag` instead.
541
- */
542
- readonly [uniffiTypeNameSymbol]: "BarkError";
543
- name: string;
544
- message: string;
545
- stack?: string | undefined;
546
- cause?: unknown;
547
- }): Readonly<{
548
- errorMessage: string;
549
- }>;
550
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
551
- prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
552
- stackTraceLimit: number;
553
- };
554
- Database: {
555
- new (inner: {
556
- errorMessage: string;
557
- }): {
558
- readonly tag: BarkError_Tags.Database;
559
- readonly inner: Readonly<{
560
- errorMessage: string;
561
- }>;
562
- /**
563
- * @private
564
- * This field is private and should not be used, use `tag` instead.
565
- */
566
- readonly [uniffiTypeNameSymbol]: "BarkError";
567
- name: string;
568
- message: string;
569
- stack?: string | undefined;
570
- cause?: unknown;
571
- };
572
- new(inner: {
573
- errorMessage: string;
574
- }): {
575
- readonly tag: BarkError_Tags.Database;
576
- readonly inner: Readonly<{
577
- errorMessage: string;
578
- }>;
579
- /**
580
- * @private
581
- * This field is private and should not be used, use `tag` instead.
582
- */
583
- readonly [uniffiTypeNameSymbol]: "BarkError";
584
- name: string;
585
- message: string;
586
- stack?: string | undefined;
587
- cause?: unknown;
588
- };
589
- instanceOf(obj: any): obj is {
590
- readonly tag: BarkError_Tags.Database;
591
- readonly inner: Readonly<{
592
- errorMessage: string;
593
- }>;
594
- /**
595
- * @private
596
- * This field is private and should not be used, use `tag` instead.
597
- */
598
- readonly [uniffiTypeNameSymbol]: "BarkError";
599
- name: string;
600
- message: string;
601
- stack?: string | undefined;
602
- cause?: unknown;
603
- };
604
- hasInner(obj: any): obj is {
605
- readonly tag: BarkError_Tags.Database;
606
- readonly inner: Readonly<{
607
- errorMessage: string;
608
- }>;
609
- /**
610
- * @private
611
- * This field is private and should not be used, use `tag` instead.
612
- */
613
- readonly [uniffiTypeNameSymbol]: "BarkError";
614
- name: string;
615
- message: string;
616
- stack?: string | undefined;
617
- cause?: unknown;
618
- };
619
- getInner(obj: {
620
- readonly tag: BarkError_Tags.Database;
621
- readonly inner: Readonly<{
622
- errorMessage: string;
623
- }>;
624
- /**
625
- * @private
626
- * This field is private and should not be used, use `tag` instead.
627
- */
628
- readonly [uniffiTypeNameSymbol]: "BarkError";
629
- name: string;
630
- message: string;
631
- stack?: string | undefined;
632
- cause?: unknown;
633
- }): Readonly<{
634
- errorMessage: string;
635
- }>;
636
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
637
- prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
638
- stackTraceLimit: number;
639
- };
640
- InvalidMnemonic: {
641
- new (inner: {
642
- errorMessage: string;
643
- }): {
644
- readonly tag: BarkError_Tags.InvalidMnemonic;
645
- readonly inner: Readonly<{
646
- errorMessage: string;
647
- }>;
648
- /**
649
- * @private
650
- * This field is private and should not be used, use `tag` instead.
651
- */
652
- readonly [uniffiTypeNameSymbol]: "BarkError";
653
- name: string;
654
- message: string;
655
- stack?: string | undefined;
656
- cause?: unknown;
657
- };
658
- new(inner: {
659
- errorMessage: string;
660
- }): {
661
- readonly tag: BarkError_Tags.InvalidMnemonic;
662
- readonly inner: Readonly<{
663
- errorMessage: string;
664
- }>;
665
- /**
666
- * @private
667
- * This field is private and should not be used, use `tag` instead.
668
- */
669
- readonly [uniffiTypeNameSymbol]: "BarkError";
670
- name: string;
671
- message: string;
672
- stack?: string | undefined;
673
- cause?: unknown;
674
- };
675
- instanceOf(obj: any): obj is {
676
- readonly tag: BarkError_Tags.InvalidMnemonic;
677
- readonly inner: Readonly<{
678
- errorMessage: string;
679
- }>;
680
- /**
681
- * @private
682
- * This field is private and should not be used, use `tag` instead.
683
- */
684
- readonly [uniffiTypeNameSymbol]: "BarkError";
685
- name: string;
686
- message: string;
687
- stack?: string | undefined;
688
- cause?: unknown;
689
- };
690
- hasInner(obj: any): obj is {
691
- readonly tag: BarkError_Tags.InvalidMnemonic;
692
- readonly inner: Readonly<{
693
- errorMessage: string;
694
- }>;
695
- /**
696
- * @private
697
- * This field is private and should not be used, use `tag` instead.
698
- */
699
- readonly [uniffiTypeNameSymbol]: "BarkError";
700
- name: string;
701
- message: string;
702
- stack?: string | undefined;
703
- cause?: unknown;
704
- };
705
- getInner(obj: {
706
- readonly tag: BarkError_Tags.InvalidMnemonic;
707
- readonly inner: Readonly<{
708
- errorMessage: string;
709
- }>;
710
- /**
711
- * @private
712
- * This field is private and should not be used, use `tag` instead.
713
- */
714
- readonly [uniffiTypeNameSymbol]: "BarkError";
715
- name: string;
716
- message: string;
717
- stack?: string | undefined;
718
- cause?: unknown;
719
- }): Readonly<{
720
- errorMessage: string;
721
- }>;
722
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
723
- prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
724
- stackTraceLimit: number;
725
- };
726
- InvalidAddress: {
727
- new (inner: {
728
- errorMessage: string;
729
- }): {
730
- readonly tag: BarkError_Tags.InvalidAddress;
731
- readonly inner: Readonly<{
732
- errorMessage: string;
733
- }>;
734
- /**
735
- * @private
736
- * This field is private and should not be used, use `tag` instead.
737
- */
738
- readonly [uniffiTypeNameSymbol]: "BarkError";
739
- name: string;
740
- message: string;
741
- stack?: string | undefined;
742
- cause?: unknown;
743
- };
744
- new(inner: {
745
- errorMessage: string;
746
- }): {
747
- readonly tag: BarkError_Tags.InvalidAddress;
748
- readonly inner: Readonly<{
749
- errorMessage: string;
750
- }>;
751
- /**
752
- * @private
753
- * This field is private and should not be used, use `tag` instead.
754
- */
755
- readonly [uniffiTypeNameSymbol]: "BarkError";
756
- name: string;
757
- message: string;
758
- stack?: string | undefined;
759
- cause?: unknown;
760
- };
761
- instanceOf(obj: any): obj is {
762
- readonly tag: BarkError_Tags.InvalidAddress;
763
- readonly inner: Readonly<{
764
- errorMessage: string;
765
- }>;
766
- /**
767
- * @private
768
- * This field is private and should not be used, use `tag` instead.
769
- */
770
- readonly [uniffiTypeNameSymbol]: "BarkError";
771
- name: string;
772
- message: string;
773
- stack?: string | undefined;
774
- cause?: unknown;
775
- };
776
- hasInner(obj: any): obj is {
777
- readonly tag: BarkError_Tags.InvalidAddress;
778
- readonly inner: Readonly<{
779
- errorMessage: string;
780
- }>;
781
- /**
782
- * @private
783
- * This field is private and should not be used, use `tag` instead.
784
- */
785
- readonly [uniffiTypeNameSymbol]: "BarkError";
786
- name: string;
787
- message: string;
788
- stack?: string | undefined;
789
- cause?: unknown;
790
- };
791
- getInner(obj: {
792
- readonly tag: BarkError_Tags.InvalidAddress;
793
- readonly inner: Readonly<{
794
- errorMessage: string;
795
- }>;
796
- /**
797
- * @private
798
- * This field is private and should not be used, use `tag` instead.
799
- */
800
- readonly [uniffiTypeNameSymbol]: "BarkError";
801
- name: string;
802
- message: string;
803
- stack?: string | undefined;
804
- cause?: unknown;
805
- }): Readonly<{
806
- errorMessage: string;
807
- }>;
808
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
809
- prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
810
- stackTraceLimit: number;
811
- };
812
- InvalidInvoice: {
813
- new (inner: {
814
- errorMessage: string;
815
- }): {
816
- readonly tag: BarkError_Tags.InvalidInvoice;
817
- readonly inner: Readonly<{
818
- errorMessage: string;
819
- }>;
820
- /**
821
- * @private
822
- * This field is private and should not be used, use `tag` instead.
823
- */
824
- readonly [uniffiTypeNameSymbol]: "BarkError";
825
- name: string;
826
- message: string;
827
- stack?: string | undefined;
828
- cause?: unknown;
829
- };
830
- new(inner: {
831
- errorMessage: string;
832
- }): {
833
- readonly tag: BarkError_Tags.InvalidInvoice;
834
- readonly inner: Readonly<{
835
- errorMessage: string;
836
- }>;
837
- /**
838
- * @private
839
- * This field is private and should not be used, use `tag` instead.
840
- */
841
- readonly [uniffiTypeNameSymbol]: "BarkError";
842
- name: string;
843
- message: string;
844
- stack?: string | undefined;
845
- cause?: unknown;
846
- };
847
- instanceOf(obj: any): obj is {
848
- readonly tag: BarkError_Tags.InvalidInvoice;
849
- readonly inner: Readonly<{
850
- errorMessage: string;
851
- }>;
852
- /**
853
- * @private
854
- * This field is private and should not be used, use `tag` instead.
855
- */
856
- readonly [uniffiTypeNameSymbol]: "BarkError";
857
- name: string;
858
- message: string;
859
- stack?: string | undefined;
860
- cause?: unknown;
861
- };
862
- hasInner(obj: any): obj is {
863
- readonly tag: BarkError_Tags.InvalidInvoice;
864
- readonly inner: Readonly<{
865
- errorMessage: string;
866
- }>;
867
- /**
868
- * @private
869
- * This field is private and should not be used, use `tag` instead.
870
- */
871
- readonly [uniffiTypeNameSymbol]: "BarkError";
872
- name: string;
873
- message: string;
874
- stack?: string | undefined;
875
- cause?: unknown;
876
- };
877
- getInner(obj: {
878
- readonly tag: BarkError_Tags.InvalidInvoice;
879
- readonly inner: Readonly<{
880
- errorMessage: string;
881
- }>;
882
- /**
883
- * @private
884
- * This field is private and should not be used, use `tag` instead.
885
- */
886
- readonly [uniffiTypeNameSymbol]: "BarkError";
887
- name: string;
888
- message: string;
889
- stack?: string | undefined;
890
- cause?: unknown;
891
- }): Readonly<{
892
- errorMessage: string;
893
- }>;
894
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
895
- prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
896
- stackTraceLimit: number;
897
- };
898
- InvalidPsbt: {
899
- new (inner: {
900
- errorMessage: string;
901
- }): {
902
- readonly tag: BarkError_Tags.InvalidPsbt;
903
- readonly inner: Readonly<{
904
- errorMessage: string;
905
- }>;
906
- /**
907
- * @private
908
- * This field is private and should not be used, use `tag` instead.
909
- */
910
- readonly [uniffiTypeNameSymbol]: "BarkError";
911
- name: string;
912
- message: string;
913
- stack?: string | undefined;
914
- cause?: unknown;
915
- };
916
- new(inner: {
917
- errorMessage: string;
918
- }): {
919
- readonly tag: BarkError_Tags.InvalidPsbt;
920
- readonly inner: Readonly<{
921
- errorMessage: string;
922
- }>;
923
- /**
924
- * @private
925
- * This field is private and should not be used, use `tag` instead.
926
- */
927
- readonly [uniffiTypeNameSymbol]: "BarkError";
928
- name: string;
929
- message: string;
930
- stack?: string | undefined;
931
- cause?: unknown;
932
- };
933
- instanceOf(obj: any): obj is {
934
- readonly tag: BarkError_Tags.InvalidPsbt;
935
- readonly inner: Readonly<{
936
- errorMessage: string;
937
- }>;
938
- /**
939
- * @private
940
- * This field is private and should not be used, use `tag` instead.
941
- */
942
- readonly [uniffiTypeNameSymbol]: "BarkError";
943
- name: string;
944
- message: string;
945
- stack?: string | undefined;
946
- cause?: unknown;
947
- };
948
- hasInner(obj: any): obj is {
949
- readonly tag: BarkError_Tags.InvalidPsbt;
950
- readonly inner: Readonly<{
951
- errorMessage: string;
952
- }>;
953
- /**
954
- * @private
955
- * This field is private and should not be used, use `tag` instead.
956
- */
957
- readonly [uniffiTypeNameSymbol]: "BarkError";
958
- name: string;
959
- message: string;
960
- stack?: string | undefined;
961
- cause?: unknown;
962
- };
963
- getInner(obj: {
964
- readonly tag: BarkError_Tags.InvalidPsbt;
965
- readonly inner: Readonly<{
966
- errorMessage: string;
967
- }>;
968
- /**
969
- * @private
970
- * This field is private and should not be used, use `tag` instead.
971
- */
972
- readonly [uniffiTypeNameSymbol]: "BarkError";
973
- name: string;
974
- message: string;
975
- stack?: string | undefined;
976
- cause?: unknown;
977
- }): Readonly<{
978
- errorMessage: string;
979
- }>;
980
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
981
- prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
982
- stackTraceLimit: number;
983
- };
984
- InvalidTransaction: {
985
- new (inner: {
986
- errorMessage: string;
987
- }): {
988
- readonly tag: BarkError_Tags.InvalidTransaction;
989
- readonly inner: Readonly<{
990
- errorMessage: string;
991
- }>;
992
- /**
993
- * @private
994
- * This field is private and should not be used, use `tag` instead.
995
- */
996
- readonly [uniffiTypeNameSymbol]: "BarkError";
997
- name: string;
998
- message: string;
999
- stack?: string | undefined;
1000
- cause?: unknown;
1001
- };
1002
- new(inner: {
1003
- errorMessage: string;
1004
- }): {
1005
- readonly tag: BarkError_Tags.InvalidTransaction;
1006
- readonly inner: Readonly<{
1007
- errorMessage: string;
1008
- }>;
1009
- /**
1010
- * @private
1011
- * This field is private and should not be used, use `tag` instead.
1012
- */
1013
- readonly [uniffiTypeNameSymbol]: "BarkError";
1014
- name: string;
1015
- message: string;
1016
- stack?: string | undefined;
1017
- cause?: unknown;
1018
- };
1019
- instanceOf(obj: any): obj is {
1020
- readonly tag: BarkError_Tags.InvalidTransaction;
1021
- readonly inner: Readonly<{
1022
- errorMessage: string;
1023
- }>;
1024
- /**
1025
- * @private
1026
- * This field is private and should not be used, use `tag` instead.
1027
- */
1028
- readonly [uniffiTypeNameSymbol]: "BarkError";
1029
- name: string;
1030
- message: string;
1031
- stack?: string | undefined;
1032
- cause?: unknown;
1033
- };
1034
- hasInner(obj: any): obj is {
1035
- readonly tag: BarkError_Tags.InvalidTransaction;
1036
- readonly inner: Readonly<{
1037
- errorMessage: string;
1038
- }>;
1039
- /**
1040
- * @private
1041
- * This field is private and should not be used, use `tag` instead.
1042
- */
1043
- readonly [uniffiTypeNameSymbol]: "BarkError";
1044
- name: string;
1045
- message: string;
1046
- stack?: string | undefined;
1047
- cause?: unknown;
1048
- };
1049
- getInner(obj: {
1050
- readonly tag: BarkError_Tags.InvalidTransaction;
1051
- readonly inner: Readonly<{
1052
- errorMessage: string;
1053
- }>;
1054
- /**
1055
- * @private
1056
- * This field is private and should not be used, use `tag` instead.
1057
- */
1058
- readonly [uniffiTypeNameSymbol]: "BarkError";
1059
- name: string;
1060
- message: string;
1061
- stack?: string | undefined;
1062
- cause?: unknown;
1063
- }): Readonly<{
1064
- errorMessage: string;
1065
- }>;
1066
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
1067
- prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
1068
- stackTraceLimit: number;
1069
- };
1070
- InsufficientFunds: {
1071
- new (inner: {
1072
- errorMessage: string;
1073
- }): {
1074
- readonly tag: BarkError_Tags.InsufficientFunds;
1075
- readonly inner: Readonly<{
1076
- errorMessage: string;
1077
- }>;
1078
- /**
1079
- * @private
1080
- * This field is private and should not be used, use `tag` instead.
1081
- */
1082
- readonly [uniffiTypeNameSymbol]: "BarkError";
1083
- name: string;
1084
- message: string;
1085
- stack?: string | undefined;
1086
- cause?: unknown;
1087
- };
1088
- new(inner: {
1089
- errorMessage: string;
1090
- }): {
1091
- readonly tag: BarkError_Tags.InsufficientFunds;
1092
- readonly inner: Readonly<{
1093
- errorMessage: string;
1094
- }>;
1095
- /**
1096
- * @private
1097
- * This field is private and should not be used, use `tag` instead.
1098
- */
1099
- readonly [uniffiTypeNameSymbol]: "BarkError";
1100
- name: string;
1101
- message: string;
1102
- stack?: string | undefined;
1103
- cause?: unknown;
1104
- };
1105
- instanceOf(obj: any): obj is {
1106
- readonly tag: BarkError_Tags.InsufficientFunds;
1107
- readonly inner: Readonly<{
1108
- errorMessage: string;
1109
- }>;
1110
- /**
1111
- * @private
1112
- * This field is private and should not be used, use `tag` instead.
1113
- */
1114
- readonly [uniffiTypeNameSymbol]: "BarkError";
1115
- name: string;
1116
- message: string;
1117
- stack?: string | undefined;
1118
- cause?: unknown;
1119
- };
1120
- hasInner(obj: any): obj is {
1121
- readonly tag: BarkError_Tags.InsufficientFunds;
1122
- readonly inner: Readonly<{
1123
- errorMessage: string;
1124
- }>;
1125
- /**
1126
- * @private
1127
- * This field is private and should not be used, use `tag` instead.
1128
- */
1129
- readonly [uniffiTypeNameSymbol]: "BarkError";
1130
- name: string;
1131
- message: string;
1132
- stack?: string | undefined;
1133
- cause?: unknown;
1134
- };
1135
- getInner(obj: {
1136
- readonly tag: BarkError_Tags.InsufficientFunds;
1137
- readonly inner: Readonly<{
1138
- errorMessage: string;
1139
- }>;
1140
- /**
1141
- * @private
1142
- * This field is private and should not be used, use `tag` instead.
1143
- */
1144
- readonly [uniffiTypeNameSymbol]: "BarkError";
1145
- name: string;
1146
- message: string;
1147
- stack?: string | undefined;
1148
- cause?: unknown;
1149
- }): Readonly<{
1150
- errorMessage: string;
1151
- }>;
1152
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
1153
- prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
1154
- stackTraceLimit: number;
1155
- };
1156
- NotFound: {
1157
- new (inner: {
1158
- errorMessage: string;
1159
- }): {
1160
- readonly tag: BarkError_Tags.NotFound;
1161
- readonly inner: Readonly<{
1162
- errorMessage: string;
1163
- }>;
1164
- /**
1165
- * @private
1166
- * This field is private and should not be used, use `tag` instead.
1167
- */
1168
- readonly [uniffiTypeNameSymbol]: "BarkError";
1169
- name: string;
1170
- message: string;
1171
- stack?: string | undefined;
1172
- cause?: unknown;
1173
- };
1174
- new(inner: {
1175
- errorMessage: string;
1176
- }): {
1177
- readonly tag: BarkError_Tags.NotFound;
1178
- readonly inner: Readonly<{
1179
- errorMessage: string;
1180
- }>;
1181
- /**
1182
- * @private
1183
- * This field is private and should not be used, use `tag` instead.
1184
- */
1185
- readonly [uniffiTypeNameSymbol]: "BarkError";
1186
- name: string;
1187
- message: string;
1188
- stack?: string | undefined;
1189
- cause?: unknown;
1190
- };
1191
- instanceOf(obj: any): obj is {
1192
- readonly tag: BarkError_Tags.NotFound;
1193
- readonly inner: Readonly<{
1194
- errorMessage: string;
1195
- }>;
1196
- /**
1197
- * @private
1198
- * This field is private and should not be used, use `tag` instead.
1199
- */
1200
- readonly [uniffiTypeNameSymbol]: "BarkError";
1201
- name: string;
1202
- message: string;
1203
- stack?: string | undefined;
1204
- cause?: unknown;
1205
- };
1206
- hasInner(obj: any): obj is {
1207
- readonly tag: BarkError_Tags.NotFound;
1208
- readonly inner: Readonly<{
1209
- errorMessage: string;
1210
- }>;
1211
- /**
1212
- * @private
1213
- * This field is private and should not be used, use `tag` instead.
1214
- */
1215
- readonly [uniffiTypeNameSymbol]: "BarkError";
1216
- name: string;
1217
- message: string;
1218
- stack?: string | undefined;
1219
- cause?: unknown;
1220
- };
1221
- getInner(obj: {
1222
- readonly tag: BarkError_Tags.NotFound;
1223
- readonly inner: Readonly<{
1224
- errorMessage: string;
1225
- }>;
1226
- /**
1227
- * @private
1228
- * This field is private and should not be used, use `tag` instead.
1229
- */
1230
- readonly [uniffiTypeNameSymbol]: "BarkError";
1231
- name: string;
1232
- message: string;
1233
- stack?: string | undefined;
1234
- cause?: unknown;
1235
- }): Readonly<{
1236
- errorMessage: string;
1237
- }>;
1238
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
1239
- prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
1240
- stackTraceLimit: number;
1241
- };
1242
- ServerConnection: {
1243
- new (inner: {
1244
- errorMessage: string;
1245
- }): {
1246
- readonly tag: BarkError_Tags.ServerConnection;
1247
- readonly inner: Readonly<{
1248
- errorMessage: string;
1249
- }>;
1250
- /**
1251
- * @private
1252
- * This field is private and should not be used, use `tag` instead.
1253
- */
1254
- readonly [uniffiTypeNameSymbol]: "BarkError";
1255
- name: string;
1256
- message: string;
1257
- stack?: string | undefined;
1258
- cause?: unknown;
1259
- };
1260
- new(inner: {
1261
- errorMessage: string;
1262
- }): {
1263
- readonly tag: BarkError_Tags.ServerConnection;
1264
- readonly inner: Readonly<{
1265
- errorMessage: string;
1266
- }>;
1267
- /**
1268
- * @private
1269
- * This field is private and should not be used, use `tag` instead.
1270
- */
1271
- readonly [uniffiTypeNameSymbol]: "BarkError";
1272
- name: string;
1273
- message: string;
1274
- stack?: string | undefined;
1275
- cause?: unknown;
1276
- };
1277
- instanceOf(obj: any): obj is {
1278
- readonly tag: BarkError_Tags.ServerConnection;
1279
- readonly inner: Readonly<{
1280
- errorMessage: string;
1281
- }>;
1282
- /**
1283
- * @private
1284
- * This field is private and should not be used, use `tag` instead.
1285
- */
1286
- readonly [uniffiTypeNameSymbol]: "BarkError";
1287
- name: string;
1288
- message: string;
1289
- stack?: string | undefined;
1290
- cause?: unknown;
1291
- };
1292
- hasInner(obj: any): obj is {
1293
- readonly tag: BarkError_Tags.ServerConnection;
1294
- readonly inner: Readonly<{
1295
- errorMessage: string;
1296
- }>;
1297
- /**
1298
- * @private
1299
- * This field is private and should not be used, use `tag` instead.
1300
- */
1301
- readonly [uniffiTypeNameSymbol]: "BarkError";
1302
- name: string;
1303
- message: string;
1304
- stack?: string | undefined;
1305
- cause?: unknown;
1306
- };
1307
- getInner(obj: {
1308
- readonly tag: BarkError_Tags.ServerConnection;
1309
- readonly inner: Readonly<{
1310
- errorMessage: string;
1311
- }>;
1312
- /**
1313
- * @private
1314
- * This field is private and should not be used, use `tag` instead.
1315
- */
1316
- readonly [uniffiTypeNameSymbol]: "BarkError";
1317
- name: string;
1318
- message: string;
1319
- stack?: string | undefined;
1320
- cause?: unknown;
1321
- }): Readonly<{
1322
- errorMessage: string;
1323
- }>;
1324
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
1325
- prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
1326
- stackTraceLimit: number;
1327
- };
1328
- Internal: {
1329
- new (inner: {
1330
- errorMessage: string;
1331
- }): {
1332
- readonly tag: BarkError_Tags.Internal;
1333
- readonly inner: Readonly<{
1334
- errorMessage: string;
1335
- }>;
1336
- /**
1337
- * @private
1338
- * This field is private and should not be used, use `tag` instead.
1339
- */
1340
- readonly [uniffiTypeNameSymbol]: "BarkError";
1341
- name: string;
1342
- message: string;
1343
- stack?: string | undefined;
1344
- cause?: unknown;
1345
- };
1346
- new(inner: {
1347
- errorMessage: string;
1348
- }): {
1349
- readonly tag: BarkError_Tags.Internal;
1350
- readonly inner: Readonly<{
1351
- errorMessage: string;
1352
- }>;
1353
- /**
1354
- * @private
1355
- * This field is private and should not be used, use `tag` instead.
1356
- */
1357
- readonly [uniffiTypeNameSymbol]: "BarkError";
1358
- name: string;
1359
- message: string;
1360
- stack?: string | undefined;
1361
- cause?: unknown;
1362
- };
1363
- instanceOf(obj: any): obj is {
1364
- readonly tag: BarkError_Tags.Internal;
1365
- readonly inner: Readonly<{
1366
- errorMessage: string;
1367
- }>;
1368
- /**
1369
- * @private
1370
- * This field is private and should not be used, use `tag` instead.
1371
- */
1372
- readonly [uniffiTypeNameSymbol]: "BarkError";
1373
- name: string;
1374
- message: string;
1375
- stack?: string | undefined;
1376
- cause?: unknown;
1377
- };
1378
- hasInner(obj: any): obj is {
1379
- readonly tag: BarkError_Tags.Internal;
1380
- readonly inner: Readonly<{
1381
- errorMessage: string;
1382
- }>;
1383
- /**
1384
- * @private
1385
- * This field is private and should not be used, use `tag` instead.
1386
- */
1387
- readonly [uniffiTypeNameSymbol]: "BarkError";
1388
- name: string;
1389
- message: string;
1390
- stack?: string | undefined;
1391
- cause?: unknown;
1392
- };
1393
- getInner(obj: {
1394
- readonly tag: BarkError_Tags.Internal;
1395
- readonly inner: Readonly<{
1396
- errorMessage: string;
1397
- }>;
1398
- /**
1399
- * @private
1400
- * This field is private and should not be used, use `tag` instead.
1401
- */
1402
- readonly [uniffiTypeNameSymbol]: "BarkError";
1403
- name: string;
1404
- message: string;
1405
- stack?: string | undefined;
1406
- cause?: unknown;
1407
- }): Readonly<{
1408
- errorMessage: string;
1409
- }>;
1410
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
1411
- prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
1412
- stackTraceLimit: number;
1413
- };
1414
- OnchainWalletRequired: {
1415
- new (inner: {
1416
- errorMessage: string;
1417
- }): {
1418
- readonly tag: BarkError_Tags.OnchainWalletRequired;
1419
- readonly inner: Readonly<{
1420
- errorMessage: string;
1421
- }>;
1422
- /**
1423
- * @private
1424
- * This field is private and should not be used, use `tag` instead.
1425
- */
1426
- readonly [uniffiTypeNameSymbol]: "BarkError";
1427
- name: string;
1428
- message: string;
1429
- stack?: string | undefined;
1430
- cause?: unknown;
1431
- };
1432
- new(inner: {
1433
- errorMessage: string;
1434
- }): {
1435
- readonly tag: BarkError_Tags.OnchainWalletRequired;
1436
- readonly inner: Readonly<{
1437
- errorMessage: string;
1438
- }>;
1439
- /**
1440
- * @private
1441
- * This field is private and should not be used, use `tag` instead.
1442
- */
1443
- readonly [uniffiTypeNameSymbol]: "BarkError";
1444
- name: string;
1445
- message: string;
1446
- stack?: string | undefined;
1447
- cause?: unknown;
1448
- };
1449
- instanceOf(obj: any): obj is {
1450
- readonly tag: BarkError_Tags.OnchainWalletRequired;
1451
- readonly inner: Readonly<{
1452
- errorMessage: string;
1453
- }>;
1454
- /**
1455
- * @private
1456
- * This field is private and should not be used, use `tag` instead.
1457
- */
1458
- readonly [uniffiTypeNameSymbol]: "BarkError";
1459
- name: string;
1460
- message: string;
1461
- stack?: string | undefined;
1462
- cause?: unknown;
1463
- };
1464
- hasInner(obj: any): obj is {
1465
- readonly tag: BarkError_Tags.OnchainWalletRequired;
1466
- readonly inner: Readonly<{
1467
- errorMessage: string;
1468
- }>;
1469
- /**
1470
- * @private
1471
- * This field is private and should not be used, use `tag` instead.
1472
- */
1473
- readonly [uniffiTypeNameSymbol]: "BarkError";
1474
- name: string;
1475
- message: string;
1476
- stack?: string | undefined;
1477
- cause?: unknown;
1478
- };
1479
- getInner(obj: {
1480
- readonly tag: BarkError_Tags.OnchainWalletRequired;
1481
- readonly inner: Readonly<{
1482
- errorMessage: string;
1483
- }>;
1484
- /**
1485
- * @private
1486
- * This field is private and should not be used, use `tag` instead.
1487
- */
1488
- readonly [uniffiTypeNameSymbol]: "BarkError";
1489
- name: string;
1490
- message: string;
1491
- stack?: string | undefined;
1492
- cause?: unknown;
1493
- }): Readonly<{
1494
- errorMessage: string;
1495
- }>;
1496
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
1497
- prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
1498
- stackTraceLimit: number;
1499
- };
1500
- InvalidVtxoId: {
1501
- new (inner: {
1502
- errorMessage: string;
1503
- }): {
1504
- readonly tag: BarkError_Tags.InvalidVtxoId;
1505
- readonly inner: Readonly<{
1506
- errorMessage: string;
1507
- }>;
375
+ export type OutPoint = {
376
+ txid: string;
377
+ vout: number;
378
+ };
379
+ /**
380
+ * Generated factory for {@link OutPoint} record objects.
381
+ */
382
+ export declare const OutPoint: Readonly<{
383
+ create: (partial: Partial<OutPoint> & Required<Omit<OutPoint, never>>) => OutPoint;
384
+ new: (partial: Partial<OutPoint> & Required<Omit<OutPoint, never>>) => OutPoint;
385
+ defaults: () => Partial<OutPoint>;
386
+ }>;
387
+ export type PendingBoard = {
388
+ vtxoId: string;
389
+ amountSats: bigint;
390
+ txid: string;
391
+ };
392
+ /**
393
+ * Generated factory for {@link PendingBoard} record objects.
394
+ */
395
+ export declare const PendingBoard: Readonly<{
396
+ create: (partial: Partial<PendingBoard> & Required<Omit<PendingBoard, never>>) => PendingBoard;
397
+ new: (partial: Partial<PendingBoard> & Required<Omit<PendingBoard, never>>) => PendingBoard;
398
+ defaults: () => Partial<PendingBoard>;
399
+ }>;
400
+ /**
401
+ * A pending round state
402
+ */
403
+ export type RoundState = {
404
+ id: number;
405
+ /**
406
+ * Whether the round is ongoing
407
+ */
408
+ ongoing: boolean;
409
+ };
410
+ /**
411
+ * Generated factory for {@link RoundState} record objects.
412
+ */
413
+ export declare const RoundState: Readonly<{
414
+ create: (partial: Partial<RoundState> & Required<Omit<RoundState, never>>) => RoundState;
415
+ new: (partial: Partial<RoundState> & Required<Omit<RoundState, never>>) => RoundState;
416
+ defaults: () => Partial<RoundState>;
417
+ }>;
418
+ export type Vtxo = {
419
+ id: string;
420
+ amountSats: bigint;
421
+ expiryHeight: number;
422
+ kind: string;
423
+ state: string;
424
+ /**
425
+ * Genesis chain length. Compare against `ArkInfo.max_vtxo_exit_depth` to
426
+ * detect VTXOs nearing the server's OOR-cosign refusal threshold.
427
+ */
428
+ exitDepth: number;
429
+ /**
430
+ * Weight units of the unilateral exit transaction chain. Lets clients
431
+ * estimate exit cost without loading the full genesis.
432
+ */
433
+ exitTxWeightWu: bigint;
434
+ };
435
+ /**
436
+ * Generated factory for {@link Vtxo} record objects.
437
+ */
438
+ export declare const Vtxo: Readonly<{
439
+ create: (partial: Partial<Vtxo> & Required<Omit<Vtxo, never>>) => Vtxo;
440
+ new: (partial: Partial<Vtxo> & Required<Omit<Vtxo, never>>) => Vtxo;
441
+ defaults: () => Partial<Vtxo>;
442
+ }>;
443
+ /**
444
+ * Optional arguments for [`Wallet::open`], mirroring [`bark::OpenWalletArgs`].
445
+ *
446
+ * Every field has a default, so callers only set what they need.
447
+ */
448
+ export type WalletOpenArgs = {
449
+ /**
450
+ * Whether to run the background daemon
451
+ *
452
+ * When disabled, you must manually call `Wallet::sync` to sync the wallet.
453
+ *
454
+ * Default: true
455
+ */
456
+ runDaemon: boolean;
457
+ /**
458
+ * The data directory to use for this wallet
459
+ */
460
+ datadir: string;
461
+ /**
462
+ * The onchain wallet to use, if any
463
+ *
464
+ * Default: none
465
+ */
466
+ onchain?: OnchainWalletLike;
467
+ /**
468
+ * Whether to create a new wallet if no wallet exists
469
+ *
470
+ * Default: true
471
+ */
472
+ createIfNotExists: boolean;
473
+ /**
474
+ * Whether to create a new wallet even if the Ark server cannot be reached
475
+ *
476
+ * Default: false
477
+ */
478
+ createWithoutServer: boolean;
479
+ };
480
+ /**
481
+ * Generated factory for {@link WalletOpenArgs} record objects.
482
+ */
483
+ export declare const WalletOpenArgs: Readonly<{
484
+ create: (partial: Partial<WalletOpenArgs> & Required<Omit<WalletOpenArgs, "runDaemon" | "onchain" | "createIfNotExists" | "createWithoutServer">>) => WalletOpenArgs;
485
+ new: (partial: Partial<WalletOpenArgs> & Required<Omit<WalletOpenArgs, "runDaemon" | "onchain" | "createIfNotExists" | "createWithoutServer">>) => WalletOpenArgs;
486
+ defaults: () => Partial<WalletOpenArgs>;
487
+ }>;
488
+ export type WalletProperties = {
489
+ network: Network;
490
+ fingerprint: string;
491
+ };
492
+ /**
493
+ * Generated factory for {@link WalletProperties} record objects.
494
+ */
495
+ export declare const WalletProperties: Readonly<{
496
+ create: (partial: Partial<WalletProperties> & Required<Omit<WalletProperties, never>>) => WalletProperties;
497
+ new: (partial: Partial<WalletProperties> & Required<Omit<WalletProperties, never>>) => WalletProperties;
498
+ defaults: () => Partial<WalletProperties>;
499
+ }>;
500
+ export declare enum Exception_Tags {
501
+ Inner = "Inner"
502
+ }
503
+ /**
504
+ * The single error type surfaced across the Bark FFI.
505
+ *
506
+ * It is a thin, single-variant wrapper around [`anyhow::Error`]. uniffi error
507
+ * types must be enums (callback interfaces require `ConvertError`, which
508
+ * objects cannot provide), and `flat_error` tells uniffi to carry only the
509
+ * `Display` string across the boundary — so the rich anyhow context collapses
510
+ * to a single message on the foreign side.
511
+ */
512
+ export declare const Exception: {
513
+ Inner: {
514
+ new (message: string): {
515
+ readonly tag: Exception_Tags.Inner;
1508
516
  /**
1509
517
  * @private
1510
- * This field is private and should not be used, use `tag` instead.
518
+ * This field is private and should not be used.
1511
519
  */
1512
- readonly [uniffiTypeNameSymbol]: "BarkError";
1513
- name: string;
1514
- message: string;
1515
- stack?: string | undefined;
1516
- cause?: unknown;
1517
- };
1518
- new(inner: {
1519
- errorMessage: string;
1520
- }): {
1521
- readonly tag: BarkError_Tags.InvalidVtxoId;
1522
- readonly inner: Readonly<{
1523
- errorMessage: string;
1524
- }>;
520
+ readonly [uniffiTypeNameSymbol]: string;
1525
521
  /**
1526
522
  * @private
1527
- * This field is private and should not be used, use `tag` instead.
523
+ * This field is private and should not be used.
1528
524
  */
1529
- readonly [uniffiTypeNameSymbol]: "BarkError";
525
+ readonly [variantOrdinalSymbol]: 1;
1530
526
  name: string;
1531
527
  message: string;
1532
528
  stack?: string | undefined;
1533
529
  cause?: unknown;
1534
530
  };
1535
- instanceOf(obj: any): obj is {
1536
- readonly tag: BarkError_Tags.InvalidVtxoId;
1537
- readonly inner: Readonly<{
1538
- errorMessage: string;
1539
- }>;
531
+ instanceOf(e: any): e is {
532
+ readonly tag: Exception_Tags.Inner;
1540
533
  /**
1541
534
  * @private
1542
- * This field is private and should not be used, use `tag` instead.
535
+ * This field is private and should not be used.
1543
536
  */
1544
- readonly [uniffiTypeNameSymbol]: "BarkError";
1545
- name: string;
1546
- message: string;
1547
- stack?: string | undefined;
1548
- cause?: unknown;
1549
- };
1550
- hasInner(obj: any): obj is {
1551
- readonly tag: BarkError_Tags.InvalidVtxoId;
1552
- readonly inner: Readonly<{
1553
- errorMessage: string;
1554
- }>;
537
+ readonly [uniffiTypeNameSymbol]: string;
1555
538
  /**
1556
539
  * @private
1557
- * This field is private and should not be used, use `tag` instead.
540
+ * This field is private and should not be used.
1558
541
  */
1559
- readonly [uniffiTypeNameSymbol]: "BarkError";
542
+ readonly [variantOrdinalSymbol]: 1;
1560
543
  name: string;
1561
544
  message: string;
1562
545
  stack?: string | undefined;
1563
546
  cause?: unknown;
1564
547
  };
1565
- getInner(obj: {
1566
- readonly tag: BarkError_Tags.InvalidVtxoId;
1567
- readonly inner: Readonly<{
1568
- errorMessage: string;
1569
- }>;
1570
- /**
1571
- * @private
1572
- * This field is private and should not be used, use `tag` instead.
1573
- */
1574
- readonly [uniffiTypeNameSymbol]: "BarkError";
1575
- name: string;
1576
- message: string;
1577
- stack?: string | undefined;
1578
- cause?: unknown;
1579
- }): Readonly<{
1580
- errorMessage: string;
1581
- }>;
1582
548
  captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
1583
549
  prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
1584
550
  stackTraceLimit: number;
1585
551
  };
1586
- ServerPubkeyChanged: {
1587
- new (inner: {
1588
- errorMessage: string;
1589
- }): {
1590
- readonly tag: BarkError_Tags.ServerPubkeyChanged;
1591
- readonly inner: Readonly<{
1592
- errorMessage: string;
1593
- }>;
1594
- /**
1595
- * @private
1596
- * This field is private and should not be used, use `tag` instead.
1597
- */
1598
- readonly [uniffiTypeNameSymbol]: "BarkError";
1599
- name: string;
1600
- message: string;
1601
- stack?: string | undefined;
1602
- cause?: unknown;
1603
- };
1604
- new(inner: {
1605
- errorMessage: string;
1606
- }): {
1607
- readonly tag: BarkError_Tags.ServerPubkeyChanged;
1608
- readonly inner: Readonly<{
1609
- errorMessage: string;
1610
- }>;
1611
- /**
1612
- * @private
1613
- * This field is private and should not be used, use `tag` instead.
1614
- */
1615
- readonly [uniffiTypeNameSymbol]: "BarkError";
1616
- name: string;
1617
- message: string;
1618
- stack?: string | undefined;
1619
- cause?: unknown;
1620
- };
1621
- instanceOf(obj: any): obj is {
1622
- readonly tag: BarkError_Tags.ServerPubkeyChanged;
1623
- readonly inner: Readonly<{
1624
- errorMessage: string;
1625
- }>;
1626
- /**
1627
- * @private
1628
- * This field is private and should not be used, use `tag` instead.
1629
- */
1630
- readonly [uniffiTypeNameSymbol]: "BarkError";
1631
- name: string;
1632
- message: string;
1633
- stack?: string | undefined;
1634
- cause?: unknown;
1635
- };
1636
- hasInner(obj: any): obj is {
1637
- readonly tag: BarkError_Tags.ServerPubkeyChanged;
1638
- readonly inner: Readonly<{
1639
- errorMessage: string;
1640
- }>;
1641
- /**
1642
- * @private
1643
- * This field is private and should not be used, use `tag` instead.
1644
- */
1645
- readonly [uniffiTypeNameSymbol]: "BarkError";
1646
- name: string;
1647
- message: string;
1648
- stack?: string | undefined;
1649
- cause?: unknown;
1650
- };
1651
- getInner(obj: {
1652
- readonly tag: BarkError_Tags.ServerPubkeyChanged;
1653
- readonly inner: Readonly<{
1654
- errorMessage: string;
1655
- }>;
1656
- /**
1657
- * @private
1658
- * This field is private and should not be used, use `tag` instead.
1659
- */
1660
- readonly [uniffiTypeNameSymbol]: "BarkError";
1661
- name: string;
1662
- message: string;
1663
- stack?: string | undefined;
1664
- cause?: unknown;
1665
- }): Readonly<{
1666
- errorMessage: string;
1667
- }>;
1668
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
1669
- prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
1670
- stackTraceLimit: number;
552
+ instanceOf: (e: any) => e is {
553
+ readonly tag: Exception_Tags.Inner;
554
+ /**
555
+ * @private
556
+ * This field is private and should not be used.
557
+ */
558
+ readonly [uniffiTypeNameSymbol]: string;
559
+ /**
560
+ * @private
561
+ * This field is private and should not be used.
562
+ */
563
+ readonly [variantOrdinalSymbol]: 1;
564
+ name: string;
565
+ message: string;
566
+ stack?: string | undefined;
567
+ cause?: unknown;
1671
568
  };
1672
- }>;
569
+ };
1673
570
  /**
1674
- * Error types that can occur when using the Bark wallet FFI
571
+ * The single error type surfaced across the Bark FFI.
572
+ *
573
+ * It is a thin, single-variant wrapper around [`anyhow::Error`]. uniffi error
574
+ * types must be enums (callback interfaces require `ConvertError`, which
575
+ * objects cannot provide), and `flat_error` tells uniffi to carry only the
576
+ * `Display` string across the boundary — so the rich anyhow context collapses
577
+ * to a single message on the foreign side.
1675
578
  */
1676
- export type BarkError = InstanceType<(typeof BarkError)[keyof Omit<typeof BarkError, "instanceOf">]>;
579
+ export type Exception = InstanceType<(typeof Exception)[keyof Omit<typeof Exception, "instanceOf">]>;
1677
580
  export declare enum LightningSendStatus_Tags {
1678
581
  Unknown = "Unknown",
1679
582
  InProgress = "InProgress",
@@ -2059,6 +962,15 @@ export interface CustomOnchainWalletCallbacks {
2059
962
  * * `tx_hex` - Hex-encoded transaction
2060
963
  */
2061
964
  storeSignedP2aCpfp(txHex: string): void;
965
+ /**
966
+ * Sync the wallet with the chain.
967
+ *
968
+ * Called by Bark (e.g. the background daemon) to ask the wallet to refresh
969
+ * its view of the chain before reading balances or building transactions.
970
+ * Implementations bring their own chain backend up to date — Bark's chain
971
+ * source is intentionally not passed across the FFI boundary.
972
+ */
973
+ sync(): void;
2062
974
  }
2063
975
  /**
2064
976
  * Callback interface for custom onchain wallet implementations
@@ -2153,6 +1065,15 @@ export declare class CustomOnchainWalletCallbacksImpl extends UniffiAbstractObje
2153
1065
  * * `tx_hex` - Hex-encoded transaction
2154
1066
  */
2155
1067
  storeSignedP2aCpfp(txHex: string): void;
1068
+ /**
1069
+ * Sync the wallet with the chain.
1070
+ *
1071
+ * Called by Bark (e.g. the background daemon) to ask the wallet to refresh
1072
+ * its view of the chain before reading balances or building transactions.
1073
+ * Implementations bring their own chain backend up to date — Bark's chain
1074
+ * source is intentionally not passed across the FFI boundary.
1075
+ */
1076
+ sync(): void;
2156
1077
  /**
2157
1078
  * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
2158
1079
  */
@@ -2192,7 +1113,7 @@ export interface NotificationHolderLike {
2192
1113
  * (cancellation only affects the current wait; the stream lives on)
2193
1114
  * - The wallet's notification source was shut down permanently
2194
1115
  *
2195
- * Returns `Err(BarkError::Internal)` if called concurrently on the same holder.
1116
+ * Returns an error if called concurrently on the same holder.
2196
1117
  *
2197
1118
  * After a cancellation this method can be called again normally — the
2198
1119
  * underlying `NotificationStream` is preserved in `self.stream` and a
@@ -2243,7 +1164,7 @@ export declare class NotificationHolder extends UniffiAbstractObject implements
2243
1164
  * (cancellation only affects the current wait; the stream lives on)
2244
1165
  * - The wallet's notification source was shut down permanently
2245
1166
  *
2246
- * Returns `Err(BarkError::Internal)` if called concurrently on the same holder.
1167
+ * Returns an error if called concurrently on the same holder.
2247
1168
  *
2248
1169
  * After a cancellation this method can be called again normally — the
2249
1170
  * underlying `NotificationStream` is preserved in `self.stream` and a
@@ -2298,7 +1219,7 @@ export declare class OnchainWallet extends UniffiAbstractObject implements Oncha
2298
1219
  /**
2299
1220
  * BDK-backed wallet. Opens the shared sqlite cache.
2300
1221
  */
2301
- static default_(mnemonic: string, config: Config, datadir: string, asyncOpts_?: {
1222
+ static default_(network: Network, mnemonic: string, config: Config, datadir: string, asyncOpts_?: {
2302
1223
  signal: AbortSignal;
2303
1224
  }): Promise<OnchainWalletLike>;
2304
1225
  balance(asyncOpts_?: {
@@ -2469,9 +1390,6 @@ export interface WalletLike {
2469
1390
  maintenanceWithOnchainDelegated(onchainWallet: OnchainWalletLike, asyncOpts_?: {
2470
1391
  signal: AbortSignal;
2471
1392
  }): Promise<void>;
2472
- maybeScheduleMaintenanceRefresh(asyncOpts_?: {
2473
- signal: AbortSignal;
2474
- }): Promise</*u32*/ /*u32*/ number | undefined>;
2475
1393
  network(asyncOpts_?: {
2476
1394
  signal: AbortSignal;
2477
1395
  }): Promise<Network>;
@@ -2503,6 +1421,15 @@ export interface WalletLike {
2503
1421
  payLightningOffer(offer: string, amountSats: /*u64*/ bigint | undefined, wait: boolean, asyncOpts_?: {
2504
1422
  signal: AbortSignal;
2505
1423
  }): Promise<LightningSendStatus>;
1424
+ /**
1425
+ * Pay a raw LNURL-pay link (`lnurl1…`). UniFFI-only — lnurl-rs is not wasm-compatible.
1426
+ *
1427
+ * Resolves the LNURL-pay endpoint to a BOLT11 invoice and pays it. Errors
1428
+ * if the link decodes to a non-pay LNURL (auth, withdraw, channel).
1429
+ */
1430
+ payLnurl(lnurl: string, amountSats: bigint, comment: string | undefined, wait: boolean, asyncOpts_?: {
1431
+ signal: AbortSignal;
1432
+ }): Promise<LightningSendStatus>;
2506
1433
  peekAddress(index: number, asyncOpts_?: {
2507
1434
  signal: AbortSignal;
2508
1435
  }): Promise<string>;
@@ -2553,7 +1480,7 @@ export interface WalletLike {
2553
1480
  }): Promise<void>;
2554
1481
  sendArkoorPayment(arkAddress: string, amountSats: bigint, asyncOpts_?: {
2555
1482
  signal: AbortSignal;
2556
- }): Promise<string>;
1483
+ }): Promise<void>;
2557
1484
  sendOnchain(address: string, amountSats: bigint, asyncOpts_?: {
2558
1485
  signal: AbortSignal;
2559
1486
  }): Promise<string>;
@@ -2581,6 +1508,16 @@ export interface WalletLike {
2581
1508
  syncExits(onchainWallet: OnchainWalletLike, asyncOpts_?: {
2582
1509
  signal: AbortSignal;
2583
1510
  }): Promise<void>;
1511
+ /**
1512
+ * Scan for VTXOs that were force-exited on-chain without the user asking
1513
+ * and route them into the unilateral-exit flow so the funds can be claimed.
1514
+ *
1515
+ * This already runs automatically as part of [`Self::sync`]; call it
1516
+ * directly to trigger the scan on demand.
1517
+ */
1518
+ syncForceExitedVtxos(asyncOpts_?: {
1519
+ signal: AbortSignal;
1520
+ }): Promise<void>;
2584
1521
  syncPendingBoards(asyncOpts_?: {
2585
1522
  signal: AbortSignal;
2586
1523
  }): Promise<void>;
@@ -2617,22 +1554,16 @@ export declare class Wallet extends UniffiAbstractObject implements WalletLike {
2617
1554
  readonly [destructorGuardSymbol]: UniffiGcObject;
2618
1555
  readonly [pointerLiteralSymbol]: UniffiHandle;
2619
1556
  private constructor();
2620
- static create(mnemonic: string, config: Config, datadir: string, forceRescan: boolean, asyncOpts_?: {
2621
- signal: AbortSignal;
2622
- }): Promise<WalletLike>;
2623
- static createWithOnchain(mnemonic: string, config: Config, datadir: string, onchainWallet: OnchainWalletLike, forceRescan: boolean, asyncOpts_?: {
2624
- signal: AbortSignal;
2625
- }): Promise<WalletLike>;
2626
- static open(mnemonic: string, config: Config, datadir: string, asyncOpts_?: {
2627
- signal: AbortSignal;
2628
- }): Promise<WalletLike>;
2629
1557
  /**
2630
- * Open an existing wallet and start running the daemon.
1558
+ * Open a wallet (creating it first if `create_if_not_exists` is set),
1559
+ * mirroring [`bark::Wallet::open`]: a single entry point with everything
1560
+ * else optional (see [`WalletOpenArgs`]). For the explicit
1561
+ * initialize-but-don't-open path, use the top-level `create_wallet`.
1562
+ *
1563
+ * `mnemonic_or_seed` accepts either a BIP-39 mnemonic phrase or a 64-byte
1564
+ * hex-encoded seed.
2631
1565
  */
2632
- static openWithDaemon(mnemonic: string, config: Config, datadir: string, onchainWallet: OnchainWalletLike | undefined, asyncOpts_?: {
2633
- signal: AbortSignal;
2634
- }): Promise<WalletLike>;
2635
- static openWithOnchain(mnemonic: string, config: Config, datadir: string, onchainWallet: OnchainWalletLike, asyncOpts_?: {
1566
+ static open(network: Network, mnemonicOrSeed: string, config: Config, args: WalletOpenArgs, asyncOpts_?: {
2636
1567
  signal: AbortSignal;
2637
1568
  }): Promise<WalletLike>;
2638
1569
  allExitsClaimableAtHeight(asyncOpts_?: {
@@ -2674,7 +1605,7 @@ export declare class Wallet extends UniffiAbstractObject implements WalletLike {
2674
1605
  cancelPendingRound(roundId: number, asyncOpts_?: {
2675
1606
  signal: AbortSignal;
2676
1607
  }): Promise<void>;
2677
- checkLightningPayment(paymentHash: string, wait: boolean, asyncOpts_?: {
1608
+ checkLightningPayment(paymentHash: string, wait?: boolean, asyncOpts_?: {
2678
1609
  signal: AbortSignal;
2679
1610
  }): Promise<LightningSendStatus>;
2680
1611
  claimableLightningReceiveBalanceSats(asyncOpts_?: {
@@ -2773,9 +1704,6 @@ export declare class Wallet extends UniffiAbstractObject implements WalletLike {
2773
1704
  maintenanceWithOnchainDelegated(onchainWallet: OnchainWalletLike, asyncOpts_?: {
2774
1705
  signal: AbortSignal;
2775
1706
  }): Promise<void>;
2776
- maybeScheduleMaintenanceRefresh(asyncOpts_?: {
2777
- signal: AbortSignal;
2778
- }): Promise</*u32*/ /*u32*/ number | undefined>;
2779
1707
  network(asyncOpts_?: {
2780
1708
  signal: AbortSignal;
2781
1709
  }): Promise<Network>;
@@ -2798,13 +1726,22 @@ export declare class Wallet extends UniffiAbstractObject implements WalletLike {
2798
1726
  /**
2799
1727
  * Pay to a Lightning Address (LNURL). UniFFI-only — lnurl-rs is not wasm-compatible.
2800
1728
  */
2801
- payLightningAddress(lightningAddress: string, amountSats: bigint, comment: string | undefined, wait: boolean, asyncOpts_?: {
1729
+ payLightningAddress(lightningAddress: string, amountSats: bigint, comment: string | undefined, wait?: boolean, asyncOpts_?: {
2802
1730
  signal: AbortSignal;
2803
1731
  }): Promise<LightningSendStatus>;
2804
- payLightningInvoice(invoice: string, amountSats: /*u64*/ bigint | undefined, wait: boolean, asyncOpts_?: {
1732
+ payLightningInvoice(invoice: string, amountSats: /*u64*/ bigint | undefined, wait?: boolean, asyncOpts_?: {
2805
1733
  signal: AbortSignal;
2806
1734
  }): Promise<LightningSendStatus>;
2807
- payLightningOffer(offer: string, amountSats: /*u64*/ bigint | undefined, wait: boolean, asyncOpts_?: {
1735
+ payLightningOffer(offer: string, amountSats: /*u64*/ bigint | undefined, wait?: boolean, asyncOpts_?: {
1736
+ signal: AbortSignal;
1737
+ }): Promise<LightningSendStatus>;
1738
+ /**
1739
+ * Pay a raw LNURL-pay link (`lnurl1…`). UniFFI-only — lnurl-rs is not wasm-compatible.
1740
+ *
1741
+ * Resolves the LNURL-pay endpoint to a BOLT11 invoice and pays it. Errors
1742
+ * if the link decodes to a non-pay LNURL (auth, withdraw, channel).
1743
+ */
1744
+ payLnurl(lnurl: string, amountSats: bigint, comment: string | undefined, wait?: boolean, asyncOpts_?: {
2808
1745
  signal: AbortSignal;
2809
1746
  }): Promise<LightningSendStatus>;
2810
1747
  peekAddress(index: number, asyncOpts_?: {
@@ -2857,7 +1794,7 @@ export declare class Wallet extends UniffiAbstractObject implements WalletLike {
2857
1794
  }): Promise<void>;
2858
1795
  sendArkoorPayment(arkAddress: string, amountSats: bigint, asyncOpts_?: {
2859
1796
  signal: AbortSignal;
2860
- }): Promise<string>;
1797
+ }): Promise<void>;
2861
1798
  sendOnchain(address: string, amountSats: bigint, asyncOpts_?: {
2862
1799
  signal: AbortSignal;
2863
1800
  }): Promise<string>;
@@ -2885,13 +1822,23 @@ export declare class Wallet extends UniffiAbstractObject implements WalletLike {
2885
1822
  syncExits(onchainWallet: OnchainWalletLike, asyncOpts_?: {
2886
1823
  signal: AbortSignal;
2887
1824
  }): Promise<void>;
1825
+ /**
1826
+ * Scan for VTXOs that were force-exited on-chain without the user asking
1827
+ * and route them into the unilateral-exit flow so the funds can be claimed.
1828
+ *
1829
+ * This already runs automatically as part of [`Self::sync`]; call it
1830
+ * directly to trigger the scan on demand.
1831
+ */
1832
+ syncForceExitedVtxos(asyncOpts_?: {
1833
+ signal: AbortSignal;
1834
+ }): Promise<void>;
2888
1835
  syncPendingBoards(asyncOpts_?: {
2889
1836
  signal: AbortSignal;
2890
1837
  }): Promise<void>;
2891
- tryClaimAllLightningReceives(wait: boolean, asyncOpts_?: {
1838
+ tryClaimAllLightningReceives(wait?: boolean, asyncOpts_?: {
2892
1839
  signal: AbortSignal;
2893
1840
  }): Promise<Array<LightningReceive>>;
2894
- tryClaimLightningReceive(paymentHash: string, wait: boolean, asyncOpts_?: {
1841
+ tryClaimLightningReceive(paymentHash: string, wait?: boolean, asyncOpts_?: {
2895
1842
  signal: AbortSignal;
2896
1843
  }): Promise<void>;
2897
1844
  validateArkoorAddress(address: string, asyncOpts_?: {
@@ -2941,13 +1888,6 @@ declare const _default: Readonly<{
2941
1888
  lift(value: Uint8Array): Balance;
2942
1889
  lower(value: Balance): Uint8Array;
2943
1890
  };
2944
- FfiConverterTypeBarkError: {
2945
- read(from: RustBuffer): BarkError;
2946
- write(value: BarkError, into: RustBuffer): void;
2947
- allocationSize(value: BarkError): number;
2948
- lift(value: Uint8Array): BarkError;
2949
- lower(value: BarkError): Uint8Array;
2950
- };
2951
1891
  FfiConverterTypeBarkLogger: FfiConverterObjectWithCallbacks<BarkLogger>;
2952
1892
  FfiConverterTypeBlockRef: {
2953
1893
  read(from: RustBuffer): BlockRef;
@@ -2978,6 +1918,93 @@ declare const _default: Readonly<{
2978
1918
  lift(value: Uint8Array): Destination;
2979
1919
  lower(value: Destination): Uint8Array;
2980
1920
  };
1921
+ FfiConverterTypeError: {
1922
+ read(from: RustBuffer): {
1923
+ readonly tag: Exception_Tags.Inner;
1924
+ /**
1925
+ * @private
1926
+ * This field is private and should not be used.
1927
+ */
1928
+ readonly [uniffiTypeNameSymbol]: string;
1929
+ /**
1930
+ * @private
1931
+ * This field is private and should not be used.
1932
+ */
1933
+ readonly [variantOrdinalSymbol]: 1;
1934
+ name: string;
1935
+ message: string;
1936
+ stack?: string | undefined;
1937
+ cause?: unknown;
1938
+ };
1939
+ write(value: {
1940
+ readonly tag: Exception_Tags.Inner;
1941
+ /**
1942
+ * @private
1943
+ * This field is private and should not be used.
1944
+ */
1945
+ readonly [uniffiTypeNameSymbol]: string;
1946
+ /**
1947
+ * @private
1948
+ * This field is private and should not be used.
1949
+ */
1950
+ readonly [variantOrdinalSymbol]: 1;
1951
+ name: string;
1952
+ message: string;
1953
+ stack?: string | undefined;
1954
+ cause?: unknown;
1955
+ }, into: RustBuffer): void;
1956
+ allocationSize(value: {
1957
+ readonly tag: Exception_Tags.Inner;
1958
+ /**
1959
+ * @private
1960
+ * This field is private and should not be used.
1961
+ */
1962
+ readonly [uniffiTypeNameSymbol]: string;
1963
+ /**
1964
+ * @private
1965
+ * This field is private and should not be used.
1966
+ */
1967
+ readonly [variantOrdinalSymbol]: 1;
1968
+ name: string;
1969
+ message: string;
1970
+ stack?: string | undefined;
1971
+ cause?: unknown;
1972
+ }): number;
1973
+ lift(value: Uint8Array): {
1974
+ readonly tag: Exception_Tags.Inner;
1975
+ /**
1976
+ * @private
1977
+ * This field is private and should not be used.
1978
+ */
1979
+ readonly [uniffiTypeNameSymbol]: string;
1980
+ /**
1981
+ * @private
1982
+ * This field is private and should not be used.
1983
+ */
1984
+ readonly [variantOrdinalSymbol]: 1;
1985
+ name: string;
1986
+ message: string;
1987
+ stack?: string | undefined;
1988
+ cause?: unknown;
1989
+ };
1990
+ lower(value: {
1991
+ readonly tag: Exception_Tags.Inner;
1992
+ /**
1993
+ * @private
1994
+ * This field is private and should not be used.
1995
+ */
1996
+ readonly [uniffiTypeNameSymbol]: string;
1997
+ /**
1998
+ * @private
1999
+ * This field is private and should not be used.
2000
+ */
2001
+ readonly [variantOrdinalSymbol]: 1;
2002
+ name: string;
2003
+ message: string;
2004
+ stack?: string | undefined;
2005
+ cause?: unknown;
2006
+ }): Uint8Array;
2007
+ };
2981
2008
  FfiConverterTypeExitClaimTransaction: {
2982
2009
  read(from: RustBuffer): ExitClaimTransaction;
2983
2010
  write(value: ExitClaimTransaction, into: RustBuffer): void;
@@ -3114,6 +2141,13 @@ declare const _default: Readonly<{
3114
2141
  lift(value: Uint8Array): WalletNotification;
3115
2142
  lower(value: WalletNotification): Uint8Array;
3116
2143
  };
2144
+ FfiConverterTypeWalletOpenArgs: {
2145
+ read(from: RustBuffer): WalletOpenArgs;
2146
+ write(value: WalletOpenArgs, into: RustBuffer): void;
2147
+ allocationSize(value: WalletOpenArgs): number;
2148
+ lift(value: Uint8Array): WalletOpenArgs;
2149
+ lower(value: WalletOpenArgs): Uint8Array;
2150
+ };
3117
2151
  FfiConverterTypeWalletProperties: {
3118
2152
  read(from: RustBuffer): WalletProperties;
3119
2153
  write(value: WalletProperties, into: RustBuffer): void;