@secondts/bark-react-native 0.1.0-beta.7 → 0.1.2-beta.13

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,4 +1,5 @@
1
- import { type UniffiByteArray, type UniffiRustArcPtr, type UnsafeMutableRawPointer, FfiConverterObject, RustBuffer, UniffiAbstractObject, destructorGuardSymbol, pointerLiteralSymbol, uniffiTypeNameSymbol } from "uniffi-bindgen-react-native";
1
+ /// <reference types="node" />
2
+ import { type UniffiRustArcPtr, type UnsafeMutableRawPointer, FfiConverterObject, RustBuffer, UniffiAbstractObject, destructorGuardSymbol, pointerLiteralSymbol, uniffiTypeNameSymbol } from "uniffi-bindgen-react-native";
2
3
  export declare function extractTxFromPsbt(psbtBase64: string): string;
3
4
  export declare function generateMnemonic(): string;
4
5
  export declare function validateArkAddress(address: string): boolean;
@@ -1011,7 +1012,8 @@ export declare enum BarkError_Tags {
1011
1012
  NotFound = "NotFound",
1012
1013
  ServerConnection = "ServerConnection",
1013
1014
  Internal = "Internal",
1014
- OnchainWalletRequired = "OnchainWalletRequired"
1015
+ OnchainWalletRequired = "OnchainWalletRequired",
1016
+ InvalidVtxoId = "InvalidVtxoId"
1015
1017
  }
