@breeztech/breez-sdk-spark-react-native 0.1.8-dev3 → 0.1.9-dev1

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