1016
1018
  /**
1017
1019
  * Error types that can occur when using the Bark wallet
@@ -1033,10 +1035,10 @@ export declare const BarkError: Readonly<{
1033
1035
  readonly [uniffiTypeNameSymbol]: "BarkError";
1034
1036
  name: string;
1035
1037
  message: string;
1036
- stack?: string;
1038
+ stack?: string | undefined;
1037
1039
  cause?: unknown;
1038
1040
  };
1039
- "new"(inner: {
1041
+ new(inner: {
1040
1042
  errorMessage: string;
1041
1043
  }): {
1042
1044
  readonly tag: BarkError_Tags.Network;
@@ -1050,7 +1052,7 @@ export declare const BarkError: Readonly<{
1050
1052
  readonly [uniffiTypeNameSymbol]: "BarkError";
1051
1053
  name: string;
1052
1054
  message: string;
1053
- stack?: string;
1055
+ stack?: string | undefined;
1054
1056
  cause?: unknown;
1055
1057
  };
1056
1058
  instanceOf(obj: any): obj is {
@@ -1065,7 +1067,7 @@ export declare const BarkError: Readonly<{
1065
1067
  readonly [uniffiTypeNameSymbol]: "BarkError";
1066
1068
  name: string;
1067
1069
  message: string;
1068
- stack?: string;
1070
+ stack?: string | undefined;
1069
1071
  cause?: unknown;
1070
1072
  };
1071
1073
  hasInner(obj: any): obj is {
@@ -1080,7 +1082,7 @@ export declare const BarkError: Readonly<{
1080
1082
  readonly [uniffiTypeNameSymbol]: "BarkError";
1081
1083
  name: string;
1082
1084
  message: string;
1083
- stack?: string;
1085
+ stack?: string | undefined;
1084
1086
  cause?: unknown;
1085
1087
  };
1086
1088
  getInner(obj: {
@@ -1095,13 +1097,12 @@ export declare const BarkError: Readonly<{
1095
1097
  readonly [uniffiTypeNameSymbol]: "BarkError";
1096
1098
  name: string;
1097
1099
  message: string;
1098
- stack?: string;
1100
+ stack?: string | undefined;
1099
1101
  cause?: unknown;
1100
1102
  }): Readonly<{
1101
1103
  errorMessage: string;
1102
1104
  }>;
1103
- isError(error: unknown): error is Error;
1104
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
1105
+ captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
1105
1106
  prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
1106
1107
  stackTraceLimit: number;
1107
1108
  };
@@ -1120,10 +1121,10 @@ export declare const BarkError: Readonly<{
1120
1121
  readonly [uniffiTypeNameSymbol]: "BarkError";
1121
1122
  name: string;
1122
1123
  message: string;
1123
- stack?: string;
1124
+ stack?: string | undefined;
1124
1125
  cause?: unknown;
1125
1126
  };
1126
- "new"(inner: {
1127
+ new(inner: {
1127
1128
  errorMessage: string;
1128
1129
  }): {
1129
1130
  readonly tag: BarkError_Tags.Database;
@@ -1137,7 +1138,7 @@ export declare const BarkError: Readonly<{
1137
1138
  readonly [uniffiTypeNameSymbol]: "BarkError";
1138
1139
  name: string;
1139
1140
  message: string;
1140
- stack?: string;
1141
+ stack?: string | undefined;
1141
1142
  cause?: unknown;
1142
1143
  };
1143
1144
  instanceOf(obj: any): obj is {
@@ -1152,7 +1153,7 @@ export declare const BarkError: Readonly<{
1152
1153
  readonly [uniffiTypeNameSymbol]: "BarkError";
1153
1154
  name: string;
1154
1155
  message: string;
1155
- stack?: string;
1156
+ stack?: string | undefined;
1156
1157
  cause?: unknown;
1157
1158
  };
1158
1159
  hasInner(obj: any): obj is {
@@ -1167,7 +1168,7 @@ export declare const BarkError: Readonly<{
1167
1168
  readonly [uniffiTypeNameSymbol]: "BarkError";
1168
1169
  name: string;
1169
1170
  message: string;
1170
- stack?: string;
1171
+ stack?: string | undefined;
1171
1172
  cause?: unknown;
1172
1173
  };
1173
1174
  getInner(obj: {
@@ -1182,13 +1183,12 @@ export declare const BarkError: Readonly<{
1182
1183
  readonly [uniffiTypeNameSymbol]: "BarkError";
1183
1184
  name: string;
1184
1185
  message: string;
1185
- stack?: string;
1186
+ stack?: string | undefined;
1186
1187
  cause?: unknown;
1187
1188
  }): Readonly<{
1188
1189
  errorMessage: string;
1189
1190
  }>;
1190
- isError(error: unknown): error is Error;
1191
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
1191
+ captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
1192
1192
  prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
1193
1193
  stackTraceLimit: number;
1194
1194
  };
@@ -1207,10 +1207,10 @@ export declare const BarkError: Readonly<{
1207
1207
  readonly [uniffiTypeNameSymbol]: "BarkError";
1208
1208
  name: string;
1209
1209
  message: string;
1210
- stack?: string;
1210
+ stack?: string | undefined;
1211
1211
  cause?: unknown;
1212
1212
  };
1213
- "new"(inner: {
1213
+ new(inner: {
1214
1214
  errorMessage: string;
1215
1215
  }): {
1216
1216
  readonly tag: BarkError_Tags.InvalidMnemonic;
@@ -1224,7 +1224,7 @@ export declare const BarkError: Readonly<{
1224
1224
  readonly [uniffiTypeNameSymbol]: "BarkError";
1225
1225
  name: string;
1226
1226
  message: string;
1227
- stack?: string;
1227
+ stack?: string | undefined;
1228
1228
  cause?: unknown;
1229
1229
  };
1230
1230
  instanceOf(obj: any): obj is {
@@ -1239,7 +1239,7 @@ export declare const BarkError: Readonly<{
1239
1239
  readonly [uniffiTypeNameSymbol]: "BarkError";
1240
1240
  name: string;
1241
1241
  message: string;
1242
- stack?: string;
1242
+ stack?: string | undefined;
1243
1243
  cause?: unknown;
1244
1244
  };
1245
1245
  hasInner(obj: any): obj is {
@@ -1254,7 +1254,7 @@ export declare const BarkError: Readonly<{
1254
1254
  readonly [uniffiTypeNameSymbol]: "BarkError";
1255
1255
  name: string;
1256
1256
  message: string;
1257
- stack?: string;
1257
+ stack?: string | undefined;
1258
1258
  cause?: unknown;
1259
1259
  };
1260
1260
  getInner(obj: {
@@ -1269,13 +1269,12 @@ export declare const BarkError: Readonly<{
1269
1269
  readonly [uniffiTypeNameSymbol]: "BarkError";
1270
1270
  name: string;
1271
1271
  message: string;
1272
- stack?: string;
1272
+ stack?: string | undefined;
1273
1273
  cause?: unknown;
1274
1274
  }): Readonly<{
1275
1275
  errorMessage: string;
1276
1276
  }>;
1277
- isError(error: unknown): error is Error;
1278
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
1277
+ captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
1279
1278
  prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
1280
1279
  stackTraceLimit: number;
1281
1280
  };
@@ -1294,10 +1293,10 @@ export declare const BarkError: Readonly<{
1294
1293
  readonly [uniffiTypeNameSymbol]: "BarkError";
1295
1294
  name: string;
1296
1295
  message: string;
1297
- stack?: string;
1296
+ stack?: string | undefined;
1298
1297
  cause?: unknown;
1299
1298
  };
1300
- "new"(inner: {
1299
+ new(inner: {
1301
1300
  errorMessage: string;
1302
1301
  }): {
1303
1302
  readonly tag: BarkError_Tags.InvalidAddress;
@@ -1311,7 +1310,7 @@ export declare const BarkError: Readonly<{
1311
1310
  readonly [uniffiTypeNameSymbol]: "BarkError";
1312
1311
  name: string;
1313
1312
  message: string;
1314
- stack?: string;
1313
+ stack?: string | undefined;
1315
1314
  cause?: unknown;
1316
1315
  };
1317
1316
  instanceOf(obj: any): obj is {
@@ -1326,7 +1325,7 @@ export declare const BarkError: Readonly<{
1326
1325
  readonly [uniffiTypeNameSymbol]: "BarkError";
1327
1326
  name: string;
1328
1327
  message: string;
1329
- stack?: string;
1328
+ stack?: string | undefined;
1330
1329
  cause?: unknown;
1331
1330
  };
1332
1331
  hasInner(obj: any): obj is {
@@ -1341,7 +1340,7 @@ export declare const BarkError: Readonly<{
1341
1340
  readonly [uniffiTypeNameSymbol]: "BarkError";
1342
1341
  name: string;
1343
1342
  message: string;
1344
- stack?: string;
1343
+ stack?: string | undefined;
1345
1344
  cause?: unknown;
1346
1345
  };
1347
1346
  getInner(obj: {
@@ -1356,13 +1355,12 @@ export declare const BarkError: Readonly<{
1356
1355
  readonly [uniffiTypeNameSymbol]: "BarkError";
1357
1356
  name: string;
1358
1357
  message: string;
1359
- stack?: string;
1358
+ stack?: string | undefined;
1360
1359
  cause?: unknown;
1361
1360
  }): Readonly<{
1362
1361
  errorMessage: string;
1363
1362
  }>;
1364
- isError(error: unknown): error is Error;
1365
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
1363
+ captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
1366
1364
  prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
1367
1365
  stackTraceLimit: number;
1368
1366
  };
@@ -1381,10 +1379,10 @@ export declare const BarkError: Readonly<{
1381
1379
  readonly [uniffiTypeNameSymbol]: "BarkError";
1382
1380
  name: string;
1383
1381
  message: string;
1384
- stack?: string;
1382
+ stack?: string | undefined;
1385
1383
  cause?: unknown;
1386
1384
  };
1387
- "new"(inner: {
1385
+ new(inner: {
1388
1386
  errorMessage: string;
1389
1387
  }): {
1390
1388
  readonly tag: BarkError_Tags.InvalidInvoice;
@@ -1398,7 +1396,7 @@ export declare const BarkError: Readonly<{
1398
1396
  readonly [uniffiTypeNameSymbol]: "BarkError";
1399
1397
  name: string;
1400
1398
  message: string;
1401
- stack?: string;
1399
+ stack?: string | undefined;
1402
1400
  cause?: unknown;
1403
1401
  };
1404
1402
  instanceOf(obj: any): obj is {
@@ -1413,7 +1411,7 @@ export declare const BarkError: Readonly<{
1413
1411
  readonly [uniffiTypeNameSymbol]: "BarkError";
1414
1412
  name: string;
1415
1413
  message: string;
1416
- stack?: string;
1414
+ stack?: string | undefined;
1417
1415
  cause?: unknown;
1418
1416
  };
1419
1417
  hasInner(obj: any): obj is {
@@ -1428,7 +1426,7 @@ export declare const BarkError: Readonly<{
1428
1426
  readonly [uniffiTypeNameSymbol]: "BarkError";
1429
1427
  name: string;
1430
1428
  message: string;
1431
- stack?: string;
1429
+ stack?: string | undefined;
1432
1430
  cause?: unknown;
1433
1431
  };
1434
1432
  getInner(obj: {
@@ -1443,13 +1441,12 @@ export declare const BarkError: Readonly<{
1443
1441
  readonly [uniffiTypeNameSymbol]: "BarkError";
1444
1442
  name: string;
1445
1443
  message: string;
1446
- stack?: string;
1444
+ stack?: string | undefined;
1447
1445
  cause?: unknown;
1448
1446
  }): Readonly<{
1449
1447
  errorMessage: string;
1450
1448
  }>;
1451
- isError(error: unknown): error is Error;
1452
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
1449
+ captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
1453
1450
  prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
1454
1451
  stackTraceLimit: number;
1455
1452
  };
@@ -1468,10 +1465,10 @@ export declare const BarkError: Readonly<{
1468
1465
  readonly [uniffiTypeNameSymbol]: "BarkError";
1469
1466
  name: string;
1470
1467
  message: string;
1471
- stack?: string;
1468
+ stack?: string | undefined;
1472
1469
  cause?: unknown;
1473
1470
  };
1474
- "new"(inner: {
1471
+ new(inner: {
1475
1472
  errorMessage: string;
1476
1473
  }): {
1477
1474
  readonly tag: BarkError_Tags.InvalidPsbt;
@@ -1485,7 +1482,7 @@ export declare const BarkError: Readonly<{
1485
1482
  readonly [uniffiTypeNameSymbol]: "BarkError";
1486
1483
  name: string;
1487
1484
  message: string;
1488
- stack?: string;
1485
+ stack?: string | undefined;
1489
1486
  cause?: unknown;
1490
1487
  };
1491
1488
  instanceOf(obj: any): obj is {
@@ -1500,7 +1497,7 @@ export declare const BarkError: Readonly<{
1500
1497
  readonly [uniffiTypeNameSymbol]: "BarkError";
1501
1498
  name: string;
1502
1499
  message: string;
1503
- stack?: string;
1500
+ stack?: string | undefined;
1504
1501
  cause?: unknown;
1505
1502
  };
1506
1503
  hasInner(obj: any): obj is {
@@ -1515,7 +1512,7 @@ export declare const BarkError: Readonly<{
1515
1512
  readonly [uniffiTypeNameSymbol]: "BarkError";
1516
1513
  name: string;
1517
1514
  message: string;
1518
- stack?: string;
1515
+ stack?: string | undefined;
1519
1516
  cause?: unknown;
1520
1517
  };
1521
1518
  getInner(obj: {
@@ -1530,13 +1527,12 @@ export declare const BarkError: Readonly<{
1530
1527
  readonly [uniffiTypeNameSymbol]: "BarkError";
1531
1528
  name: string;
1532
1529
  message: string;
1533
- stack?: string;
1530
+ stack?: string | undefined;
1534
1531
  cause?: unknown;
1535
1532
  }): Readonly<{
1536
1533
  errorMessage: string;
1537
1534
  }>;
1538
- isError(error: unknown): error is Error;
1539
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
1535
+ captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
1540
1536
  prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
1541
1537
  stackTraceLimit: number;
1542
1538
  };
@@ -1555,10 +1551,10 @@ export declare const BarkError: Readonly<{
1555
1551
  readonly [uniffiTypeNameSymbol]: "BarkError";
1556
1552
  name: string;
1557
1553
  message: string;
1558
- stack?: string;
1554
+ stack?: string | undefined;
1559
1555
  cause?: unknown;
1560
1556
  };
1561
- "new"(inner: {
1557
+ new(inner: {
1562
1558
  errorMessage: string;
1563
1559
  }): {
1564
1560
  readonly tag: BarkError_Tags.InvalidTransaction;
@@ -1572,7 +1568,7 @@ export declare const BarkError: Readonly<{
1572
1568
  readonly [uniffiTypeNameSymbol]: "BarkError";
1573
1569
  name: string;
1574
1570
  message: string;
1575
- stack?: string;
1571
+ stack?: string | undefined;
1576
1572
  cause?: unknown;
1577
1573
  };
1578
1574
  instanceOf(obj: any): obj is {
@@ -1587,7 +1583,7 @@ export declare const BarkError: Readonly<{
1587
1583
  readonly [uniffiTypeNameSymbol]: "BarkError";
1588
1584
  name: string;
1589
1585
  message: string;
1590
- stack?: string;
1586
+ stack?: string | undefined;
1591
1587
  cause?: unknown;
1592
1588
  };
1593
1589
  hasInner(obj: any): obj is {
@@ -1602,7 +1598,7 @@ export declare const BarkError: Readonly<{
1602
1598
  readonly [uniffiTypeNameSymbol]: "BarkError";
1603
1599
  name: string;
1604
1600
  message: string;
1605
- stack?: string;
1601
+ stack?: string | undefined;
1606
1602
  cause?: unknown;
1607
1603
  };
1608
1604
  getInner(obj: {
@@ -1617,13 +1613,12 @@ export declare const BarkError: Readonly<{
1617
1613
  readonly [uniffiTypeNameSymbol]: "BarkError";
1618
1614
  name: string;
1619
1615
  message: string;
1620
- stack?: string;
1616
+ stack?: string | undefined;
1621
1617
  cause?: unknown;
1622
1618
  }): Readonly<{
1623
1619
  errorMessage: string;
1624
1620
  }>;
1625
- isError(error: unknown): error is Error;
1626
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
1621
+ captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
1627
1622
  prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
1628
1623
  stackTraceLimit: number;
1629
1624
  };
@@ -1642,10 +1637,10 @@ export declare const BarkError: Readonly<{
1642
1637
  readonly [uniffiTypeNameSymbol]: "BarkError";
1643
1638
  name: string;
1644
1639
  message: string;
1645
- stack?: string;
1640
+ stack?: string | undefined;
1646
1641
  cause?: unknown;
1647
1642
  };
1648
- "new"(inner: {
1643
+ new(inner: {
1649
1644
  errorMessage: string;
1650
1645
  }): {
1651
1646
  readonly tag: BarkError_Tags.InsufficientFunds;
@@ -1659,7 +1654,7 @@ export declare const BarkError: Readonly<{
1659
1654
  readonly [uniffiTypeNameSymbol]: "BarkError";
1660
1655
  name: string;
1661
1656
  message: string;
1662
- stack?: string;
1657
+ stack?: string | undefined;
1663
1658
  cause?: unknown;
1664
1659
  };
1665
1660
  instanceOf(obj: any): obj is {
@@ -1674,7 +1669,7 @@ export declare const BarkError: Readonly<{
1674
1669
  readonly [uniffiTypeNameSymbol]: "BarkError";
1675
1670
  name: string;
1676
1671
  message: string;
1677
- stack?: string;
1672
+ stack?: string | undefined;
1678
1673
  cause?: unknown;
1679
1674
  };
1680
1675
  hasInner(obj: any): obj is {
@@ -1689,7 +1684,7 @@ export declare const BarkError: Readonly<{
1689
1684
  readonly [uniffiTypeNameSymbol]: "BarkError";
1690
1685
  name: string;
1691
1686
  message: string;
1692
- stack?: string;
1687
+ stack?: string | undefined;
1693
1688
  cause?: unknown;
1694
1689
  };
1695
1690
  getInner(obj: {
@@ -1704,13 +1699,12 @@ export declare const BarkError: Readonly<{
1704
1699
  readonly [uniffiTypeNameSymbol]: "BarkError";
1705
1700
  name: string;
1706
1701
  message: string;
1707
- stack?: string;
1702
+ stack?: string | undefined;
1708
1703
  cause?: unknown;
1709
1704
  }): Readonly<{
1710
1705
  errorMessage: string;
1711
1706
  }>;
1712
- isError(error: unknown): error is Error;
1713
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
1707
+ captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
1714
1708
  prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
1715
1709
  stackTraceLimit: number;
1716
1710
  };
@@ -1729,10 +1723,10 @@ export declare const BarkError: Readonly<{
1729
1723
  readonly [uniffiTypeNameSymbol]: "BarkError";
1730
1724
  name: string;
1731
1725
  message: string;
1732
- stack?: string;
1726
+ stack?: string | undefined;
1733
1727
  cause?: unknown;
1734
1728
  };
1735
- "new"(inner: {
1729
+ new(inner: {
1736
1730
  errorMessage: string;
1737
1731
  }): {
1738
1732
  readonly tag: BarkError_Tags.NotFound;
@@ -1746,7 +1740,7 @@ export declare const BarkError: Readonly<{
1746
1740
  readonly [uniffiTypeNameSymbol]: "BarkError";
1747
1741
  name: string;
1748
1742
  message: string;
1749
- stack?: string;
1743
+ stack?: string | undefined;
1750
1744
  cause?: unknown;
1751
1745
  };
1752
1746
  instanceOf(obj: any): obj is {
@@ -1761,7 +1755,7 @@ export declare const BarkError: Readonly<{
1761
1755
  readonly [uniffiTypeNameSymbol]: "BarkError";
1762
1756
  name: string;
1763
1757
  message: string;
1764
- stack?: string;
1758
+ stack?: string | undefined;
1765
1759
  cause?: unknown;
1766
1760
  };
1767
1761
  hasInner(obj: any): obj is {
@@ -1776,7 +1770,7 @@ export declare const BarkError: Readonly<{
1776
1770
  readonly [uniffiTypeNameSymbol]: "BarkError";
1777
1771
  name: string;
1778
1772
  message: string;
1779
- stack?: string;
1773
+ stack?: string | undefined;
1780
1774
  cause?: unknown;
1781
1775
  };
1782
1776
  getInner(obj: {
@@ -1791,13 +1785,12 @@ export declare const BarkError: Readonly<{
1791
1785
  readonly [uniffiTypeNameSymbol]: "BarkError";
1792
1786
  name: string;
1793
1787
  message: string;
1794
- stack?: string;
1788
+ stack?: string | undefined;
1795
1789
  cause?: unknown;
1796
1790
  }): Readonly<{
1797
1791
  errorMessage: string;
1798
1792
  }>;
1799
- isError(error: unknown): error is Error;
1800
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
1793
+ captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
1801
1794
  prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
1802
1795
  stackTraceLimit: number;
1803
1796
  };
@@ -1816,10 +1809,10 @@ export declare const BarkError: Readonly<{
1816
1809
  readonly [uniffiTypeNameSymbol]: "BarkError";
1817
1810
  name: string;
1818
1811
  message: string;
1819
- stack?: string;
1812
+ stack?: string | undefined;
1820
1813
  cause?: unknown;
1821
1814
  };
1822
- "new"(inner: {
1815
+ new(inner: {
1823
1816
  errorMessage: string;
1824
1817
  }): {
1825
1818
  readonly tag: BarkError_Tags.ServerConnection;
@@ -1833,7 +1826,7 @@ export declare const BarkError: Readonly<{
1833
1826
  readonly [uniffiTypeNameSymbol]: "BarkError";
1834
1827
  name: string;
1835
1828
  message: string;
1836
- stack?: string;
1829
+ stack?: string | undefined;
1837
1830
  cause?: unknown;
1838
1831
  };
1839
1832
  instanceOf(obj: any): obj is {
@@ -1848,7 +1841,7 @@ export declare const BarkError: Readonly<{
1848
1841
  readonly [uniffiTypeNameSymbol]: "BarkError";
1849
1842
  name: string;
1850
1843
  message: string;
1851
- stack?: string;
1844
+ stack?: string | undefined;
1852
1845
  cause?: unknown;
1853
1846
  };
1854
1847
  hasInner(obj: any): obj is {
@@ -1863,7 +1856,7 @@ export declare const BarkError: Readonly<{
1863
1856
  readonly [uniffiTypeNameSymbol]: "BarkError";
1864
1857
  name: string;
1865
1858
  message: string;
1866
- stack?: string;
1859
+ stack?: string | undefined;
1867
1860
  cause?: unknown;
1868
1861
  };
1869
1862
  getInner(obj: {
@@ -1878,13 +1871,12 @@ export declare const BarkError: Readonly<{
1878
1871
  readonly [uniffiTypeNameSymbol]: "BarkError";
1879
1872
  name: string;
1880
1873
  message: string;
1881
- stack?: string;
1874
+ stack?: string | undefined;
1882
1875
  cause?: unknown;
1883
1876
  }): Readonly<{
1884
1877
  errorMessage: string;
1885
1878
  }>;
1886
- isError(error: unknown): error is Error;
1887
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
1879
+ captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
1888
1880
  prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
1889
1881
  stackTraceLimit: number;
1890
1882
  };
@@ -1903,10 +1895,10 @@ export declare const BarkError: Readonly<{
1903
1895
  readonly [uniffiTypeNameSymbol]: "BarkError";
1904
1896
  name: string;
1905
1897
  message: string;
1906
- stack?: string;
1898
+ stack?: string | undefined;
1907
1899
  cause?: unknown;
1908
1900
  };
1909
- "new"(inner: {
1901
+ new(inner: {
1910
1902
  errorMessage: string;
1911
1903
  }): {
1912
1904
  readonly tag: BarkError_Tags.Internal;
@@ -1920,7 +1912,7 @@ export declare const BarkError: Readonly<{
1920
1912
  readonly [uniffiTypeNameSymbol]: "BarkError";
1921
1913
  name: string;
1922
1914
  message: string;
1923
- stack?: string;
1915
+ stack?: string | undefined;
1924
1916
  cause?: unknown;
1925
1917
  };
1926
1918
  instanceOf(obj: any): obj is {
@@ -1935,7 +1927,7 @@ export declare const BarkError: Readonly<{
1935
1927
  readonly [uniffiTypeNameSymbol]: "BarkError";
1936
1928
  name: string;
1937
1929
  message: string;
1938
- stack?: string;
1930
+ stack?: string | undefined;
1939
1931
  cause?: unknown;
1940
1932
  };
1941
1933
  hasInner(obj: any): obj is {
@@ -1950,7 +1942,7 @@ export declare const BarkError: Readonly<{
1950
1942
  readonly [uniffiTypeNameSymbol]: "BarkError";
1951
1943
  name: string;
1952
1944
  message: string;
1953
- stack?: string;
1945
+ stack?: string | undefined;
1954
1946
  cause?: unknown;
1955
1947
  };
1956
1948
  getInner(obj: {
@@ -1965,13 +1957,12 @@ export declare const BarkError: Readonly<{
1965
1957
  readonly [uniffiTypeNameSymbol]: "BarkError";
1966
1958
  name: string;
1967
1959
  message: string;
1968
- stack?: string;
1960
+ stack?: string | undefined;
1969
1961
  cause?: unknown;
1970
1962
  }): Readonly<{
1971
1963
  errorMessage: string;
1972
1964
  }>;
1973
- isError(error: unknown): error is Error;
1974
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
1965
+ captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
1975
1966
  prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
1976
1967
  stackTraceLimit: number;
1977
1968
  };
@@ -1990,10 +1981,10 @@ export declare const BarkError: Readonly<{
1990
1981
  readonly [uniffiTypeNameSymbol]: "BarkError";
1991
1982
  name: string;
1992
1983
  message: string;
1993
- stack?: string;
1984
+ stack?: string | undefined;
1994
1985
  cause?: unknown;
1995
1986
  };
1996
- "new"(inner: {
1987
+ new(inner: {
1997
1988
  errorMessage: string;
1998
1989
  }): {
1999
1990
  readonly tag: BarkError_Tags.OnchainWalletRequired;
@@ -2007,7 +1998,7 @@ export declare const BarkError: Readonly<{
2007
1998
  readonly [uniffiTypeNameSymbol]: "BarkError";
2008
1999
  name: string;
2009
2000
  message: string;
2010
- stack?: string;
2001
+ stack?: string | undefined;
2011
2002
  cause?: unknown;
2012
2003
  };
2013
2004
  instanceOf(obj: any): obj is {
@@ -2022,7 +2013,7 @@ export declare const BarkError: Readonly<{
2022
2013
  readonly [uniffiTypeNameSymbol]: "BarkError";
2023
2014
  name: string;
2024
2015
  message: string;
2025
- stack?: string;
2016
+ stack?: string | undefined;
2026
2017
  cause?: unknown;
2027
2018
  };
2028
2019
  hasInner(obj: any): obj is {
@@ -2037,7 +2028,7 @@ export declare const BarkError: Readonly<{
2037
2028
  readonly [uniffiTypeNameSymbol]: "BarkError";
2038
2029
  name: string;
2039
2030
  message: string;
2040
- stack?: string;
2031
+ stack?: string | undefined;
2041
2032
  cause?: unknown;
2042
2033
  };
2043
2034
  getInner(obj: {
@@ -2052,13 +2043,98 @@ export declare const BarkError: Readonly<{
2052
2043
  readonly [uniffiTypeNameSymbol]: "BarkError";
2053
2044
  name: string;
2054
2045
  message: string;
2055
- stack?: string;
2046
+ stack?: string | undefined;
2056
2047
  cause?: unknown;
2057
2048
  }): Readonly<{
2058
2049
  errorMessage: string;
2059
2050
  }>;
2060
- isError(error: unknown): error is Error;
2061
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
2051
+ captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
2052
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
2053
+ stackTraceLimit: number;
2054
+ };
2055
+ InvalidVtxoId: {
2056
+ new (inner: {
2057
+ errorMessage: string;
2058
+ }): {
2059
+ readonly tag: BarkError_Tags.InvalidVtxoId;
2060
+ readonly inner: Readonly<{
2061
+ errorMessage: string;
2062
+ }>;
2063
+ /**
2064
+ * @private
2065
+ * This field is private and should not be used, use `tag` instead.
2066
+ */
2067
+ readonly [uniffiTypeNameSymbol]: "BarkError";
2068
+ name: string;
2069
+ message: string;
2070
+ stack?: string | undefined;
2071
+ cause?: unknown;
2072
+ };
2073
+ new(inner: {
2074
+ errorMessage: string;
2075
+ }): {
2076
+ readonly tag: BarkError_Tags.InvalidVtxoId;
2077
+ readonly inner: Readonly<{
2078
+ errorMessage: string;
2079
+ }>;
2080
+ /**
2081
+ * @private
2082
+ * This field is private and should not be used, use `tag` instead.
2083
+ */
2084
+ readonly [uniffiTypeNameSymbol]: "BarkError";
2085
+ name: string;
2086
+ message: string;
2087
+ stack?: string | undefined;
2088
+ cause?: unknown;
2089
+ };
2090
+ instanceOf(obj: any): obj is {
2091
+ readonly tag: BarkError_Tags.InvalidVtxoId;
2092
+ readonly inner: Readonly<{
2093
+ errorMessage: string;
2094
+ }>;
2095
+ /**
2096
+ * @private
2097
+ * This field is private and should not be used, use `tag` instead.
2098
+ */
2099
+ readonly [uniffiTypeNameSymbol]: "BarkError";
2100
+ name: string;
2101
+ message: string;
2102
+ stack?: string | undefined;
2103
+ cause?: unknown;
2104
+ };
2105
+ hasInner(obj: any): obj is {
2106
+ readonly tag: BarkError_Tags.InvalidVtxoId;
2107
+ readonly inner: Readonly<{
2108
+ errorMessage: string;
2109
+ }>;
2110
+ /**
2111
+ * @private
2112
+ * This field is private and should not be used, use `tag` instead.
2113
+ */
2114
+ readonly [uniffiTypeNameSymbol]: "BarkError";
2115
+ name: string;
2116
+ message: string;
2117
+ stack?: string | undefined;
2118
+ cause?: unknown;
2119
+ };
2120
+ getInner(obj: {
2121
+ readonly tag: BarkError_Tags.InvalidVtxoId;
2122
+ readonly inner: Readonly<{
2123
+ errorMessage: string;
2124
+ }>;
2125
+ /**
2126
+ * @private
2127
+ * This field is private and should not be used, use `tag` instead.
2128
+ */
2129
+ readonly [uniffiTypeNameSymbol]: "BarkError";
2130
+ name: string;
2131
+ message: string;
2132
+ stack?: string | undefined;
2133
+ cause?: unknown;
2134
+ }): Readonly<{
2135
+ errorMessage: string;
2136
+ }>;
2137
+ captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
2062
2138
  prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
2063
2139
  stackTraceLimit: number;
2064
2140
  };
@@ -2235,6 +2311,10 @@ export interface WalletInterface {
2235
2311
  * * `fee_rate_sat_per_vb` - Optional fee rate override in sats/vB
2236
2312
  */
2237
2313
  drainExits(vtxoIds: Array<string>, address: string, feeRateSatPerVb: /*u64*/ bigint | undefined): ExitClaimTransaction;
2314
+ /**
2315
+ * Get the wallet's BIP32 fingerprint
2316
+ */
2317
+ fingerprint(): string;
2238
2318
  /**
2239
2319
  * Get detailed exit status for a specific VTXO
2240
2320
  *
@@ -2298,7 +2378,25 @@ export interface WalletInterface {
2298
2378
  * Returns exits ready to be drained to onchain wallet.
2299
2379
  */
2300
2380
  listClaimableExits(): Array<ExitVtxo>;
2381
+ /**
2382
+ * Get the mailbox identifier for push notifications
2383
+ *
2384
+ * This identifier can be registered with a push notification service
2385
+ * to receive alerts when VTXOs arrive in your mailbox. The mailbox
2386
+ * receives all incoming VTXOs regardless of source (arkoor payments,
2387
+ * Lightning receives, or round outputs).
2388
+ *
2389
+ * Returns the mailbox identifier as a hex-encoded public key.
2390
+ */
2391
+ mailboxIdentifier(): string;
2301
2392
  maintenance(): void;
2393
+ /**
2394
+ * Perform maintenance in delegated (non-interactive) mode
2395
+ *
2396
+ * This schedules refresh operations but doesn't wait for completion.
2397
+ * Use this when you want to queue operations without blocking.
2398
+ */
2399
+ maintenanceDelegated(): void;
2302
2400
  /**
2303
2401
  * Perform maintenance refresh
2304
2402
  */
@@ -2309,17 +2407,30 @@ export interface WalletInterface {
2309
2407
  * More thorough than maintenance() - also syncs onchain wallet and exits.
2310
2408
  */
2311
2409
  maintenanceWithOnchain(onchainWallet: OnchainWalletInterface): void;
2410
+ /**
2411
+ * Perform maintenance with onchain wallet in delegated mode
2412
+ */
2413
+ maintenanceWithOnchainDelegated(onchainWallet: OnchainWalletInterface): void;
2312
2414
  /**
2313
2415
  * Schedule a maintenance refresh if VTXOs need refreshing
2314
2416
  *
2315
2417
  * Returns the round ID if a refresh was scheduled, null otherwise.
2316
2418
  */
2317
2419
  maybeScheduleMaintenanceRefresh(): /*throws*/ /*u32*/ number | undefined;
2420
+ /**
2421
+ * Get the Bitcoin network this wallet is using
2422
+ */
2423
+ network(): Network;
2318
2424
  newAddress(): string;
2319
2425
  /**
2320
2426
  * Generate a new address and return it with its index
2321
2427
  */
2322
2428
  newAddressWithIndex(): AddressWithIndex;
2429
+ /**
2430
+ * Get the timestamp when the next round will start (Unix timestamp in seconds)
2431
+ * Returns an error if the server hasn't provided round timing info
2432
+ */
2433
+ nextRoundStartTime(): bigint;
2323
2434
  offboardAll(bitcoinAddress: string): OffboardResult;
2324
2435
  /**
2325
2436
  * Offboard specific VTXOs to a Bitcoin address
@@ -2340,6 +2451,14 @@ export interface WalletInterface {
2340
2451
  * Peek at an address at a specific index
2341
2452
  */
2342
2453
  peakAddress(index: number): string;
2454
+ /**
2455
+ * Get all VTXOs that are part of pending boards
2456
+ */
2457
+ pendingBoardVtxos(): Array<Vtxo>;
2458
+ /**
2459
+ * Get all pending board operations
2460
+ */
2461
+ pendingBoards(): Array<PendingBoard>;
2343
2462
  /**
2344
2463
  * Get total amount in pending exits (sats)
2345
2464
  */
@@ -2348,10 +2467,18 @@ export interface WalletInterface {
2348
2467
  * Get all pending lightning receives
2349
2468
  */
2350
2469
  pendingLightningReceives(): Array<LightningReceive>;
2470
+ /**
2471
+ * Get VTXOs locked in pending Lightning sends
2472
+ */
2473
+ pendingLightningSendVtxos(): Array<Vtxo>;
2351
2474
  /**
2352
2475
  * Get all pending lightning sends
2353
2476
  */
2354
2477
  pendingLightningSends(): Array<LightningSend>;
2478
+ /**
2479
+ * Get VTXOs being used as inputs in pending rounds
2480
+ */
2481
+ pendingRoundInputVtxos(): Array<Vtxo>;
2355
2482
  /**
2356
2483
  * Get all pending round states
2357
2484
  */
@@ -2374,6 +2501,9 @@ export interface WalletInterface {
2374
2501
  * Advances the state of all pending rounds. Call periodically.
2375
2502
  */
2376
2503
  progressPendingRounds(): void;
2504
+ /**
2505
+ * Get wallet properties
2506
+ */
2377
2507
  properties(): WalletProperties;
2378
2508
  /**
2379
2509
  * Refresh the Ark server connection
@@ -2385,11 +2515,14 @@ export interface WalletInterface {
2385
2515
  * Refresh specific VTXOs
2386
2516
  */
2387
2517
  refreshVtxos(vtxoIds: Array<string>): /*throws*/ string | undefined;
2388
- sendArkoorPayment(arkAddress: string, amountSats: bigint): string;
2389
2518
  /**
2390
- * Send an onchain payment during a round
2519
+ * Refresh VTXOs in delegated (non-interactive) mode
2520
+ *
2521
+ * Returns the round state if a refresh was scheduled, null otherwise.
2391
2522
  */
2392
- sendRoundOnchainPayment(address: string, amountSats: bigint): string;
2523
+ refreshVtxosDelegated(vtxoIds: Array<string>): /*throws*/ RoundState | undefined;
2524
+ sendArkoorPayment(arkAddress: string, amountSats: bigint): string;
2525
+ sendOnchain(address: string, amountSats: bigint): string;
2393
2526
  /**
2394
2527
  * Sign exit claim inputs in an external PSBT
2395
2528
  *
@@ -2552,6 +2685,10 @@ export declare class Wallet extends UniffiAbstractObject implements WalletInterf
2552
2685
  * * `fee_rate_sat_per_vb` - Optional fee rate override in sats/vB
2553
2686
  */
2554
2687
  drainExits(vtxoIds: Array<string>, address: string, feeRateSatPerVb: /*u64*/ bigint | undefined): ExitClaimTransaction;
2688
+ /**
2689
+ * Get the wallet's BIP32 fingerprint
2690
+ */
2691
+ fingerprint(): string;
2555
2692
  /**
2556
2693
  * Get detailed exit status for a specific VTXO
2557
2694
  *
@@ -2615,7 +2752,25 @@ export declare class Wallet extends UniffiAbstractObject implements WalletInterf
2615
2752
  * Returns exits ready to be drained to onchain wallet.
2616
2753
  */
2617
2754
  listClaimableExits(): Array<ExitVtxo>;
2755
+ /**
2756
+ * Get the mailbox identifier for push notifications
2757
+ *
2758
+ * This identifier can be registered with a push notification service
2759
+ * to receive alerts when VTXOs arrive in your mailbox. The mailbox
2760
+ * receives all incoming VTXOs regardless of source (arkoor payments,
2761
+ * Lightning receives, or round outputs).
2762
+ *
2763
+ * Returns the mailbox identifier as a hex-encoded public key.
2764
+ */
2765
+ mailboxIdentifier(): string;
2618
2766
  maintenance(): void;
2767
+ /**
2768
+ * Perform maintenance in delegated (non-interactive) mode
2769
+ *
2770
+ * This schedules refresh operations but doesn't wait for completion.
2771
+ * Use this when you want to queue operations without blocking.
2772
+ */
2773
+ maintenanceDelegated(): void;
2619
2774
  /**
2620
2775
  * Perform maintenance refresh
2621
2776
  */
@@ -2626,17 +2781,30 @@ export declare class Wallet extends UniffiAbstractObject implements WalletInterf
2626
2781
  * More thorough than maintenance() - also syncs onchain wallet and exits.
2627
2782
  */
2628
2783
  maintenanceWithOnchain(onchainWallet: OnchainWalletInterface): void;
2784
+ /**
2785
+ * Perform maintenance with onchain wallet in delegated mode
2786
+ */
2787
+ maintenanceWithOnchainDelegated(onchainWallet: OnchainWalletInterface): void;
2629
2788
  /**
2630
2789
  * Schedule a maintenance refresh if VTXOs need refreshing
2631
2790
  *
2632
2791
  * Returns the round ID if a refresh was scheduled, null otherwise.
2633
2792
  */
2634
2793
  maybeScheduleMaintenanceRefresh(): number | undefined;
2794
+ /**
2795
+ * Get the Bitcoin network this wallet is using
2796
+ */
2797
+ network(): Network;
2635
2798
  newAddress(): string;
2636
2799
  /**
2637
2800
  * Generate a new address and return it with its index
2638
2801
  */
2639
2802
  newAddressWithIndex(): AddressWithIndex;
2803
+ /**
2804
+ * Get the timestamp when the next round will start (Unix timestamp in seconds)
2805
+ * Returns an error if the server hasn't provided round timing info
2806
+ */
2807
+ nextRoundStartTime(): bigint;
2640
2808
  offboardAll(bitcoinAddress: string): OffboardResult;
2641
2809
  /**
2642
2810
  * Offboard specific VTXOs to a Bitcoin address
@@ -2657,6 +2825,14 @@ export declare class Wallet extends UniffiAbstractObject implements WalletInterf
2657
2825
  * Peek at an address at a specific index
2658
2826
  */
2659
2827
  peakAddress(index: number): string;
2828
+ /**
2829
+ * Get all VTXOs that are part of pending boards
2830
+ */
2831
+ pendingBoardVtxos(): Array<Vtxo>;
2832
+ /**
2833
+ * Get all pending board operations
2834
+ */
2835
+ pendingBoards(): Array<PendingBoard>;
2660
2836
  /**
2661
2837
  * Get total amount in pending exits (sats)
2662
2838
  */
@@ -2665,10 +2841,18 @@ export declare class Wallet extends UniffiAbstractObject implements WalletInterf
2665
2841
  * Get all pending lightning receives
2666
2842
  */
2667
2843
  pendingLightningReceives(): Array<LightningReceive>;
2844
+ /**
2845
+ * Get VTXOs locked in pending Lightning sends
2846
+ */
2847
+ pendingLightningSendVtxos(): Array<Vtxo>;
2668
2848
  /**
2669
2849
  * Get all pending lightning sends
2670
2850
  */
2671
2851
  pendingLightningSends(): Array<LightningSend>;
2852
+ /**
2853
+ * Get VTXOs being used as inputs in pending rounds
2854
+ */
2855
+ pendingRoundInputVtxos(): Array<Vtxo>;
2672
2856
  /**
2673
2857
  * Get all pending round states
2674
2858
  */
@@ -2691,6 +2875,9 @@ export declare class Wallet extends UniffiAbstractObject implements WalletInterf
2691
2875
  * Advances the state of all pending rounds. Call periodically.
2692
2876
  */
2693
2877
  progressPendingRounds(): void;
2878
+ /**
2879
+ * Get wallet properties
2880
+ */
2694
2881
  properties(): WalletProperties;
2695
2882
  /**
2696
2883
  * Refresh the Ark server connection
@@ -2702,11 +2889,14 @@ export declare class Wallet extends UniffiAbstractObject implements WalletInterf
2702
2889
  * Refresh specific VTXOs
2703
2890
  */
2704
2891
  refreshVtxos(vtxoIds: Array<string>): string | undefined;
2705
- sendArkoorPayment(arkAddress: string, amountSats: bigint): string;
2706
2892
  /**
2707
- * Send an onchain payment during a round
2893
+ * Refresh VTXOs in delegated (non-interactive) mode
2894
+ *
2895
+ * Returns the round state if a refresh was scheduled, null otherwise.
2708
2896
  */
2709
- sendRoundOnchainPayment(address: string, amountSats: bigint): string;
2897
+ refreshVtxosDelegated(vtxoIds: Array<string>): RoundState | undefined;
2898
+ sendArkoorPayment(arkAddress: string, amountSats: bigint): string;
2899
+ sendOnchain(address: string, amountSats: bigint): string;
2710
2900
  /**
2711
2901
  * Sign exit claim inputs in an external PSBT
2712
2902
  *
@@ -2791,171 +2981,171 @@ declare const _default: Readonly<{
2791
2981
  read(from: RustBuffer): AddressWithIndex;
2792
2982
  write(value: AddressWithIndex, into: RustBuffer): void;
2793
2983
  allocationSize(value: AddressWithIndex): number;
2794
- lift(value: UniffiByteArray): AddressWithIndex;
2795
- lower(value: AddressWithIndex): UniffiByteArray;
2984
+ lift(value: Uint8Array): AddressWithIndex;
2985
+ lower(value: AddressWithIndex): Uint8Array;
2796
2986
  };
2797
2987
  FfiConverterTypeArkInfo: {
2798
2988
  read(from: RustBuffer): ArkInfo;
2799
2989
  write(value: ArkInfo, into: RustBuffer): void;
2800
2990
  allocationSize(value: ArkInfo): number;
2801
- lift(value: UniffiByteArray): ArkInfo;
2802
- lower(value: ArkInfo): UniffiByteArray;
2991
+ lift(value: Uint8Array): ArkInfo;
2992
+ lower(value: ArkInfo): Uint8Array;
2803
2993
  };
2804
2994
  FfiConverterTypeBalance: {
2805
2995
  read(from: RustBuffer): Balance;
2806
2996
  write(value: Balance, into: RustBuffer): void;
2807
2997
  allocationSize(value: Balance): number;
2808
- lift(value: UniffiByteArray): Balance;
2809
- lower(value: Balance): UniffiByteArray;
2998
+ lift(value: Uint8Array): Balance;
2999
+ lower(value: Balance): Uint8Array;
2810
3000
  };
2811
3001
  FfiConverterTypeBarkError: {
2812
3002
  read(from: RustBuffer): BarkError;
2813
3003
  write(value: BarkError, into: RustBuffer): void;
2814
3004
  allocationSize(value: BarkError): number;
2815
- lift(value: UniffiByteArray): BarkError;
2816
- lower(value: BarkError): UniffiByteArray;
3005
+ lift(value: Uint8Array): BarkError;
3006
+ lower(value: BarkError): Uint8Array;
2817
3007
  };
2818
3008
  FfiConverterTypeBlockRef: {
2819
3009
  read(from: RustBuffer): BlockRef;
2820
3010
  write(value: BlockRef, into: RustBuffer): void;
2821
3011
  allocationSize(value: BlockRef): number;
2822
- lift(value: UniffiByteArray): BlockRef;
2823
- lower(value: BlockRef): UniffiByteArray;
3012
+ lift(value: Uint8Array): BlockRef;
3013
+ lower(value: BlockRef): Uint8Array;
2824
3014
  };
2825
3015
  FfiConverterTypeConfig: {
2826
3016
  read(from: RustBuffer): Config;
2827
3017
  write(value: Config, into: RustBuffer): void;
2828
3018
  allocationSize(value: Config): number;
2829
- lift(value: UniffiByteArray): Config;
2830
- lower(value: Config): UniffiByteArray;
3019
+ lift(value: Uint8Array): Config;
3020
+ lower(value: Config): Uint8Array;
2831
3021
  };
2832
3022
  FfiConverterTypeCpfpParams: {
2833
3023
  read(from: RustBuffer): CpfpParams;
2834
3024
  write(value: CpfpParams, into: RustBuffer): void;
2835
3025
  allocationSize(value: CpfpParams): number;
2836
- lift(value: UniffiByteArray): CpfpParams;
2837
- lower(value: CpfpParams): UniffiByteArray;
3026
+ lift(value: Uint8Array): CpfpParams;
3027
+ lower(value: CpfpParams): Uint8Array;
2838
3028
  };
2839
3029
  FfiConverterTypeDestination: {
2840
3030
  read(from: RustBuffer): Destination;
2841
3031
  write(value: Destination, into: RustBuffer): void;
2842
3032
  allocationSize(value: Destination): number;
2843
- lift(value: UniffiByteArray): Destination;
2844
- lower(value: Destination): UniffiByteArray;
3033
+ lift(value: Uint8Array): Destination;
3034
+ lower(value: Destination): Uint8Array;
2845
3035
  };
2846
3036
  FfiConverterTypeExitClaimTransaction: {
2847
3037
  read(from: RustBuffer): ExitClaimTransaction;
2848
3038
  write(value: ExitClaimTransaction, into: RustBuffer): void;
2849
3039
  allocationSize(value: ExitClaimTransaction): number;
2850
- lift(value: UniffiByteArray): ExitClaimTransaction;
2851
- lower(value: ExitClaimTransaction): UniffiByteArray;
3040
+ lift(value: Uint8Array): ExitClaimTransaction;
3041
+ lower(value: ExitClaimTransaction): Uint8Array;
2852
3042
  };
2853
3043
  FfiConverterTypeExitProgressStatus: {
2854
3044
  read(from: RustBuffer): ExitProgressStatus;
2855
3045
  write(value: ExitProgressStatus, into: RustBuffer): void;
2856
3046
  allocationSize(value: ExitProgressStatus): number;
2857
- lift(value: UniffiByteArray): ExitProgressStatus;
2858
- lower(value: ExitProgressStatus): UniffiByteArray;
3047
+ lift(value: Uint8Array): ExitProgressStatus;
3048
+ lower(value: ExitProgressStatus): Uint8Array;
2859
3049
  };
2860
3050
  FfiConverterTypeExitTransactionStatus: {
2861
3051
  read(from: RustBuffer): ExitTransactionStatus;
2862
3052
  write(value: ExitTransactionStatus, into: RustBuffer): void;
2863
3053
  allocationSize(value: ExitTransactionStatus): number;
2864
- lift(value: UniffiByteArray): ExitTransactionStatus;
2865
- lower(value: ExitTransactionStatus): UniffiByteArray;
3054
+ lift(value: Uint8Array): ExitTransactionStatus;
3055
+ lower(value: ExitTransactionStatus): Uint8Array;
2866
3056
  };
2867
3057
  FfiConverterTypeExitVtxo: {
2868
3058
  read(from: RustBuffer): ExitVtxo;
2869
3059
  write(value: ExitVtxo, into: RustBuffer): void;
2870
3060
  allocationSize(value: ExitVtxo): number;
2871
- lift(value: UniffiByteArray): ExitVtxo;
2872
- lower(value: ExitVtxo): UniffiByteArray;
3061
+ lift(value: Uint8Array): ExitVtxo;
3062
+ lower(value: ExitVtxo): Uint8Array;
2873
3063
  };
2874
3064
  FfiConverterTypeLightningInvoice: {
2875
3065
  read(from: RustBuffer): LightningInvoice;
2876
3066
  write(value: LightningInvoice, into: RustBuffer): void;
2877
3067
  allocationSize(value: LightningInvoice): number;
2878
- lift(value: UniffiByteArray): LightningInvoice;
2879
- lower(value: LightningInvoice): UniffiByteArray;
3068
+ lift(value: Uint8Array): LightningInvoice;
3069
+ lower(value: LightningInvoice): Uint8Array;
2880
3070
  };
2881
3071
  FfiConverterTypeLightningReceive: {
2882
3072
  read(from: RustBuffer): LightningReceive;
2883
3073
  write(value: LightningReceive, into: RustBuffer): void;
2884
3074
  allocationSize(value: LightningReceive): number;
2885
- lift(value: UniffiByteArray): LightningReceive;
2886
- lower(value: LightningReceive): UniffiByteArray;
3075
+ lift(value: Uint8Array): LightningReceive;
3076
+ lower(value: LightningReceive): Uint8Array;
2887
3077
  };
2888
3078
  FfiConverterTypeLightningSend: {
2889
3079
  read(from: RustBuffer): LightningSend;
2890
3080
  write(value: LightningSend, into: RustBuffer): void;
2891
3081
  allocationSize(value: LightningSend): number;
2892
- lift(value: UniffiByteArray): LightningSend;
2893
- lower(value: LightningSend): UniffiByteArray;
3082
+ lift(value: Uint8Array): LightningSend;
3083
+ lower(value: LightningSend): Uint8Array;
2894
3084
  };
2895
3085
  FfiConverterTypeMovement: {
2896
3086
  read(from: RustBuffer): Movement;
2897
3087
  write(value: Movement, into: RustBuffer): void;
2898
3088
  allocationSize(value: Movement): number;
2899
- lift(value: UniffiByteArray): Movement;
2900
- lower(value: Movement): UniffiByteArray;
3089
+ lift(value: Uint8Array): Movement;
3090
+ lower(value: Movement): Uint8Array;
2901
3091
  };
2902
3092
  FfiConverterTypeNetwork: {
2903
3093
  read(from: RustBuffer): Network;
2904
3094
  write(value: Network, into: RustBuffer): void;
2905
3095
  allocationSize(value: Network): number;
2906
- lift(value: UniffiByteArray): Network;
2907
- lower(value: Network): UniffiByteArray;
3096
+ lift(value: Uint8Array): Network;
3097
+ lower(value: Network): Uint8Array;
2908
3098
  };
2909
3099
  FfiConverterTypeOffboardResult: {
2910
3100
  read(from: RustBuffer): OffboardResult;
2911
3101
  write(value: OffboardResult, into: RustBuffer): void;
2912
3102
  allocationSize(value: OffboardResult): number;
2913
- lift(value: UniffiByteArray): OffboardResult;
2914
- lower(value: OffboardResult): UniffiByteArray;
3103
+ lift(value: Uint8Array): OffboardResult;
3104
+ lower(value: OffboardResult): Uint8Array;
2915
3105
  };
2916
3106
  FfiConverterTypeOnchainBalance: {
2917
3107
  read(from: RustBuffer): OnchainBalance;
2918
3108
  write(value: OnchainBalance, into: RustBuffer): void;
2919
3109
  allocationSize(value: OnchainBalance): number;
2920
- lift(value: UniffiByteArray): OnchainBalance;
2921
- lower(value: OnchainBalance): UniffiByteArray;
3110
+ lift(value: Uint8Array): OnchainBalance;
3111
+ lower(value: OnchainBalance): Uint8Array;
2922
3112
  };
2923
3113
  FfiConverterTypeOnchainWallet: FfiConverterObject<OnchainWalletInterface>;
2924
3114
  FfiConverterTypeOutPoint: {
2925
3115
  read(from: RustBuffer): OutPoint;
2926
3116
  write(value: OutPoint, into: RustBuffer): void;
2927
3117
  allocationSize(value: OutPoint): number;
2928
- lift(value: UniffiByteArray): OutPoint;
2929
- lower(value: OutPoint): UniffiByteArray;
3118
+ lift(value: Uint8Array): OutPoint;
3119
+ lower(value: OutPoint): Uint8Array;
2930
3120
  };
2931
3121
  FfiConverterTypePendingBoard: {
2932
3122
  read(from: RustBuffer): PendingBoard;
2933
3123
  write(value: PendingBoard, into: RustBuffer): void;
2934
3124
  allocationSize(value: PendingBoard): number;
2935
- lift(value: UniffiByteArray): PendingBoard;
2936
- lower(value: PendingBoard): UniffiByteArray;
3125
+ lift(value: Uint8Array): PendingBoard;
3126
+ lower(value: PendingBoard): Uint8Array;
2937
3127
  };
2938
3128
  FfiConverterTypeRoundState: {
2939
3129
  read(from: RustBuffer): RoundState;
2940
3130
  write(value: RoundState, into: RustBuffer): void;
2941
3131
  allocationSize(value: RoundState): number;
2942
- lift(value: UniffiByteArray): RoundState;
2943
- lower(value: RoundState): UniffiByteArray;
3132
+ lift(value: Uint8Array): RoundState;
3133
+ lower(value: RoundState): Uint8Array;
2944
3134
  };
2945
3135
  FfiConverterTypeVtxo: {
2946
3136
  read(from: RustBuffer): Vtxo;
2947
3137
  write(value: Vtxo, into: RustBuffer): void;
2948
3138
  allocationSize(value: Vtxo): number;
2949
- lift(value: UniffiByteArray): Vtxo;
2950
- lower(value: Vtxo): UniffiByteArray;
3139
+ lift(value: Uint8Array): Vtxo;
3140
+ lower(value: Vtxo): Uint8Array;
2951
3141
  };
2952
3142
  FfiConverterTypeWallet: FfiConverterObject<WalletInterface>;
2953
3143
  FfiConverterTypeWalletProperties: {
2954
3144
  read(from: RustBuffer): WalletProperties;
2955
3145
  write(value: WalletProperties, into: RustBuffer): void;
2956
3146
  allocationSize(value: WalletProperties): number;
2957
- lift(value: UniffiByteArray): WalletProperties;
2958
- lower(value: WalletProperties): UniffiByteArray;
3147
+ lift(value: Uint8Array): WalletProperties;
3148
+ lower(value: WalletProperties): Uint8Array;
2959
3149
  };
2960
3150
  };
2961
3151
  }>;