@breeztech/breez-sdk-spark-react-native 0.3.4 → 0.4.0-dev3

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 (50) hide show
  1. package/android/CMakeLists.txt +0 -1
  2. package/cpp/breeztech-breez-sdk-spark-react-native.cpp +0 -2
  3. package/cpp/generated/breez_sdk_spark.cpp +4822 -825
  4. package/cpp/generated/breez_sdk_spark.hpp +185 -6
  5. package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
  6. package/lib/commonjs/generated/breez_sdk_spark.js +1244 -7338
  7. package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
  8. package/lib/commonjs/index.js +0 -14
  9. package/lib/commonjs/index.js.map +1 -1
  10. package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
  11. package/lib/module/generated/breez_sdk_spark.js +1245 -7323
  12. package/lib/module/generated/breez_sdk_spark.js.map +1 -1
  13. package/lib/module/index.js +0 -4
  14. package/lib/module/index.js.map +1 -1
  15. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +92 -3
  16. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  17. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +4997 -1208
  18. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
  19. package/lib/typescript/commonjs/src/index.d.ts +0 -3
  20. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  21. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +92 -3
  22. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  23. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +4997 -1208
  24. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
  25. package/lib/typescript/module/src/index.d.ts +0 -3
  26. package/lib/typescript/module/src/index.d.ts.map +1 -1
  27. package/package.json +1 -1
  28. package/src/generated/breez_sdk_spark-ffi.ts +260 -6
  29. package/src/generated/breez_sdk_spark.ts +15269 -7810
  30. package/src/index.tsx +0 -4
  31. package/cpp/generated/breez_sdk_common.cpp +0 -4486
  32. package/cpp/generated/breez_sdk_common.hpp +0 -280
  33. package/lib/commonjs/generated/breez_sdk_common-ffi.js +0 -44
  34. package/lib/commonjs/generated/breez_sdk_common-ffi.js.map +0 -1
  35. package/lib/commonjs/generated/breez_sdk_common.js +0 -4010
  36. package/lib/commonjs/generated/breez_sdk_common.js.map +0 -1
  37. package/lib/module/generated/breez_sdk_common-ffi.js +0 -43
  38. package/lib/module/generated/breez_sdk_common-ffi.js.map +0 -1
  39. package/lib/module/generated/breez_sdk_common.js +0 -4003
  40. package/lib/module/generated/breez_sdk_common.js.map +0 -1
  41. package/lib/typescript/commonjs/src/generated/breez_sdk_common-ffi.d.ts +0 -167
  42. package/lib/typescript/commonjs/src/generated/breez_sdk_common-ffi.d.ts.map +0 -1
  43. package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts +0 -3191
  44. package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts.map +0 -1
  45. package/lib/typescript/module/src/generated/breez_sdk_common-ffi.d.ts +0 -167
  46. package/lib/typescript/module/src/generated/breez_sdk_common-ffi.d.ts.map +0 -1
  47. package/lib/typescript/module/src/generated/breez_sdk_common.d.ts +0 -3191
  48. package/lib/typescript/module/src/generated/breez_sdk_common.d.ts.map +0 -1
  49. package/src/generated/breez_sdk_common-ffi.ts +0 -432
  50. package/src/generated/breez_sdk_common.ts +0 -5700
@@ -1,3191 +0,0 @@
1
- import { type UniffiByteArray, type UniffiRustArcPtr, type UnsafeMutableRawPointer, FfiConverterObjectWithCallbacks, RustBuffer, UniffiAbstractObject, destructorGuardSymbol, pointerLiteralSymbol, uniffiTypeNameSymbol } from 'uniffi-bindgen-react-native';
2
- /**
3
- * Payload of the AES success action, as received from the LNURL endpoint
4
- *
5
- * See [`AesSuccessActionDataDecrypted`] for a similar wrapper containing the decrypted payload
6
- */
7
- export type AesSuccessActionData = {
8
- /**
9
- * Contents description, up to 144 characters
10
- */
11
- description: string;
12
- /**
13
- * Base64, AES-encrypted data where encryption key is payment preimage, up to 4kb of characters
14
- */
15
- ciphertext: string;
16
- /**
17
- * Base64, initialization vector, exactly 24 characters
18
- */
19
- iv: string;
20
- };
21
- /**
22
- * Generated factory for {@link AesSuccessActionData} record objects.
23
- */
24
- export declare const AesSuccessActionData: Readonly<{
25
- /**
26
- * Create a frozen instance of {@link AesSuccessActionData}, with defaults specified
27
- * in Rust, in the {@link breez_sdk_common} crate.
28
- */
29
- create: (partial: Partial<AesSuccessActionData> & Required<Omit<AesSuccessActionData, never>>) => AesSuccessActionData;
30
- /**
31
- * Create a frozen instance of {@link AesSuccessActionData}, with defaults specified
32
- * in Rust, in the {@link breez_sdk_common} crate.
33
- */
34
- new: (partial: Partial<AesSuccessActionData> & Required<Omit<AesSuccessActionData, never>>) => AesSuccessActionData;
35
- /**
36
- * Defaults specified in the {@link breez_sdk_common} crate.
37
- */
38
- defaults: () => Partial<AesSuccessActionData>;
39
- }>;
40
- /**
41
- * Wrapper for the decrypted [`AesSuccessActionData`] payload
42
- */
43
- export type AesSuccessActionDataDecrypted = {
44
- /**
45
- * Contents description, up to 144 characters
46
- */
47
- description: string;
48
- /**
49
- * Decrypted content
50
- */
51
- plaintext: string;
52
- };
53
- /**
54
- * Generated factory for {@link AesSuccessActionDataDecrypted} record objects.
55
- */
56
- export declare const AesSuccessActionDataDecrypted: Readonly<{
57
- /**
58
- * Create a frozen instance of {@link AesSuccessActionDataDecrypted}, with defaults specified
59
- * in Rust, in the {@link breez_sdk_common} crate.
60
- */
61
- create: (partial: Partial<AesSuccessActionDataDecrypted> & Required<Omit<AesSuccessActionDataDecrypted, never>>) => AesSuccessActionDataDecrypted;
62
- /**
63
- * Create a frozen instance of {@link AesSuccessActionDataDecrypted}, with defaults specified
64
- * in Rust, in the {@link breez_sdk_common} crate.
65
- */
66
- new: (partial: Partial<AesSuccessActionDataDecrypted> & Required<Omit<AesSuccessActionDataDecrypted, never>>) => AesSuccessActionDataDecrypted;
67
- /**
68
- * Defaults specified in the {@link breez_sdk_common} crate.
69
- */
70
- defaults: () => Partial<AesSuccessActionDataDecrypted>;
71
- }>;
72
- export type Bip21Details = {
73
- amountSat: /*u64*/ bigint | undefined;
74
- assetId: string | undefined;
75
- uri: string;
76
- extras: Array<Bip21Extra>;
77
- label: string | undefined;
78
- message: string | undefined;
79
- paymentMethods: Array<InputType>;
80
- };
81
- /**
82
- * Generated factory for {@link Bip21Details} record objects.
83
- */
84
- export declare const Bip21Details: Readonly<{
85
- /**
86
- * Create a frozen instance of {@link Bip21Details}, with defaults specified
87
- * in Rust, in the {@link breez_sdk_common} crate.
88
- */
89
- create: (partial: Partial<Bip21Details> & Required<Omit<Bip21Details, never>>) => Bip21Details;
90
- /**
91
- * Create a frozen instance of {@link Bip21Details}, with defaults specified
92
- * in Rust, in the {@link breez_sdk_common} crate.
93
- */
94
- new: (partial: Partial<Bip21Details> & Required<Omit<Bip21Details, never>>) => Bip21Details;
95
- /**
96
- * Defaults specified in the {@link breez_sdk_common} crate.
97
- */
98
- defaults: () => Partial<Bip21Details>;
99
- }>;
100
- export type Bip21Extra = {
101
- key: string;
102
- value: string;
103
- };
104
- /**
105
- * Generated factory for {@link Bip21Extra} record objects.
106
- */
107
- export declare const Bip21Extra: Readonly<{
108
- /**
109
- * Create a frozen instance of {@link Bip21Extra}, with defaults specified
110
- * in Rust, in the {@link breez_sdk_common} crate.
111
- */
112
- create: (partial: Partial<Bip21Extra> & Required<Omit<Bip21Extra, never>>) => Bip21Extra;
113
- /**
114
- * Create a frozen instance of {@link Bip21Extra}, with defaults specified
115
- * in Rust, in the {@link breez_sdk_common} crate.
116
- */
117
- new: (partial: Partial<Bip21Extra> & Required<Omit<Bip21Extra, never>>) => Bip21Extra;
118
- /**
119
- * Defaults specified in the {@link breez_sdk_common} crate.
120
- */
121
- defaults: () => Partial<Bip21Extra>;
122
- }>;
123
- export type BitcoinAddressDetails = {
124
- address: string;
125
- network: BitcoinNetwork;
126
- source: PaymentRequestSource;
127
- };
128
- /**
129
- * Generated factory for {@link BitcoinAddressDetails} record objects.
130
- */
131
- export declare const BitcoinAddressDetails: Readonly<{
132
- /**
133
- * Create a frozen instance of {@link BitcoinAddressDetails}, with defaults specified
134
- * in Rust, in the {@link breez_sdk_common} crate.
135
- */
136
- create: (partial: Partial<BitcoinAddressDetails> & Required<Omit<BitcoinAddressDetails, never>>) => BitcoinAddressDetails;
137
- /**
138
- * Create a frozen instance of {@link BitcoinAddressDetails}, with defaults specified
139
- * in Rust, in the {@link breez_sdk_common} crate.
140
- */
141
- new: (partial: Partial<BitcoinAddressDetails> & Required<Omit<BitcoinAddressDetails, never>>) => BitcoinAddressDetails;
142
- /**
143
- * Defaults specified in the {@link breez_sdk_common} crate.
144
- */
145
- defaults: () => Partial<BitcoinAddressDetails>;
146
- }>;
147
- export type Bolt11Invoice = {
148
- bolt11: string;
149
- source: PaymentRequestSource;
150
- };
151
- /**
152
- * Generated factory for {@link Bolt11Invoice} record objects.
153
- */
154
- export declare const Bolt11Invoice: Readonly<{
155
- /**
156
- * Create a frozen instance of {@link Bolt11Invoice}, with defaults specified
157
- * in Rust, in the {@link breez_sdk_common} crate.
158
- */
159
- create: (partial: Partial<Bolt11Invoice> & Required<Omit<Bolt11Invoice, never>>) => Bolt11Invoice;
160
- /**
161
- * Create a frozen instance of {@link Bolt11Invoice}, with defaults specified
162
- * in Rust, in the {@link breez_sdk_common} crate.
163
- */
164
- new: (partial: Partial<Bolt11Invoice> & Required<Omit<Bolt11Invoice, never>>) => Bolt11Invoice;
165
- /**
166
- * Defaults specified in the {@link breez_sdk_common} crate.
167
- */
168
- defaults: () => Partial<Bolt11Invoice>;
169
- }>;
170
- export type Bolt11InvoiceDetails = {
171
- amountMsat: /*u64*/ bigint | undefined;
172
- description: string | undefined;
173
- descriptionHash: string | undefined;
174
- expiry: bigint;
175
- invoice: Bolt11Invoice;
176
- minFinalCltvExpiryDelta: bigint;
177
- network: BitcoinNetwork;
178
- payeePubkey: string;
179
- paymentHash: string;
180
- paymentSecret: string;
181
- routingHints: Array<Bolt11RouteHint>;
182
- timestamp: bigint;
183
- };
184
- /**
185
- * Generated factory for {@link Bolt11InvoiceDetails} record objects.
186
- */
187
- export declare const Bolt11InvoiceDetails: Readonly<{
188
- /**
189
- * Create a frozen instance of {@link Bolt11InvoiceDetails}, with defaults specified
190
- * in Rust, in the {@link breez_sdk_common} crate.
191
- */
192
- create: (partial: Partial<Bolt11InvoiceDetails> & Required<Omit<Bolt11InvoiceDetails, never>>) => Bolt11InvoiceDetails;
193
- /**
194
- * Create a frozen instance of {@link Bolt11InvoiceDetails}, with defaults specified
195
- * in Rust, in the {@link breez_sdk_common} crate.
196
- */
197
- new: (partial: Partial<Bolt11InvoiceDetails> & Required<Omit<Bolt11InvoiceDetails, never>>) => Bolt11InvoiceDetails;
198
- /**
199
- * Defaults specified in the {@link breez_sdk_common} crate.
200
- */
201
- defaults: () => Partial<Bolt11InvoiceDetails>;
202
- }>;
203
- export type Bolt11RouteHint = {
204
- hops: Array<Bolt11RouteHintHop>;
205
- };
206
- /**
207
- * Generated factory for {@link Bolt11RouteHint} record objects.
208
- */
209
- export declare const Bolt11RouteHint: Readonly<{
210
- /**
211
- * Create a frozen instance of {@link Bolt11RouteHint}, with defaults specified
212
- * in Rust, in the {@link breez_sdk_common} crate.
213
- */
214
- create: (partial: Partial<Bolt11RouteHint> & Required<Omit<Bolt11RouteHint, never>>) => Bolt11RouteHint;
215
- /**
216
- * Create a frozen instance of {@link Bolt11RouteHint}, with defaults specified
217
- * in Rust, in the {@link breez_sdk_common} crate.
218
- */
219
- new: (partial: Partial<Bolt11RouteHint> & Required<Omit<Bolt11RouteHint, never>>) => Bolt11RouteHint;
220
- /**
221
- * Defaults specified in the {@link breez_sdk_common} crate.
222
- */
223
- defaults: () => Partial<Bolt11RouteHint>;
224
- }>;
225
- export type Bolt11RouteHintHop = {
226
- /**
227
- * The `node_id` of the non-target end of the route
228
- */
229
- srcNodeId: string;
230
- /**
231
- * The `short_channel_id` of this channel
232
- */
233
- shortChannelId: string;
234
- /**
235
- * The fees which must be paid to use this channel
236
- */
237
- feesBaseMsat: number;
238
- feesProportionalMillionths: number;
239
- /**
240
- * The difference in CLTV values between this node and the next node.
241
- */
242
- cltvExpiryDelta: number;
243
- /**
244
- * The minimum value, in msat, which must be relayed to the next hop.
245
- */
246
- htlcMinimumMsat: /*u64*/ bigint | undefined;
247
- /**
248
- * The maximum value in msat available for routing with a single HTLC.
249
- */
250
- htlcMaximumMsat: /*u64*/ bigint | undefined;
251
- };
252
- /**
253
- * Generated factory for {@link Bolt11RouteHintHop} record objects.
254
- */
255
- export declare const Bolt11RouteHintHop: Readonly<{
256
- /**
257
- * Create a frozen instance of {@link Bolt11RouteHintHop}, with defaults specified
258
- * in Rust, in the {@link breez_sdk_common} crate.
259
- */
260
- create: (partial: Partial<Bolt11RouteHintHop> & Required<Omit<Bolt11RouteHintHop, never>>) => Bolt11RouteHintHop;
261
- /**
262
- * Create a frozen instance of {@link Bolt11RouteHintHop}, with defaults specified
263
- * in Rust, in the {@link breez_sdk_common} crate.
264
- */
265
- new: (partial: Partial<Bolt11RouteHintHop> & Required<Omit<Bolt11RouteHintHop, never>>) => Bolt11RouteHintHop;
266
- /**
267
- * Defaults specified in the {@link breez_sdk_common} crate.
268
- */
269
- defaults: () => Partial<Bolt11RouteHintHop>;
270
- }>;
271
- export type Bolt12Invoice = {
272
- invoice: string;
273
- source: PaymentRequestSource;
274
- };
275
- /**
276
- * Generated factory for {@link Bolt12Invoice} record objects.
277
- */
278
- export declare const Bolt12Invoice: Readonly<{
279
- /**
280
- * Create a frozen instance of {@link Bolt12Invoice}, with defaults specified
281
- * in Rust, in the {@link breez_sdk_common} crate.
282
- */
283
- create: (partial: Partial<Bolt12Invoice> & Required<Omit<Bolt12Invoice, never>>) => Bolt12Invoice;
284
- /**
285
- * Create a frozen instance of {@link Bolt12Invoice}, with defaults specified
286
- * in Rust, in the {@link breez_sdk_common} crate.
287
- */
288
- new: (partial: Partial<Bolt12Invoice> & Required<Omit<Bolt12Invoice, never>>) => Bolt12Invoice;
289
- /**
290
- * Defaults specified in the {@link breez_sdk_common} crate.
291
- */
292
- defaults: () => Partial<Bolt12Invoice>;
293
- }>;
294
- export type Bolt12InvoiceDetails = {
295
- amountMsat: bigint;
296
- invoice: Bolt12Invoice;
297
- };
298
- /**
299
- * Generated factory for {@link Bolt12InvoiceDetails} record objects.
300
- */
301
- export declare const Bolt12InvoiceDetails: Readonly<{
302
- /**
303
- * Create a frozen instance of {@link Bolt12InvoiceDetails}, with defaults specified
304
- * in Rust, in the {@link breez_sdk_common} crate.
305
- */
306
- create: (partial: Partial<Bolt12InvoiceDetails> & Required<Omit<Bolt12InvoiceDetails, never>>) => Bolt12InvoiceDetails;
307
- /**
308
- * Create a frozen instance of {@link Bolt12InvoiceDetails}, with defaults specified
309
- * in Rust, in the {@link breez_sdk_common} crate.
310
- */
311
- new: (partial: Partial<Bolt12InvoiceDetails> & Required<Omit<Bolt12InvoiceDetails, never>>) => Bolt12InvoiceDetails;
312
- /**
313
- * Defaults specified in the {@link breez_sdk_common} crate.
314
- */
315
- defaults: () => Partial<Bolt12InvoiceDetails>;
316
- }>;
317
- export type Bolt12InvoiceRequestDetails = {};
318
- /**
319
- * Generated factory for {@link Bolt12InvoiceRequestDetails} record objects.
320
- */
321
- export declare const Bolt12InvoiceRequestDetails: Readonly<{
322
- /**
323
- * Create a frozen instance of {@link Bolt12InvoiceRequestDetails}, with defaults specified
324
- * in Rust, in the {@link breez_sdk_common} crate.
325
- */
326
- create: (partial: Partial<Bolt12InvoiceRequestDetails> & Required<Omit<Bolt12InvoiceRequestDetails, never>>) => Bolt12InvoiceRequestDetails;
327
- /**
328
- * Create a frozen instance of {@link Bolt12InvoiceRequestDetails}, with defaults specified
329
- * in Rust, in the {@link breez_sdk_common} crate.
330
- */
331
- new: (partial: Partial<Bolt12InvoiceRequestDetails> & Required<Omit<Bolt12InvoiceRequestDetails, never>>) => Bolt12InvoiceRequestDetails;
332
- /**
333
- * Defaults specified in the {@link breez_sdk_common} crate.
334
- */
335
- defaults: () => Partial<Bolt12InvoiceRequestDetails>;
336
- }>;
337
- export type Bolt12Offer = {
338
- offer: string;
339
- source: PaymentRequestSource;
340
- };
341
- /**
342
- * Generated factory for {@link Bolt12Offer} record objects.
343
- */
344
- export declare const Bolt12Offer: Readonly<{
345
- /**
346
- * Create a frozen instance of {@link Bolt12Offer}, with defaults specified
347
- * in Rust, in the {@link breez_sdk_common} crate.
348
- */
349
- create: (partial: Partial<Bolt12Offer> & Required<Omit<Bolt12Offer, never>>) => Bolt12Offer;
350
- /**
351
- * Create a frozen instance of {@link Bolt12Offer}, with defaults specified
352
- * in Rust, in the {@link breez_sdk_common} crate.
353
- */
354
- new: (partial: Partial<Bolt12Offer> & Required<Omit<Bolt12Offer, never>>) => Bolt12Offer;
355
- /**
356
- * Defaults specified in the {@link breez_sdk_common} crate.
357
- */
358
- defaults: () => Partial<Bolt12Offer>;
359
- }>;
360
- export type Bolt12OfferBlindedPath = {
361
- blindedHops: Array<string>;
362
- };
363
- /**
364
- * Generated factory for {@link Bolt12OfferBlindedPath} record objects.
365
- */
366
- export declare const Bolt12OfferBlindedPath: Readonly<{
367
- /**
368
- * Create a frozen instance of {@link Bolt12OfferBlindedPath}, with defaults specified
369
- * in Rust, in the {@link breez_sdk_common} crate.
370
- */
371
- create: (partial: Partial<Bolt12OfferBlindedPath> & Required<Omit<Bolt12OfferBlindedPath, never>>) => Bolt12OfferBlindedPath;
372
- /**
373
- * Create a frozen instance of {@link Bolt12OfferBlindedPath}, with defaults specified
374
- * in Rust, in the {@link breez_sdk_common} crate.
375
- */
376
- new: (partial: Partial<Bolt12OfferBlindedPath> & Required<Omit<Bolt12OfferBlindedPath, never>>) => Bolt12OfferBlindedPath;
377
- /**
378
- * Defaults specified in the {@link breez_sdk_common} crate.
379
- */
380
- defaults: () => Partial<Bolt12OfferBlindedPath>;
381
- }>;
382
- export type Bolt12OfferDetails = {
383
- absoluteExpiry: /*u64*/ bigint | undefined;
384
- chains: Array<string>;
385
- description: string | undefined;
386
- issuer: string | undefined;
387
- minAmount: Amount | undefined;
388
- offer: Bolt12Offer;
389
- paths: Array<Bolt12OfferBlindedPath>;
390
- signingPubkey: string | undefined;
391
- };
392
- /**
393
- * Generated factory for {@link Bolt12OfferDetails} record objects.
394
- */
395
- export declare const Bolt12OfferDetails: Readonly<{
396
- /**
397
- * Create a frozen instance of {@link Bolt12OfferDetails}, with defaults specified
398
- * in Rust, in the {@link breez_sdk_common} crate.
399
- */
400
- create: (partial: Partial<Bolt12OfferDetails> & Required<Omit<Bolt12OfferDetails, never>>) => Bolt12OfferDetails;
401
- /**
402
- * Create a frozen instance of {@link Bolt12OfferDetails}, with defaults specified
403
- * in Rust, in the {@link breez_sdk_common} crate.
404
- */
405
- new: (partial: Partial<Bolt12OfferDetails> & Required<Omit<Bolt12OfferDetails, never>>) => Bolt12OfferDetails;
406
- /**
407
- * Defaults specified in the {@link breez_sdk_common} crate.
408
- */
409
- defaults: () => Partial<Bolt12OfferDetails>;
410
- }>;
411
- /**
412
- * Details about a supported currency in the fiat rate feed
413
- */
414
- export type CurrencyInfo = {
415
- name: string;
416
- fractionSize: number;
417
- spacing: /*u32*/ number | undefined;
418
- symbol: Symbol | undefined;
419
- uniqSymbol: Symbol | undefined;
420
- localizedName: Array<LocalizedName>;
421
- localeOverrides: Array<LocaleOverrides>;
422
- };
423
- /**
424
- * Generated factory for {@link CurrencyInfo} record objects.
425
- */
426
- export declare const CurrencyInfo: Readonly<{
427
- /**
428
- * Create a frozen instance of {@link CurrencyInfo}, with defaults specified
429
- * in Rust, in the {@link breez_sdk_common} crate.
430
- */
431
- create: (partial: Partial<CurrencyInfo> & Required<Omit<CurrencyInfo, never>>) => CurrencyInfo;
432
- /**
433
- * Create a frozen instance of {@link CurrencyInfo}, with defaults specified
434
- * in Rust, in the {@link breez_sdk_common} crate.
435
- */
436
- new: (partial: Partial<CurrencyInfo> & Required<Omit<CurrencyInfo, never>>) => CurrencyInfo;
437
- /**
438
- * Defaults specified in the {@link breez_sdk_common} crate.
439
- */
440
- defaults: () => Partial<CurrencyInfo>;
441
- }>;
442
- /**
443
- * Configuration for an external input parser
444
- */
445
- export type ExternalInputParser = {
446
- /**
447
- * An arbitrary parser provider id
448
- */
449
- providerId: string;
450
- /**
451
- * The external parser will be used when an input conforms to this regex
452
- */
453
- inputRegex: string;
454
- /**
455
- * The URL of the parser containing a placeholder `<input>` that will be replaced with the
456
- * input to be parsed. The input is sanitized using percent encoding.
457
- */
458
- parserUrl: string;
459
- };
460
- /**
461
- * Generated factory for {@link ExternalInputParser} record objects.
462
- */
463
- export declare const ExternalInputParser: Readonly<{
464
- /**
465
- * Create a frozen instance of {@link ExternalInputParser}, with defaults specified
466
- * in Rust, in the {@link breez_sdk_common} crate.
467
- */
468
- create: (partial: Partial<ExternalInputParser> & Required<Omit<ExternalInputParser, never>>) => ExternalInputParser;
469
- /**
470
- * Create a frozen instance of {@link ExternalInputParser}, with defaults specified
471
- * in Rust, in the {@link breez_sdk_common} crate.
472
- */
473
- new: (partial: Partial<ExternalInputParser> & Required<Omit<ExternalInputParser, never>>) => ExternalInputParser;
474
- /**
475
- * Defaults specified in the {@link breez_sdk_common} crate.
476
- */
477
- defaults: () => Partial<ExternalInputParser>;
478
- }>;
479
- /**
480
- * Wrapper around the [`CurrencyInfo`] of a fiat currency
481
- */
482
- export type FiatCurrency = {
483
- id: string;
484
- info: CurrencyInfo;
485
- };
486
- /**
487
- * Generated factory for {@link FiatCurrency} record objects.
488
- */
489
- export declare const FiatCurrency: Readonly<{
490
- /**
491
- * Create a frozen instance of {@link FiatCurrency}, with defaults specified
492
- * in Rust, in the {@link breez_sdk_common} crate.
493
- */
494
- create: (partial: Partial<FiatCurrency> & Required<Omit<FiatCurrency, never>>) => FiatCurrency;
495
- /**
496
- * Create a frozen instance of {@link FiatCurrency}, with defaults specified
497
- * in Rust, in the {@link breez_sdk_common} crate.
498
- */
499
- new: (partial: Partial<FiatCurrency> & Required<Omit<FiatCurrency, never>>) => FiatCurrency;
500
- /**
501
- * Defaults specified in the {@link breez_sdk_common} crate.
502
- */
503
- defaults: () => Partial<FiatCurrency>;
504
- }>;
505
- export type LightningAddressDetails = {
506
- address: string;
507
- payRequest: LnurlPayRequestDetails;
508
- };
509
- /**
510
- * Generated factory for {@link LightningAddressDetails} record objects.
511
- */
512
- export declare const LightningAddressDetails: Readonly<{
513
- /**
514
- * Create a frozen instance of {@link LightningAddressDetails}, with defaults specified
515
- * in Rust, in the {@link breez_sdk_common} crate.
516
- */
517
- create: (partial: Partial<LightningAddressDetails> & Required<Omit<LightningAddressDetails, never>>) => LightningAddressDetails;
518
- /**
519
- * Create a frozen instance of {@link LightningAddressDetails}, with defaults specified
520
- * in Rust, in the {@link breez_sdk_common} crate.
521
- */
522
- new: (partial: Partial<LightningAddressDetails> & Required<Omit<LightningAddressDetails, never>>) => LightningAddressDetails;
523
- /**
524
- * Defaults specified in the {@link breez_sdk_common} crate.
525
- */
526
- defaults: () => Partial<LightningAddressDetails>;
527
- }>;
528
- /**
529
- * Wrapped in a [`LnurlAuth`], this is the result of [`parse`] when given a LNURL-auth endpoint.
530
- *
531
- * It represents the endpoint's parameters for the LNURL workflow.
532
- *
533
- * See <https://github.com/lnurl/luds/blob/luds/04.md>
534
- */
535
- export type LnurlAuthRequestDetails = {
536
- /**
537
- * Hex encoded 32 bytes of challenge
538
- */
539
- k1: string;
540
- /**
541
- * When available, one of: register, login, link, auth
542
- */
543
- action: string | undefined;
544
- /**
545
- * Indicates the domain of the LNURL-auth service, to be shown to the user when asking for
546
- * auth confirmation, as per LUD-04 spec.
547
- */
548
- domain: string;
549
- /**
550
- * Indicates the URL of the LNURL-auth service, including the query arguments. This will be
551
- * extended with the signed challenge and the linking key, then called in the second step of the workflow.
552
- */
553
- url: string;
554
- };
555
- /**
556
- * Generated factory for {@link LnurlAuthRequestDetails} record objects.
557
- */
558
- export declare const LnurlAuthRequestDetails: Readonly<{
559
- /**
560
- * Create a frozen instance of {@link LnurlAuthRequestDetails}, with defaults specified
561
- * in Rust, in the {@link breez_sdk_common} crate.
562
- */
563
- create: (partial: Partial<LnurlAuthRequestDetails> & Required<Omit<LnurlAuthRequestDetails, never>>) => LnurlAuthRequestDetails;
564
- /**
565
- * Create a frozen instance of {@link LnurlAuthRequestDetails}, with defaults specified
566
- * in Rust, in the {@link breez_sdk_common} crate.
567
- */
568
- new: (partial: Partial<LnurlAuthRequestDetails> & Required<Omit<LnurlAuthRequestDetails, never>>) => LnurlAuthRequestDetails;
569
- /**
570
- * Defaults specified in the {@link breez_sdk_common} crate.
571
- */
572
- defaults: () => Partial<LnurlAuthRequestDetails>;
573
- }>;
574
- /**
575
- * Wrapped in a [`LnUrlError`], this represents a LNURL-endpoint error.
576
- */
577
- export type LnurlErrorDetails = {
578
- reason: string;
579
- };
580
- /**
581
- * Generated factory for {@link LnurlErrorDetails} record objects.
582
- */
583
- export declare const LnurlErrorDetails: Readonly<{
584
- /**
585
- * Create a frozen instance of {@link LnurlErrorDetails}, with defaults specified
586
- * in Rust, in the {@link breez_sdk_common} crate.
587
- */
588
- create: (partial: Partial<LnurlErrorDetails> & Required<Omit<LnurlErrorDetails, never>>) => LnurlErrorDetails;
589
- /**
590
- * Create a frozen instance of {@link LnurlErrorDetails}, with defaults specified
591
- * in Rust, in the {@link breez_sdk_common} crate.
592
- */
593
- new: (partial: Partial<LnurlErrorDetails> & Required<Omit<LnurlErrorDetails, never>>) => LnurlErrorDetails;
594
- /**
595
- * Defaults specified in the {@link breez_sdk_common} crate.
596
- */
597
- defaults: () => Partial<LnurlErrorDetails>;
598
- }>;
599
- export type LnurlPayRequestDetails = {
600
- callback: string;
601
- /**
602
- * The minimum amount, in millisats, that this LNURL-pay endpoint accepts
603
- */
604
- minSendable: bigint;
605
- /**
606
- * The maximum amount, in millisats, that this LNURL-pay endpoint accepts
607
- */
608
- maxSendable: bigint;
609
- /**
610
- * As per LUD-06, `metadata` is a raw string (e.g. a json representation of the inner map).
611
- * Use `metadata_vec()` to get the parsed items.
612
- */
613
- metadataStr: string;
614
- /**
615
- * The comment length accepted by this endpoint
616
- *
617
- * See <https://github.com/lnurl/luds/blob/luds/12.md>
618
- */
619
- commentAllowed: number;
620
- /**
621
- * Indicates the domain of the LNURL-pay service, to be shown to the user when asking for
622
- * payment input, as per LUD-06 spec.
623
- *
624
- * Note: this is not the domain of the callback, but the domain of the LNURL-pay endpoint.
625
- */
626
- domain: string;
627
- url: string;
628
- /**
629
- * Optional lightning address if that was used to resolve the lnurl.
630
- */
631
- address: string | undefined;
632
- /**
633
- * Value indicating whether the recipient supports Nostr Zaps through NIP-57.
634
- *
635
- * See <https://github.com/nostr-protocol/nips/blob/master/57.md>
636
- */
637
- allowsNostr: boolean | undefined;
638
- /**
639
- * Optional recipient's lnurl provider's Nostr pubkey for NIP-57. If it exists it should be a
640
- * valid BIP 340 public key in hex.
641
- *
642
- * See <https://github.com/nostr-protocol/nips/blob/master/57.md>
643
- * See <https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki>
644
- */
645
- nostrPubkey: string | undefined;
646
- };
647
- /**
648
- * Generated factory for {@link LnurlPayRequestDetails} record objects.
649
- */
650
- export declare const LnurlPayRequestDetails: Readonly<{
651
- /**
652
- * Create a frozen instance of {@link LnurlPayRequestDetails}, with defaults specified
653
- * in Rust, in the {@link breez_sdk_common} crate.
654
- */
655
- create: (partial: Partial<LnurlPayRequestDetails> & Required<Omit<LnurlPayRequestDetails, never>>) => LnurlPayRequestDetails;
656
- /**
657
- * Create a frozen instance of {@link LnurlPayRequestDetails}, with defaults specified
658
- * in Rust, in the {@link breez_sdk_common} crate.
659
- */
660
- new: (partial: Partial<LnurlPayRequestDetails> & Required<Omit<LnurlPayRequestDetails, never>>) => LnurlPayRequestDetails;
661
- /**
662
- * Defaults specified in the {@link breez_sdk_common} crate.
663
- */
664
- defaults: () => Partial<LnurlPayRequestDetails>;
665
- }>;
666
- export type LnurlWithdrawRequestDetails = {
667
- callback: string;
668
- k1: string;
669
- defaultDescription: string;
670
- /**
671
- * The minimum amount, in millisats, that this LNURL-withdraw endpoint accepts
672
- */
673
- minWithdrawable: bigint;
674
- /**
675
- * The maximum amount, in millisats, that this LNURL-withdraw endpoint accepts
676
- */
677
- maxWithdrawable: bigint;
678
- };
679
- /**
680
- * Generated factory for {@link LnurlWithdrawRequestDetails} record objects.
681
- */
682
- export declare const LnurlWithdrawRequestDetails: Readonly<{
683
- /**
684
- * Create a frozen instance of {@link LnurlWithdrawRequestDetails}, with defaults specified
685
- * in Rust, in the {@link breez_sdk_common} crate.
686
- */
687
- create: (partial: Partial<LnurlWithdrawRequestDetails> & Required<Omit<LnurlWithdrawRequestDetails, never>>) => LnurlWithdrawRequestDetails;
688
- /**
689
- * Create a frozen instance of {@link LnurlWithdrawRequestDetails}, with defaults specified
690
- * in Rust, in the {@link breez_sdk_common} crate.
691
- */
692
- new: (partial: Partial<LnurlWithdrawRequestDetails> & Required<Omit<LnurlWithdrawRequestDetails, never>>) => LnurlWithdrawRequestDetails;
693
- /**
694
- * Defaults specified in the {@link breez_sdk_common} crate.
695
- */
696
- defaults: () => Partial<LnurlWithdrawRequestDetails>;
697
- }>;
698
- /**
699
- * Locale-specific settings for the representation of a currency
700
- */
701
- export type LocaleOverrides = {
702
- locale: string;
703
- spacing: /*u32*/ number | undefined;
704
- symbol: Symbol;
705
- };
706
- /**
707
- * Generated factory for {@link LocaleOverrides} record objects.
708
- */
709
- export declare const LocaleOverrides: Readonly<{
710
- /**
711
- * Create a frozen instance of {@link LocaleOverrides}, with defaults specified
712
- * in Rust, in the {@link breez_sdk_common} crate.
713
- */
714
- create: (partial: Partial<LocaleOverrides> & Required<Omit<LocaleOverrides, never>>) => LocaleOverrides;
715
- /**
716
- * Create a frozen instance of {@link LocaleOverrides}, with defaults specified
717
- * in Rust, in the {@link breez_sdk_common} crate.
718
- */
719
- new: (partial: Partial<LocaleOverrides> & Required<Omit<LocaleOverrides, never>>) => LocaleOverrides;
720
- /**
721
- * Defaults specified in the {@link breez_sdk_common} crate.
722
- */
723
- defaults: () => Partial<LocaleOverrides>;
724
- }>;
725
- /**
726
- * Localized name of a currency
727
- */
728
- export type LocalizedName = {
729
- locale: string;
730
- name: string;
731
- };
732
- /**
733
- * Generated factory for {@link LocalizedName} record objects.
734
- */
735
- export declare const LocalizedName: Readonly<{
736
- /**
737
- * Create a frozen instance of {@link LocalizedName}, with defaults specified
738
- * in Rust, in the {@link breez_sdk_common} crate.
739
- */
740
- create: (partial: Partial<LocalizedName> & Required<Omit<LocalizedName, never>>) => LocalizedName;
741
- /**
742
- * Create a frozen instance of {@link LocalizedName}, with defaults specified
743
- * in Rust, in the {@link breez_sdk_common} crate.
744
- */
745
- new: (partial: Partial<LocalizedName> & Required<Omit<LocalizedName, never>>) => LocalizedName;
746
- /**
747
- * Defaults specified in the {@link breez_sdk_common} crate.
748
- */
749
- defaults: () => Partial<LocalizedName>;
750
- }>;
751
- export type MessageSuccessActionData = {
752
- message: string;
753
- };
754
- /**
755
- * Generated factory for {@link MessageSuccessActionData} record objects.
756
- */
757
- export declare const MessageSuccessActionData: Readonly<{
758
- /**
759
- * Create a frozen instance of {@link MessageSuccessActionData}, with defaults specified
760
- * in Rust, in the {@link breez_sdk_common} crate.
761
- */
762
- create: (partial: Partial<MessageSuccessActionData> & Required<Omit<MessageSuccessActionData, never>>) => MessageSuccessActionData;
763
- /**
764
- * Create a frozen instance of {@link MessageSuccessActionData}, with defaults specified
765
- * in Rust, in the {@link breez_sdk_common} crate.
766
- */
767
- new: (partial: Partial<MessageSuccessActionData> & Required<Omit<MessageSuccessActionData, never>>) => MessageSuccessActionData;
768
- /**
769
- * Defaults specified in the {@link breez_sdk_common} crate.
770
- */
771
- defaults: () => Partial<MessageSuccessActionData>;
772
- }>;
773
- export type PaymentRequestSource = {
774
- bip21Uri: string | undefined;
775
- bip353Address: string | undefined;
776
- };
777
- /**
778
- * Generated factory for {@link PaymentRequestSource} record objects.
779
- */
780
- export declare const PaymentRequestSource: Readonly<{
781
- /**
782
- * Create a frozen instance of {@link PaymentRequestSource}, with defaults specified
783
- * in Rust, in the {@link breez_sdk_common} crate.
784
- */
785
- create: (partial: Partial<PaymentRequestSource> & Required<Omit<PaymentRequestSource, never>>) => PaymentRequestSource;
786
- /**
787
- * Create a frozen instance of {@link PaymentRequestSource}, with defaults specified
788
- * in Rust, in the {@link breez_sdk_common} crate.
789
- */
790
- new: (partial: Partial<PaymentRequestSource> & Required<Omit<PaymentRequestSource, never>>) => PaymentRequestSource;
791
- /**
792
- * Defaults specified in the {@link breez_sdk_common} crate.
793
- */
794
- defaults: () => Partial<PaymentRequestSource>;
795
- }>;
796
- /**
797
- * Denominator in an exchange rate
798
- */
799
- export type Rate = {
800
- coin: string;
801
- value: number;
802
- };
803
- /**
804
- * Generated factory for {@link Rate} record objects.
805
- */
806
- export declare const Rate: Readonly<{
807
- /**
808
- * Create a frozen instance of {@link Rate}, with defaults specified
809
- * in Rust, in the {@link breez_sdk_common} crate.
810
- */
811
- create: (partial: Partial<Rate> & Required<Omit<Rate, never>>) => Rate;
812
- /**
813
- * Create a frozen instance of {@link Rate}, with defaults specified
814
- * in Rust, in the {@link breez_sdk_common} crate.
815
- */
816
- new: (partial: Partial<Rate> & Required<Omit<Rate, never>>) => Rate;
817
- /**
818
- * Defaults specified in the {@link breez_sdk_common} crate.
819
- */
820
- defaults: () => Partial<Rate>;
821
- }>;
822
- export type RestResponse = {
823
- status: number;
824
- body: string;
825
- };
826
- /**
827
- * Generated factory for {@link RestResponse} record objects.
828
- */
829
- export declare const RestResponse: Readonly<{
830
- /**
831
- * Create a frozen instance of {@link RestResponse}, with defaults specified
832
- * in Rust, in the {@link breez_sdk_common} crate.
833
- */
834
- create: (partial: Partial<RestResponse> & Required<Omit<RestResponse, never>>) => RestResponse;
835
- /**
836
- * Create a frozen instance of {@link RestResponse}, with defaults specified
837
- * in Rust, in the {@link breez_sdk_common} crate.
838
- */
839
- new: (partial: Partial<RestResponse> & Required<Omit<RestResponse, never>>) => RestResponse;
840
- /**
841
- * Defaults specified in the {@link breez_sdk_common} crate.
842
- */
843
- defaults: () => Partial<RestResponse>;
844
- }>;
845
- export type SilentPaymentAddressDetails = {
846
- address: string;
847
- network: BitcoinNetwork;
848
- source: PaymentRequestSource;
849
- };
850
- /**
851
- * Generated factory for {@link SilentPaymentAddressDetails} record objects.
852
- */
853
- export declare const SilentPaymentAddressDetails: Readonly<{
854
- /**
855
- * Create a frozen instance of {@link SilentPaymentAddressDetails}, with defaults specified
856
- * in Rust, in the {@link breez_sdk_common} crate.
857
- */
858
- create: (partial: Partial<SilentPaymentAddressDetails> & Required<Omit<SilentPaymentAddressDetails, never>>) => SilentPaymentAddressDetails;
859
- /**
860
- * Create a frozen instance of {@link SilentPaymentAddressDetails}, with defaults specified
861
- * in Rust, in the {@link breez_sdk_common} crate.
862
- */
863
- new: (partial: Partial<SilentPaymentAddressDetails> & Required<Omit<SilentPaymentAddressDetails, never>>) => SilentPaymentAddressDetails;
864
- /**
865
- * Defaults specified in the {@link breez_sdk_common} crate.
866
- */
867
- defaults: () => Partial<SilentPaymentAddressDetails>;
868
- }>;
869
- export type SparkAddressDetails = {
870
- /**
871
- * The raw address string
872
- */
873
- address: string;
874
- /**
875
- * The identity public key of the address owner
876
- */
877
- identityPublicKey: string;
878
- network: BitcoinNetwork;
879
- source: PaymentRequestSource;
880
- };
881
- /**
882
- * Generated factory for {@link SparkAddressDetails} record objects.
883
- */
884
- export declare const SparkAddressDetails: Readonly<{
885
- /**
886
- * Create a frozen instance of {@link SparkAddressDetails}, with defaults specified
887
- * in Rust, in the {@link breez_sdk_common} crate.
888
- */
889
- create: (partial: Partial<SparkAddressDetails> & Required<Omit<SparkAddressDetails, never>>) => SparkAddressDetails;
890
- /**
891
- * Create a frozen instance of {@link SparkAddressDetails}, with defaults specified
892
- * in Rust, in the {@link breez_sdk_common} crate.
893
- */
894
- new: (partial: Partial<SparkAddressDetails> & Required<Omit<SparkAddressDetails, never>>) => SparkAddressDetails;
895
- /**
896
- * Defaults specified in the {@link breez_sdk_common} crate.
897
- */
898
- defaults: () => Partial<SparkAddressDetails>;
899
- }>;
900
- export type SparkInvoiceDetails = {
901
- /**
902
- * The raw invoice string
903
- */
904
- invoice: string;
905
- /**
906
- * The identity public key of the invoice issuer
907
- */
908
- identityPublicKey: string;
909
- network: BitcoinNetwork;
910
- /**
911
- * Optional amount denominated in sats if `token_identifier` is absent, otherwise in the token base units
912
- */
913
- amount: CommonU128 | undefined;
914
- /**
915
- * The token identifier of the token payment. Absence indicates a Bitcoin payment.
916
- */
917
- tokenIdentifier: string | undefined;
918
- /**
919
- * Optional expiry time. If not provided, the invoice will never expire.
920
- */
921
- expiryTime: /*u64*/ bigint | undefined;
922
- /**
923
- * Optional description.
924
- */
925
- description: string | undefined;
926
- /**
927
- * If set, the invoice may only be fulfilled by a payer with this public key.
928
- */
929
- senderPublicKey: string | undefined;
930
- };
931
- /**
932
- * Generated factory for {@link SparkInvoiceDetails} record objects.
933
- */
934
- export declare const SparkInvoiceDetails: Readonly<{
935
- /**
936
- * Create a frozen instance of {@link SparkInvoiceDetails}, with defaults specified
937
- * in Rust, in the {@link breez_sdk_common} crate.
938
- */
939
- create: (partial: Partial<SparkInvoiceDetails> & Required<Omit<SparkInvoiceDetails, never>>) => SparkInvoiceDetails;
940
- /**
941
- * Create a frozen instance of {@link SparkInvoiceDetails}, with defaults specified
942
- * in Rust, in the {@link breez_sdk_common} crate.
943
- */
944
- new: (partial: Partial<SparkInvoiceDetails> & Required<Omit<SparkInvoiceDetails, never>>) => SparkInvoiceDetails;
945
- /**
946
- * Defaults specified in the {@link breez_sdk_common} crate.
947
- */
948
- defaults: () => Partial<SparkInvoiceDetails>;
949
- }>;
950
- /**
951
- * Settings for the symbol representation of a currency
952
- */
953
- export type Symbol = {
954
- grapheme: string | undefined;
955
- template: string | undefined;
956
- rtl: boolean | undefined;
957
- position: /*u32*/ number | undefined;
958
- };
959
- /**
960
- * Generated factory for {@link Symbol} record objects.
961
- */
962
- export declare const Symbol: Readonly<{
963
- /**
964
- * Create a frozen instance of {@link Symbol}, with defaults specified
965
- * in Rust, in the {@link breez_sdk_common} crate.
966
- */
967
- create: (partial: Partial<Symbol> & Required<Omit<Symbol, never>>) => Symbol;
968
- /**
969
- * Create a frozen instance of {@link Symbol}, with defaults specified
970
- * in Rust, in the {@link breez_sdk_common} crate.
971
- */
972
- new: (partial: Partial<Symbol> & Required<Omit<Symbol, never>>) => Symbol;
973
- /**
974
- * Defaults specified in the {@link breez_sdk_common} crate.
975
- */
976
- defaults: () => Partial<Symbol>;
977
- }>;
978
- export type UrlSuccessActionData = {
979
- /**
980
- * Contents description, up to 144 characters
981
- */
982
- description: string;
983
- /**
984
- * URL of the success action
985
- */
986
- url: string;
987
- /**
988
- * Indicates the success URL domain matches the LNURL callback domain.
989
- *
990
- * See <https://github.com/lnurl/luds/blob/luds/09.md>
991
- */
992
- matchesCallbackDomain: boolean;
993
- };
994
- /**
995
- * Generated factory for {@link UrlSuccessActionData} record objects.
996
- */
997
- export declare const UrlSuccessActionData: Readonly<{
998
- /**
999
- * Create a frozen instance of {@link UrlSuccessActionData}, with defaults specified
1000
- * in Rust, in the {@link breez_sdk_common} crate.
1001
- */
1002
- create: (partial: Partial<UrlSuccessActionData> & Required<Omit<UrlSuccessActionData, never>>) => UrlSuccessActionData;
1003
- /**
1004
- * Create a frozen instance of {@link UrlSuccessActionData}, with defaults specified
1005
- * in Rust, in the {@link breez_sdk_common} crate.
1006
- */
1007
- new: (partial: Partial<UrlSuccessActionData> & Required<Omit<UrlSuccessActionData, never>>) => UrlSuccessActionData;
1008
- /**
1009
- * Defaults specified in the {@link breez_sdk_common} crate.
1010
- */
1011
- defaults: () => Partial<UrlSuccessActionData>;
1012
- }>;
1013
- /**
1014
- * Typealias from the type name used in the UDL file to the custom type. This
1015
- * is needed because the UDL type name is used in function/method signatures.
1016
- */
1017
- export type CommonU128 = bigint;
1018
- export declare enum AesSuccessActionDataResult_Tags {
1019
- Decrypted = "Decrypted",
1020
- ErrorStatus = "ErrorStatus"
1021
- }
1022
- /**
1023
- * Result of decryption of [`AesSuccessActionData`] payload
1024
- */
1025
- export declare const AesSuccessActionDataResult: Readonly<{
1026
- instanceOf: (obj: any) => obj is AesSuccessActionDataResult;
1027
- Decrypted: {
1028
- new (inner: {
1029
- data: AesSuccessActionDataDecrypted;
1030
- }): {
1031
- readonly tag: AesSuccessActionDataResult_Tags.Decrypted;
1032
- readonly inner: Readonly<{
1033
- data: AesSuccessActionDataDecrypted;
1034
- }>;
1035
- /**
1036
- * @private
1037
- * This field is private and should not be used, use `tag` instead.
1038
- */
1039
- readonly [uniffiTypeNameSymbol]: "AesSuccessActionDataResult";
1040
- };
1041
- "new"(inner: {
1042
- data: AesSuccessActionDataDecrypted;
1043
- }): {
1044
- readonly tag: AesSuccessActionDataResult_Tags.Decrypted;
1045
- readonly inner: Readonly<{
1046
- data: AesSuccessActionDataDecrypted;
1047
- }>;
1048
- /**
1049
- * @private
1050
- * This field is private and should not be used, use `tag` instead.
1051
- */
1052
- readonly [uniffiTypeNameSymbol]: "AesSuccessActionDataResult";
1053
- };
1054
- instanceOf(obj: any): obj is {
1055
- readonly tag: AesSuccessActionDataResult_Tags.Decrypted;
1056
- readonly inner: Readonly<{
1057
- data: AesSuccessActionDataDecrypted;
1058
- }>;
1059
- /**
1060
- * @private
1061
- * This field is private and should not be used, use `tag` instead.
1062
- */
1063
- readonly [uniffiTypeNameSymbol]: "AesSuccessActionDataResult";
1064
- };
1065
- };
1066
- ErrorStatus: {
1067
- new (inner: {
1068
- reason: string;
1069
- }): {
1070
- readonly tag: AesSuccessActionDataResult_Tags.ErrorStatus;
1071
- readonly inner: Readonly<{
1072
- reason: string;
1073
- }>;
1074
- /**
1075
- * @private
1076
- * This field is private and should not be used, use `tag` instead.
1077
- */
1078
- readonly [uniffiTypeNameSymbol]: "AesSuccessActionDataResult";
1079
- };
1080
- "new"(inner: {
1081
- reason: string;
1082
- }): {
1083
- readonly tag: AesSuccessActionDataResult_Tags.ErrorStatus;
1084
- readonly inner: Readonly<{
1085
- reason: string;
1086
- }>;
1087
- /**
1088
- * @private
1089
- * This field is private and should not be used, use `tag` instead.
1090
- */
1091
- readonly [uniffiTypeNameSymbol]: "AesSuccessActionDataResult";
1092
- };
1093
- instanceOf(obj: any): obj is {
1094
- readonly tag: AesSuccessActionDataResult_Tags.ErrorStatus;
1095
- readonly inner: Readonly<{
1096
- reason: string;
1097
- }>;
1098
- /**
1099
- * @private
1100
- * This field is private and should not be used, use `tag` instead.
1101
- */
1102
- readonly [uniffiTypeNameSymbol]: "AesSuccessActionDataResult";
1103
- };
1104
- };
1105
- }>;
1106
- /**
1107
- * Result of decryption of [`AesSuccessActionData`] payload
1108
- */
1109
- export type AesSuccessActionDataResult = InstanceType<(typeof AesSuccessActionDataResult)[keyof Omit<typeof AesSuccessActionDataResult, 'instanceOf'>]>;
1110
- export declare enum Amount_Tags {
1111
- Bitcoin = "Bitcoin",
1112
- Currency = "Currency"
1113
- }
1114
- export declare const Amount: Readonly<{
1115
- instanceOf: (obj: any) => obj is Amount;
1116
- Bitcoin: {
1117
- new (inner: {
1118
- amountMsat: bigint;
1119
- }): {
1120
- readonly tag: Amount_Tags.Bitcoin;
1121
- readonly inner: Readonly<{
1122
- amountMsat: bigint;
1123
- }>;
1124
- /**
1125
- * @private
1126
- * This field is private and should not be used, use `tag` instead.
1127
- */
1128
- readonly [uniffiTypeNameSymbol]: "Amount";
1129
- };
1130
- "new"(inner: {
1131
- amountMsat: bigint;
1132
- }): {
1133
- readonly tag: Amount_Tags.Bitcoin;
1134
- readonly inner: Readonly<{
1135
- amountMsat: bigint;
1136
- }>;
1137
- /**
1138
- * @private
1139
- * This field is private and should not be used, use `tag` instead.
1140
- */
1141
- readonly [uniffiTypeNameSymbol]: "Amount";
1142
- };
1143
- instanceOf(obj: any): obj is {
1144
- readonly tag: Amount_Tags.Bitcoin;
1145
- readonly inner: Readonly<{
1146
- amountMsat: bigint;
1147
- }>;
1148
- /**
1149
- * @private
1150
- * This field is private and should not be used, use `tag` instead.
1151
- */
1152
- readonly [uniffiTypeNameSymbol]: "Amount";
1153
- };
1154
- };
1155
- Currency: {
1156
- new (inner: {
1157
- /**
1158
- * The currency that the amount is denominated in.
1159
- */ iso4217Code: string;
1160
- /**
1161
- * The amount in the currency unit adjusted by the ISO 4712 exponent (e.g., USD cents).
1162
- */ fractionalAmount: bigint;
1163
- }): {
1164
- readonly tag: Amount_Tags.Currency;
1165
- readonly inner: Readonly<{
1166
- iso4217Code: string;
1167
- fractionalAmount: bigint;
1168
- }>;
1169
- /**
1170
- * @private
1171
- * This field is private and should not be used, use `tag` instead.
1172
- */
1173
- readonly [uniffiTypeNameSymbol]: "Amount";
1174
- };
1175
- "new"(inner: {
1176
- /**
1177
- * The currency that the amount is denominated in.
1178
- */ iso4217Code: string;
1179
- /**
1180
- * The amount in the currency unit adjusted by the ISO 4712 exponent (e.g., USD cents).
1181
- */ fractionalAmount: bigint;
1182
- }): {
1183
- readonly tag: Amount_Tags.Currency;
1184
- readonly inner: Readonly<{
1185
- iso4217Code: string;
1186
- fractionalAmount: bigint;
1187
- }>;
1188
- /**
1189
- * @private
1190
- * This field is private and should not be used, use `tag` instead.
1191
- */
1192
- readonly [uniffiTypeNameSymbol]: "Amount";
1193
- };
1194
- instanceOf(obj: any): obj is {
1195
- readonly tag: Amount_Tags.Currency;
1196
- readonly inner: Readonly<{
1197
- iso4217Code: string;
1198
- fractionalAmount: bigint;
1199
- }>;
1200
- /**
1201
- * @private
1202
- * This field is private and should not be used, use `tag` instead.
1203
- */
1204
- readonly [uniffiTypeNameSymbol]: "Amount";
1205
- };
1206
- };
1207
- }>;
1208
- export type Amount = InstanceType<(typeof Amount)[keyof Omit<typeof Amount, 'instanceOf'>]>;
1209
- export declare enum BitcoinNetwork {
1210
- /**
1211
- * Mainnet
1212
- */
1213
- Bitcoin = 0,
1214
- Testnet3 = 1,
1215
- Testnet4 = 2,
1216
- Signet = 3,
1217
- Regtest = 4
1218
- }
1219
- export declare enum InputType_Tags {
1220
- BitcoinAddress = "BitcoinAddress",
1221
- Bolt11Invoice = "Bolt11Invoice",
1222
- Bolt12Invoice = "Bolt12Invoice",
1223
- Bolt12Offer = "Bolt12Offer",
1224
- LightningAddress = "LightningAddress",
1225
- LnurlPay = "LnurlPay",
1226
- SilentPaymentAddress = "SilentPaymentAddress",
1227
- LnurlAuth = "LnurlAuth",
1228
- Url = "Url",
1229
- Bip21 = "Bip21",
1230
- Bolt12InvoiceRequest = "Bolt12InvoiceRequest",
1231
- LnurlWithdraw = "LnurlWithdraw",
1232
- SparkAddress = "SparkAddress",
1233
- SparkInvoice = "SparkInvoice"
1234
- }
1235
- export declare const InputType: Readonly<{
1236
- instanceOf: (obj: any) => obj is InputType;
1237
- BitcoinAddress: {
1238
- new (v0: BitcoinAddressDetails): {
1239
- readonly tag: InputType_Tags.BitcoinAddress;
1240
- readonly inner: Readonly<[BitcoinAddressDetails]>;
1241
- /**
1242
- * @private
1243
- * This field is private and should not be used, use `tag` instead.
1244
- */
1245
- readonly [uniffiTypeNameSymbol]: "InputType";
1246
- };
1247
- "new"(v0: BitcoinAddressDetails): {
1248
- readonly tag: InputType_Tags.BitcoinAddress;
1249
- readonly inner: Readonly<[BitcoinAddressDetails]>;
1250
- /**
1251
- * @private
1252
- * This field is private and should not be used, use `tag` instead.
1253
- */
1254
- readonly [uniffiTypeNameSymbol]: "InputType";
1255
- };
1256
- instanceOf(obj: any): obj is {
1257
- readonly tag: InputType_Tags.BitcoinAddress;
1258
- readonly inner: Readonly<[BitcoinAddressDetails]>;
1259
- /**
1260
- * @private
1261
- * This field is private and should not be used, use `tag` instead.
1262
- */
1263
- readonly [uniffiTypeNameSymbol]: "InputType";
1264
- };
1265
- };
1266
- Bolt11Invoice: {
1267
- new (v0: Bolt11InvoiceDetails): {
1268
- readonly tag: InputType_Tags.Bolt11Invoice;
1269
- readonly inner: Readonly<[Bolt11InvoiceDetails]>;
1270
- /**
1271
- * @private
1272
- * This field is private and should not be used, use `tag` instead.
1273
- */
1274
- readonly [uniffiTypeNameSymbol]: "InputType";
1275
- };
1276
- "new"(v0: Bolt11InvoiceDetails): {
1277
- readonly tag: InputType_Tags.Bolt11Invoice;
1278
- readonly inner: Readonly<[Bolt11InvoiceDetails]>;
1279
- /**
1280
- * @private
1281
- * This field is private and should not be used, use `tag` instead.
1282
- */
1283
- readonly [uniffiTypeNameSymbol]: "InputType";
1284
- };
1285
- instanceOf(obj: any): obj is {
1286
- readonly tag: InputType_Tags.Bolt11Invoice;
1287
- readonly inner: Readonly<[Bolt11InvoiceDetails]>;
1288
- /**
1289
- * @private
1290
- * This field is private and should not be used, use `tag` instead.
1291
- */
1292
- readonly [uniffiTypeNameSymbol]: "InputType";
1293
- };
1294
- };
1295
- Bolt12Invoice: {
1296
- new (v0: Bolt12InvoiceDetails): {
1297
- readonly tag: InputType_Tags.Bolt12Invoice;
1298
- readonly inner: Readonly<[Bolt12InvoiceDetails]>;
1299
- /**
1300
- * @private
1301
- * This field is private and should not be used, use `tag` instead.
1302
- */
1303
- readonly [uniffiTypeNameSymbol]: "InputType";
1304
- };
1305
- "new"(v0: Bolt12InvoiceDetails): {
1306
- readonly tag: InputType_Tags.Bolt12Invoice;
1307
- readonly inner: Readonly<[Bolt12InvoiceDetails]>;
1308
- /**
1309
- * @private
1310
- * This field is private and should not be used, use `tag` instead.
1311
- */
1312
- readonly [uniffiTypeNameSymbol]: "InputType";
1313
- };
1314
- instanceOf(obj: any): obj is {
1315
- readonly tag: InputType_Tags.Bolt12Invoice;
1316
- readonly inner: Readonly<[Bolt12InvoiceDetails]>;
1317
- /**
1318
- * @private
1319
- * This field is private and should not be used, use `tag` instead.
1320
- */
1321
- readonly [uniffiTypeNameSymbol]: "InputType";
1322
- };
1323
- };
1324
- Bolt12Offer: {
1325
- new (v0: Bolt12OfferDetails): {
1326
- readonly tag: InputType_Tags.Bolt12Offer;
1327
- readonly inner: Readonly<[Bolt12OfferDetails]>;
1328
- /**
1329
- * @private
1330
- * This field is private and should not be used, use `tag` instead.
1331
- */
1332
- readonly [uniffiTypeNameSymbol]: "InputType";
1333
- };
1334
- "new"(v0: Bolt12OfferDetails): {
1335
- readonly tag: InputType_Tags.Bolt12Offer;
1336
- readonly inner: Readonly<[Bolt12OfferDetails]>;
1337
- /**
1338
- * @private
1339
- * This field is private and should not be used, use `tag` instead.
1340
- */
1341
- readonly [uniffiTypeNameSymbol]: "InputType";
1342
- };
1343
- instanceOf(obj: any): obj is {
1344
- readonly tag: InputType_Tags.Bolt12Offer;
1345
- readonly inner: Readonly<[Bolt12OfferDetails]>;
1346
- /**
1347
- * @private
1348
- * This field is private and should not be used, use `tag` instead.
1349
- */
1350
- readonly [uniffiTypeNameSymbol]: "InputType";
1351
- };
1352
- };
1353
- LightningAddress: {
1354
- new (v0: LightningAddressDetails): {
1355
- readonly tag: InputType_Tags.LightningAddress;
1356
- readonly inner: Readonly<[LightningAddressDetails]>;
1357
- /**
1358
- * @private
1359
- * This field is private and should not be used, use `tag` instead.
1360
- */
1361
- readonly [uniffiTypeNameSymbol]: "InputType";
1362
- };
1363
- "new"(v0: LightningAddressDetails): {
1364
- readonly tag: InputType_Tags.LightningAddress;
1365
- readonly inner: Readonly<[LightningAddressDetails]>;
1366
- /**
1367
- * @private
1368
- * This field is private and should not be used, use `tag` instead.
1369
- */
1370
- readonly [uniffiTypeNameSymbol]: "InputType";
1371
- };
1372
- instanceOf(obj: any): obj is {
1373
- readonly tag: InputType_Tags.LightningAddress;
1374
- readonly inner: Readonly<[LightningAddressDetails]>;
1375
- /**
1376
- * @private
1377
- * This field is private and should not be used, use `tag` instead.
1378
- */
1379
- readonly [uniffiTypeNameSymbol]: "InputType";
1380
- };
1381
- };
1382
- LnurlPay: {
1383
- new (v0: LnurlPayRequestDetails): {
1384
- readonly tag: InputType_Tags.LnurlPay;
1385
- readonly inner: Readonly<[LnurlPayRequestDetails]>;
1386
- /**
1387
- * @private
1388
- * This field is private and should not be used, use `tag` instead.
1389
- */
1390
- readonly [uniffiTypeNameSymbol]: "InputType";
1391
- };
1392
- "new"(v0: LnurlPayRequestDetails): {
1393
- readonly tag: InputType_Tags.LnurlPay;
1394
- readonly inner: Readonly<[LnurlPayRequestDetails]>;
1395
- /**
1396
- * @private
1397
- * This field is private and should not be used, use `tag` instead.
1398
- */
1399
- readonly [uniffiTypeNameSymbol]: "InputType";
1400
- };
1401
- instanceOf(obj: any): obj is {
1402
- readonly tag: InputType_Tags.LnurlPay;
1403
- readonly inner: Readonly<[LnurlPayRequestDetails]>;
1404
- /**
1405
- * @private
1406
- * This field is private and should not be used, use `tag` instead.
1407
- */
1408
- readonly [uniffiTypeNameSymbol]: "InputType";
1409
- };
1410
- };
1411
- SilentPaymentAddress: {
1412
- new (v0: SilentPaymentAddressDetails): {
1413
- readonly tag: InputType_Tags.SilentPaymentAddress;
1414
- readonly inner: Readonly<[SilentPaymentAddressDetails]>;
1415
- /**
1416
- * @private
1417
- * This field is private and should not be used, use `tag` instead.
1418
- */
1419
- readonly [uniffiTypeNameSymbol]: "InputType";
1420
- };
1421
- "new"(v0: SilentPaymentAddressDetails): {
1422
- readonly tag: InputType_Tags.SilentPaymentAddress;
1423
- readonly inner: Readonly<[SilentPaymentAddressDetails]>;
1424
- /**
1425
- * @private
1426
- * This field is private and should not be used, use `tag` instead.
1427
- */
1428
- readonly [uniffiTypeNameSymbol]: "InputType";
1429
- };
1430
- instanceOf(obj: any): obj is {
1431
- readonly tag: InputType_Tags.SilentPaymentAddress;
1432
- readonly inner: Readonly<[SilentPaymentAddressDetails]>;
1433
- /**
1434
- * @private
1435
- * This field is private and should not be used, use `tag` instead.
1436
- */
1437
- readonly [uniffiTypeNameSymbol]: "InputType";
1438
- };
1439
- };
1440
- LnurlAuth: {
1441
- new (v0: LnurlAuthRequestDetails): {
1442
- readonly tag: InputType_Tags.LnurlAuth;
1443
- readonly inner: Readonly<[LnurlAuthRequestDetails]>;
1444
- /**
1445
- * @private
1446
- * This field is private and should not be used, use `tag` instead.
1447
- */
1448
- readonly [uniffiTypeNameSymbol]: "InputType";
1449
- };
1450
- "new"(v0: LnurlAuthRequestDetails): {
1451
- readonly tag: InputType_Tags.LnurlAuth;
1452
- readonly inner: Readonly<[LnurlAuthRequestDetails]>;
1453
- /**
1454
- * @private
1455
- * This field is private and should not be used, use `tag` instead.
1456
- */
1457
- readonly [uniffiTypeNameSymbol]: "InputType";
1458
- };
1459
- instanceOf(obj: any): obj is {
1460
- readonly tag: InputType_Tags.LnurlAuth;
1461
- readonly inner: Readonly<[LnurlAuthRequestDetails]>;
1462
- /**
1463
- * @private
1464
- * This field is private and should not be used, use `tag` instead.
1465
- */
1466
- readonly [uniffiTypeNameSymbol]: "InputType";
1467
- };
1468
- };
1469
- Url: {
1470
- new (v0: string): {
1471
- readonly tag: InputType_Tags.Url;
1472
- readonly inner: Readonly<[string]>;
1473
- /**
1474
- * @private
1475
- * This field is private and should not be used, use `tag` instead.
1476
- */
1477
- readonly [uniffiTypeNameSymbol]: "InputType";
1478
- };
1479
- "new"(v0: string): {
1480
- readonly tag: InputType_Tags.Url;
1481
- readonly inner: Readonly<[string]>;
1482
- /**
1483
- * @private
1484
- * This field is private and should not be used, use `tag` instead.
1485
- */
1486
- readonly [uniffiTypeNameSymbol]: "InputType";
1487
- };
1488
- instanceOf(obj: any): obj is {
1489
- readonly tag: InputType_Tags.Url;
1490
- readonly inner: Readonly<[string]>;
1491
- /**
1492
- * @private
1493
- * This field is private and should not be used, use `tag` instead.
1494
- */
1495
- readonly [uniffiTypeNameSymbol]: "InputType";
1496
- };
1497
- };
1498
- Bip21: {
1499
- new (v0: Bip21Details): {
1500
- readonly tag: InputType_Tags.Bip21;
1501
- readonly inner: Readonly<[Bip21Details]>;
1502
- /**
1503
- * @private
1504
- * This field is private and should not be used, use `tag` instead.
1505
- */
1506
- readonly [uniffiTypeNameSymbol]: "InputType";
1507
- };
1508
- "new"(v0: Bip21Details): {
1509
- readonly tag: InputType_Tags.Bip21;
1510
- readonly inner: Readonly<[Bip21Details]>;
1511
- /**
1512
- * @private
1513
- * This field is private and should not be used, use `tag` instead.
1514
- */
1515
- readonly [uniffiTypeNameSymbol]: "InputType";
1516
- };
1517
- instanceOf(obj: any): obj is {
1518
- readonly tag: InputType_Tags.Bip21;
1519
- readonly inner: Readonly<[Bip21Details]>;
1520
- /**
1521
- * @private
1522
- * This field is private and should not be used, use `tag` instead.
1523
- */
1524
- readonly [uniffiTypeNameSymbol]: "InputType";
1525
- };
1526
- };
1527
- Bolt12InvoiceRequest: {
1528
- new (v0: Bolt12InvoiceRequestDetails): {
1529
- readonly tag: InputType_Tags.Bolt12InvoiceRequest;
1530
- readonly inner: Readonly<[Bolt12InvoiceRequestDetails]>;
1531
- /**
1532
- * @private
1533
- * This field is private and should not be used, use `tag` instead.
1534
- */
1535
- readonly [uniffiTypeNameSymbol]: "InputType";
1536
- };
1537
- "new"(v0: Bolt12InvoiceRequestDetails): {
1538
- readonly tag: InputType_Tags.Bolt12InvoiceRequest;
1539
- readonly inner: Readonly<[Bolt12InvoiceRequestDetails]>;
1540
- /**
1541
- * @private
1542
- * This field is private and should not be used, use `tag` instead.
1543
- */
1544
- readonly [uniffiTypeNameSymbol]: "InputType";
1545
- };
1546
- instanceOf(obj: any): obj is {
1547
- readonly tag: InputType_Tags.Bolt12InvoiceRequest;
1548
- readonly inner: Readonly<[Bolt12InvoiceRequestDetails]>;
1549
- /**
1550
- * @private
1551
- * This field is private and should not be used, use `tag` instead.
1552
- */
1553
- readonly [uniffiTypeNameSymbol]: "InputType";
1554
- };
1555
- };
1556
- LnurlWithdraw: {
1557
- new (v0: LnurlWithdrawRequestDetails): {
1558
- readonly tag: InputType_Tags.LnurlWithdraw;
1559
- readonly inner: Readonly<[LnurlWithdrawRequestDetails]>;
1560
- /**
1561
- * @private
1562
- * This field is private and should not be used, use `tag` instead.
1563
- */
1564
- readonly [uniffiTypeNameSymbol]: "InputType";
1565
- };
1566
- "new"(v0: LnurlWithdrawRequestDetails): {
1567
- readonly tag: InputType_Tags.LnurlWithdraw;
1568
- readonly inner: Readonly<[LnurlWithdrawRequestDetails]>;
1569
- /**
1570
- * @private
1571
- * This field is private and should not be used, use `tag` instead.
1572
- */
1573
- readonly [uniffiTypeNameSymbol]: "InputType";
1574
- };
1575
- instanceOf(obj: any): obj is {
1576
- readonly tag: InputType_Tags.LnurlWithdraw;
1577
- readonly inner: Readonly<[LnurlWithdrawRequestDetails]>;
1578
- /**
1579
- * @private
1580
- * This field is private and should not be used, use `tag` instead.
1581
- */
1582
- readonly [uniffiTypeNameSymbol]: "InputType";
1583
- };
1584
- };
1585
- SparkAddress: {
1586
- new (v0: SparkAddressDetails): {
1587
- readonly tag: InputType_Tags.SparkAddress;
1588
- readonly inner: Readonly<[SparkAddressDetails]>;
1589
- /**
1590
- * @private
1591
- * This field is private and should not be used, use `tag` instead.
1592
- */
1593
- readonly [uniffiTypeNameSymbol]: "InputType";
1594
- };
1595
- "new"(v0: SparkAddressDetails): {
1596
- readonly tag: InputType_Tags.SparkAddress;
1597
- readonly inner: Readonly<[SparkAddressDetails]>;
1598
- /**
1599
- * @private
1600
- * This field is private and should not be used, use `tag` instead.
1601
- */
1602
- readonly [uniffiTypeNameSymbol]: "InputType";
1603
- };
1604
- instanceOf(obj: any): obj is {
1605
- readonly tag: InputType_Tags.SparkAddress;
1606
- readonly inner: Readonly<[SparkAddressDetails]>;
1607
- /**
1608
- * @private
1609
- * This field is private and should not be used, use `tag` instead.
1610
- */
1611
- readonly [uniffiTypeNameSymbol]: "InputType";
1612
- };
1613
- };
1614
- SparkInvoice: {
1615
- new (v0: SparkInvoiceDetails): {
1616
- readonly tag: InputType_Tags.SparkInvoice;
1617
- readonly inner: Readonly<[SparkInvoiceDetails]>;
1618
- /**
1619
- * @private
1620
- * This field is private and should not be used, use `tag` instead.
1621
- */
1622
- readonly [uniffiTypeNameSymbol]: "InputType";
1623
- };
1624
- "new"(v0: SparkInvoiceDetails): {
1625
- readonly tag: InputType_Tags.SparkInvoice;
1626
- readonly inner: Readonly<[SparkInvoiceDetails]>;
1627
- /**
1628
- * @private
1629
- * This field is private and should not be used, use `tag` instead.
1630
- */
1631
- readonly [uniffiTypeNameSymbol]: "InputType";
1632
- };
1633
- instanceOf(obj: any): obj is {
1634
- readonly tag: InputType_Tags.SparkInvoice;
1635
- readonly inner: Readonly<[SparkInvoiceDetails]>;
1636
- /**
1637
- * @private
1638
- * This field is private and should not be used, use `tag` instead.
1639
- */
1640
- readonly [uniffiTypeNameSymbol]: "InputType";
1641
- };
1642
- };
1643
- }>;
1644
- export type InputType = InstanceType<(typeof InputType)[keyof Omit<typeof InputType, 'instanceOf'>]>;
1645
- export declare enum LnurlCallbackStatus_Tags {
1646
- Ok = "Ok",
1647
- ErrorStatus = "ErrorStatus"
1648
- }
1649
- /**
1650
- * Contains the result of the entire LNURL interaction, as reported by the LNURL endpoint.
1651
- *
1652
- * * `Ok` indicates the interaction with the endpoint was valid, and the endpoint
1653
- * - started to pay the invoice asynchronously in the case of LNURL-withdraw,
1654
- * - verified the client signature in the case of LNURL-auth
1655
- * * `Error` indicates a generic issue the LNURL endpoint encountered, including a freetext
1656
- * description of the reason.
1657
- *
1658
- * Both cases are described in LUD-03 <https://github.com/lnurl/luds/blob/luds/03.md> & LUD-04: <https://github.com/lnurl/luds/blob/luds/04.md>
1659
- */
1660
- export declare const LnurlCallbackStatus: Readonly<{
1661
- instanceOf: (obj: any) => obj is LnurlCallbackStatus;
1662
- Ok: {
1663
- new (): {
1664
- readonly tag: LnurlCallbackStatus_Tags.Ok;
1665
- /**
1666
- * @private
1667
- * This field is private and should not be used, use `tag` instead.
1668
- */
1669
- readonly [uniffiTypeNameSymbol]: "LnurlCallbackStatus";
1670
- };
1671
- "new"(): {
1672
- readonly tag: LnurlCallbackStatus_Tags.Ok;
1673
- /**
1674
- * @private
1675
- * This field is private and should not be used, use `tag` instead.
1676
- */
1677
- readonly [uniffiTypeNameSymbol]: "LnurlCallbackStatus";
1678
- };
1679
- instanceOf(obj: any): obj is {
1680
- readonly tag: LnurlCallbackStatus_Tags.Ok;
1681
- /**
1682
- * @private
1683
- * This field is private and should not be used, use `tag` instead.
1684
- */
1685
- readonly [uniffiTypeNameSymbol]: "LnurlCallbackStatus";
1686
- };
1687
- };
1688
- ErrorStatus: {
1689
- new (inner: {
1690
- errorDetails: LnurlErrorDetails;
1691
- }): {
1692
- readonly tag: LnurlCallbackStatus_Tags.ErrorStatus;
1693
- readonly inner: Readonly<{
1694
- errorDetails: LnurlErrorDetails;
1695
- }>;
1696
- /**
1697
- * @private
1698
- * This field is private and should not be used, use `tag` instead.
1699
- */
1700
- readonly [uniffiTypeNameSymbol]: "LnurlCallbackStatus";
1701
- };
1702
- "new"(inner: {
1703
- errorDetails: LnurlErrorDetails;
1704
- }): {
1705
- readonly tag: LnurlCallbackStatus_Tags.ErrorStatus;
1706
- readonly inner: Readonly<{
1707
- errorDetails: LnurlErrorDetails;
1708
- }>;
1709
- /**
1710
- * @private
1711
- * This field is private and should not be used, use `tag` instead.
1712
- */
1713
- readonly [uniffiTypeNameSymbol]: "LnurlCallbackStatus";
1714
- };
1715
- instanceOf(obj: any): obj is {
1716
- readonly tag: LnurlCallbackStatus_Tags.ErrorStatus;
1717
- readonly inner: Readonly<{
1718
- errorDetails: LnurlErrorDetails;
1719
- }>;
1720
- /**
1721
- * @private
1722
- * This field is private and should not be used, use `tag` instead.
1723
- */
1724
- readonly [uniffiTypeNameSymbol]: "LnurlCallbackStatus";
1725
- };
1726
- };
1727
- }>;
1728
- /**
1729
- * Contains the result of the entire LNURL interaction, as reported by the LNURL endpoint.
1730
- *
1731
- * * `Ok` indicates the interaction with the endpoint was valid, and the endpoint
1732
- * - started to pay the invoice asynchronously in the case of LNURL-withdraw,
1733
- * - verified the client signature in the case of LNURL-auth
1734
- * * `Error` indicates a generic issue the LNURL endpoint encountered, including a freetext
1735
- * description of the reason.
1736
- *
1737
- * Both cases are described in LUD-03 <https://github.com/lnurl/luds/blob/luds/03.md> & LUD-04: <https://github.com/lnurl/luds/blob/luds/04.md>
1738
- */
1739
- export type LnurlCallbackStatus = InstanceType<(typeof LnurlCallbackStatus)[keyof Omit<typeof LnurlCallbackStatus, 'instanceOf'>]>;
1740
- export declare enum ServiceConnectivityError_Tags {
1741
- Builder = "Builder",
1742
- Redirect = "Redirect",
1743
- Status = "Status",
1744
- Timeout = "Timeout",
1745
- Request = "Request",
1746
- Connect = "Connect",
1747
- Body = "Body",
1748
- Decode = "Decode",
1749
- Json = "Json",
1750
- Other = "Other"
1751
- }
1752
- export declare const ServiceConnectivityError: Readonly<{
1753
- instanceOf: (obj: any) => obj is ServiceConnectivityError;
1754
- Builder: {
1755
- new (v0: string): {
1756
- readonly tag: ServiceConnectivityError_Tags.Builder;
1757
- readonly inner: Readonly<[string]>;
1758
- /**
1759
- * @private
1760
- * This field is private and should not be used, use `tag` instead.
1761
- */
1762
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1763
- name: string;
1764
- message: string;
1765
- stack?: string;
1766
- cause?: unknown;
1767
- };
1768
- "new"(v0: string): {
1769
- readonly tag: ServiceConnectivityError_Tags.Builder;
1770
- readonly inner: Readonly<[string]>;
1771
- /**
1772
- * @private
1773
- * This field is private and should not be used, use `tag` instead.
1774
- */
1775
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1776
- name: string;
1777
- message: string;
1778
- stack?: string;
1779
- cause?: unknown;
1780
- };
1781
- instanceOf(obj: any): obj is {
1782
- readonly tag: ServiceConnectivityError_Tags.Builder;
1783
- readonly inner: Readonly<[string]>;
1784
- /**
1785
- * @private
1786
- * This field is private and should not be used, use `tag` instead.
1787
- */
1788
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1789
- name: string;
1790
- message: string;
1791
- stack?: string;
1792
- cause?: unknown;
1793
- };
1794
- hasInner(obj: any): obj is {
1795
- readonly tag: ServiceConnectivityError_Tags.Builder;
1796
- readonly inner: Readonly<[string]>;
1797
- /**
1798
- * @private
1799
- * This field is private and should not be used, use `tag` instead.
1800
- */
1801
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1802
- name: string;
1803
- message: string;
1804
- stack?: string;
1805
- cause?: unknown;
1806
- };
1807
- getInner(obj: {
1808
- readonly tag: ServiceConnectivityError_Tags.Builder;
1809
- readonly inner: Readonly<[string]>;
1810
- /**
1811
- * @private
1812
- * This field is private and should not be used, use `tag` instead.
1813
- */
1814
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1815
- name: string;
1816
- message: string;
1817
- stack?: string;
1818
- cause?: unknown;
1819
- }): Readonly<[string]>;
1820
- isError(error: unknown): error is Error;
1821
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
1822
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
1823
- stackTraceLimit: number;
1824
- };
1825
- Redirect: {
1826
- new (v0: string): {
1827
- readonly tag: ServiceConnectivityError_Tags.Redirect;
1828
- readonly inner: Readonly<[string]>;
1829
- /**
1830
- * @private
1831
- * This field is private and should not be used, use `tag` instead.
1832
- */
1833
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1834
- name: string;
1835
- message: string;
1836
- stack?: string;
1837
- cause?: unknown;
1838
- };
1839
- "new"(v0: string): {
1840
- readonly tag: ServiceConnectivityError_Tags.Redirect;
1841
- readonly inner: Readonly<[string]>;
1842
- /**
1843
- * @private
1844
- * This field is private and should not be used, use `tag` instead.
1845
- */
1846
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1847
- name: string;
1848
- message: string;
1849
- stack?: string;
1850
- cause?: unknown;
1851
- };
1852
- instanceOf(obj: any): obj is {
1853
- readonly tag: ServiceConnectivityError_Tags.Redirect;
1854
- readonly inner: Readonly<[string]>;
1855
- /**
1856
- * @private
1857
- * This field is private and should not be used, use `tag` instead.
1858
- */
1859
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1860
- name: string;
1861
- message: string;
1862
- stack?: string;
1863
- cause?: unknown;
1864
- };
1865
- hasInner(obj: any): obj is {
1866
- readonly tag: ServiceConnectivityError_Tags.Redirect;
1867
- readonly inner: Readonly<[string]>;
1868
- /**
1869
- * @private
1870
- * This field is private and should not be used, use `tag` instead.
1871
- */
1872
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1873
- name: string;
1874
- message: string;
1875
- stack?: string;
1876
- cause?: unknown;
1877
- };
1878
- getInner(obj: {
1879
- readonly tag: ServiceConnectivityError_Tags.Redirect;
1880
- readonly inner: Readonly<[string]>;
1881
- /**
1882
- * @private
1883
- * This field is private and should not be used, use `tag` instead.
1884
- */
1885
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1886
- name: string;
1887
- message: string;
1888
- stack?: string;
1889
- cause?: unknown;
1890
- }): Readonly<[string]>;
1891
- isError(error: unknown): error is Error;
1892
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
1893
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
1894
- stackTraceLimit: number;
1895
- };
1896
- Status: {
1897
- new (inner: {
1898
- status: number;
1899
- body: string;
1900
- }): {
1901
- readonly tag: ServiceConnectivityError_Tags.Status;
1902
- readonly inner: Readonly<{
1903
- status: number;
1904
- body: string;
1905
- }>;
1906
- /**
1907
- * @private
1908
- * This field is private and should not be used, use `tag` instead.
1909
- */
1910
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1911
- name: string;
1912
- message: string;
1913
- stack?: string;
1914
- cause?: unknown;
1915
- };
1916
- "new"(inner: {
1917
- status: number;
1918
- body: string;
1919
- }): {
1920
- readonly tag: ServiceConnectivityError_Tags.Status;
1921
- readonly inner: Readonly<{
1922
- status: number;
1923
- body: string;
1924
- }>;
1925
- /**
1926
- * @private
1927
- * This field is private and should not be used, use `tag` instead.
1928
- */
1929
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1930
- name: string;
1931
- message: string;
1932
- stack?: string;
1933
- cause?: unknown;
1934
- };
1935
- instanceOf(obj: any): obj is {
1936
- readonly tag: ServiceConnectivityError_Tags.Status;
1937
- readonly inner: Readonly<{
1938
- status: number;
1939
- body: string;
1940
- }>;
1941
- /**
1942
- * @private
1943
- * This field is private and should not be used, use `tag` instead.
1944
- */
1945
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1946
- name: string;
1947
- message: string;
1948
- stack?: string;
1949
- cause?: unknown;
1950
- };
1951
- hasInner(obj: any): obj is {
1952
- readonly tag: ServiceConnectivityError_Tags.Status;
1953
- readonly inner: Readonly<{
1954
- status: number;
1955
- body: string;
1956
- }>;
1957
- /**
1958
- * @private
1959
- * This field is private and should not be used, use `tag` instead.
1960
- */
1961
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1962
- name: string;
1963
- message: string;
1964
- stack?: string;
1965
- cause?: unknown;
1966
- };
1967
- getInner(obj: {
1968
- readonly tag: ServiceConnectivityError_Tags.Status;
1969
- readonly inner: Readonly<{
1970
- status: number;
1971
- body: string;
1972
- }>;
1973
- /**
1974
- * @private
1975
- * This field is private and should not be used, use `tag` instead.
1976
- */
1977
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1978
- name: string;
1979
- message: string;
1980
- stack?: string;
1981
- cause?: unknown;
1982
- }): Readonly<{
1983
- status: number;
1984
- body: string;
1985
- }>;
1986
- isError(error: unknown): error is Error;
1987
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
1988
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
1989
- stackTraceLimit: number;
1990
- };
1991
- Timeout: {
1992
- new (v0: string): {
1993
- readonly tag: ServiceConnectivityError_Tags.Timeout;
1994
- readonly inner: Readonly<[string]>;
1995
- /**
1996
- * @private
1997
- * This field is private and should not be used, use `tag` instead.
1998
- */
1999
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2000
- name: string;
2001
- message: string;
2002
- stack?: string;
2003
- cause?: unknown;
2004
- };
2005
- "new"(v0: string): {
2006
- readonly tag: ServiceConnectivityError_Tags.Timeout;
2007
- readonly inner: Readonly<[string]>;
2008
- /**
2009
- * @private
2010
- * This field is private and should not be used, use `tag` instead.
2011
- */
2012
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2013
- name: string;
2014
- message: string;
2015
- stack?: string;
2016
- cause?: unknown;
2017
- };
2018
- instanceOf(obj: any): obj is {
2019
- readonly tag: ServiceConnectivityError_Tags.Timeout;
2020
- readonly inner: Readonly<[string]>;
2021
- /**
2022
- * @private
2023
- * This field is private and should not be used, use `tag` instead.
2024
- */
2025
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2026
- name: string;
2027
- message: string;
2028
- stack?: string;
2029
- cause?: unknown;
2030
- };
2031
- hasInner(obj: any): obj is {
2032
- readonly tag: ServiceConnectivityError_Tags.Timeout;
2033
- readonly inner: Readonly<[string]>;
2034
- /**
2035
- * @private
2036
- * This field is private and should not be used, use `tag` instead.
2037
- */
2038
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2039
- name: string;
2040
- message: string;
2041
- stack?: string;
2042
- cause?: unknown;
2043
- };
2044
- getInner(obj: {
2045
- readonly tag: ServiceConnectivityError_Tags.Timeout;
2046
- readonly inner: Readonly<[string]>;
2047
- /**
2048
- * @private
2049
- * This field is private and should not be used, use `tag` instead.
2050
- */
2051
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2052
- name: string;
2053
- message: string;
2054
- stack?: string;
2055
- cause?: unknown;
2056
- }): Readonly<[string]>;
2057
- isError(error: unknown): error is Error;
2058
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
2059
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
2060
- stackTraceLimit: number;
2061
- };
2062
- Request: {
2063
- new (v0: string): {
2064
- readonly tag: ServiceConnectivityError_Tags.Request;
2065
- readonly inner: Readonly<[string]>;
2066
- /**
2067
- * @private
2068
- * This field is private and should not be used, use `tag` instead.
2069
- */
2070
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2071
- name: string;
2072
- message: string;
2073
- stack?: string;
2074
- cause?: unknown;
2075
- };
2076
- "new"(v0: string): {
2077
- readonly tag: ServiceConnectivityError_Tags.Request;
2078
- readonly inner: Readonly<[string]>;
2079
- /**
2080
- * @private
2081
- * This field is private and should not be used, use `tag` instead.
2082
- */
2083
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2084
- name: string;
2085
- message: string;
2086
- stack?: string;
2087
- cause?: unknown;
2088
- };
2089
- instanceOf(obj: any): obj is {
2090
- readonly tag: ServiceConnectivityError_Tags.Request;
2091
- readonly inner: Readonly<[string]>;
2092
- /**
2093
- * @private
2094
- * This field is private and should not be used, use `tag` instead.
2095
- */
2096
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2097
- name: string;
2098
- message: string;
2099
- stack?: string;
2100
- cause?: unknown;
2101
- };
2102
- hasInner(obj: any): obj is {
2103
- readonly tag: ServiceConnectivityError_Tags.Request;
2104
- readonly inner: Readonly<[string]>;
2105
- /**
2106
- * @private
2107
- * This field is private and should not be used, use `tag` instead.
2108
- */
2109
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2110
- name: string;
2111
- message: string;
2112
- stack?: string;
2113
- cause?: unknown;
2114
- };
2115
- getInner(obj: {
2116
- readonly tag: ServiceConnectivityError_Tags.Request;
2117
- readonly inner: Readonly<[string]>;
2118
- /**
2119
- * @private
2120
- * This field is private and should not be used, use `tag` instead.
2121
- */
2122
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2123
- name: string;
2124
- message: string;
2125
- stack?: string;
2126
- cause?: unknown;
2127
- }): Readonly<[string]>;
2128
- isError(error: unknown): error is Error;
2129
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
2130
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
2131
- stackTraceLimit: number;
2132
- };
2133
- Connect: {
2134
- new (v0: string): {
2135
- readonly tag: ServiceConnectivityError_Tags.Connect;
2136
- readonly inner: Readonly<[string]>;
2137
- /**
2138
- * @private
2139
- * This field is private and should not be used, use `tag` instead.
2140
- */
2141
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2142
- name: string;
2143
- message: string;
2144
- stack?: string;
2145
- cause?: unknown;
2146
- };
2147
- "new"(v0: string): {
2148
- readonly tag: ServiceConnectivityError_Tags.Connect;
2149
- readonly inner: Readonly<[string]>;
2150
- /**
2151
- * @private
2152
- * This field is private and should not be used, use `tag` instead.
2153
- */
2154
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2155
- name: string;
2156
- message: string;
2157
- stack?: string;
2158
- cause?: unknown;
2159
- };
2160
- instanceOf(obj: any): obj is {
2161
- readonly tag: ServiceConnectivityError_Tags.Connect;
2162
- readonly inner: Readonly<[string]>;
2163
- /**
2164
- * @private
2165
- * This field is private and should not be used, use `tag` instead.
2166
- */
2167
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2168
- name: string;
2169
- message: string;
2170
- stack?: string;
2171
- cause?: unknown;
2172
- };
2173
- hasInner(obj: any): obj is {
2174
- readonly tag: ServiceConnectivityError_Tags.Connect;
2175
- readonly inner: Readonly<[string]>;
2176
- /**
2177
- * @private
2178
- * This field is private and should not be used, use `tag` instead.
2179
- */
2180
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2181
- name: string;
2182
- message: string;
2183
- stack?: string;
2184
- cause?: unknown;
2185
- };
2186
- getInner(obj: {
2187
- readonly tag: ServiceConnectivityError_Tags.Connect;
2188
- readonly inner: Readonly<[string]>;
2189
- /**
2190
- * @private
2191
- * This field is private and should not be used, use `tag` instead.
2192
- */
2193
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2194
- name: string;
2195
- message: string;
2196
- stack?: string;
2197
- cause?: unknown;
2198
- }): Readonly<[string]>;
2199
- isError(error: unknown): error is Error;
2200
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
2201
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
2202
- stackTraceLimit: number;
2203
- };
2204
- Body: {
2205
- new (v0: string): {
2206
- readonly tag: ServiceConnectivityError_Tags.Body;
2207
- readonly inner: Readonly<[string]>;
2208
- /**
2209
- * @private
2210
- * This field is private and should not be used, use `tag` instead.
2211
- */
2212
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2213
- name: string;
2214
- message: string;
2215
- stack?: string;
2216
- cause?: unknown;
2217
- };
2218
- "new"(v0: string): {
2219
- readonly tag: ServiceConnectivityError_Tags.Body;
2220
- readonly inner: Readonly<[string]>;
2221
- /**
2222
- * @private
2223
- * This field is private and should not be used, use `tag` instead.
2224
- */
2225
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2226
- name: string;
2227
- message: string;
2228
- stack?: string;
2229
- cause?: unknown;
2230
- };
2231
- instanceOf(obj: any): obj is {
2232
- readonly tag: ServiceConnectivityError_Tags.Body;
2233
- readonly inner: Readonly<[string]>;
2234
- /**
2235
- * @private
2236
- * This field is private and should not be used, use `tag` instead.
2237
- */
2238
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2239
- name: string;
2240
- message: string;
2241
- stack?: string;
2242
- cause?: unknown;
2243
- };
2244
- hasInner(obj: any): obj is {
2245
- readonly tag: ServiceConnectivityError_Tags.Body;
2246
- readonly inner: Readonly<[string]>;
2247
- /**
2248
- * @private
2249
- * This field is private and should not be used, use `tag` instead.
2250
- */
2251
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2252
- name: string;
2253
- message: string;
2254
- stack?: string;
2255
- cause?: unknown;
2256
- };
2257
- getInner(obj: {
2258
- readonly tag: ServiceConnectivityError_Tags.Body;
2259
- readonly inner: Readonly<[string]>;
2260
- /**
2261
- * @private
2262
- * This field is private and should not be used, use `tag` instead.
2263
- */
2264
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2265
- name: string;
2266
- message: string;
2267
- stack?: string;
2268
- cause?: unknown;
2269
- }): Readonly<[string]>;
2270
- isError(error: unknown): error is Error;
2271
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
2272
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
2273
- stackTraceLimit: number;
2274
- };
2275
- Decode: {
2276
- new (v0: string): {
2277
- readonly tag: ServiceConnectivityError_Tags.Decode;
2278
- readonly inner: Readonly<[string]>;
2279
- /**
2280
- * @private
2281
- * This field is private and should not be used, use `tag` instead.
2282
- */
2283
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2284
- name: string;
2285
- message: string;
2286
- stack?: string;
2287
- cause?: unknown;
2288
- };
2289
- "new"(v0: string): {
2290
- readonly tag: ServiceConnectivityError_Tags.Decode;
2291
- readonly inner: Readonly<[string]>;
2292
- /**
2293
- * @private
2294
- * This field is private and should not be used, use `tag` instead.
2295
- */
2296
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2297
- name: string;
2298
- message: string;
2299
- stack?: string;
2300
- cause?: unknown;
2301
- };
2302
- instanceOf(obj: any): obj is {
2303
- readonly tag: ServiceConnectivityError_Tags.Decode;
2304
- readonly inner: Readonly<[string]>;
2305
- /**
2306
- * @private
2307
- * This field is private and should not be used, use `tag` instead.
2308
- */
2309
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2310
- name: string;
2311
- message: string;
2312
- stack?: string;
2313
- cause?: unknown;
2314
- };
2315
- hasInner(obj: any): obj is {
2316
- readonly tag: ServiceConnectivityError_Tags.Decode;
2317
- readonly inner: Readonly<[string]>;
2318
- /**
2319
- * @private
2320
- * This field is private and should not be used, use `tag` instead.
2321
- */
2322
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2323
- name: string;
2324
- message: string;
2325
- stack?: string;
2326
- cause?: unknown;
2327
- };
2328
- getInner(obj: {
2329
- readonly tag: ServiceConnectivityError_Tags.Decode;
2330
- readonly inner: Readonly<[string]>;
2331
- /**
2332
- * @private
2333
- * This field is private and should not be used, use `tag` instead.
2334
- */
2335
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2336
- name: string;
2337
- message: string;
2338
- stack?: string;
2339
- cause?: unknown;
2340
- }): Readonly<[string]>;
2341
- isError(error: unknown): error is Error;
2342
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
2343
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
2344
- stackTraceLimit: number;
2345
- };
2346
- Json: {
2347
- new (v0: string): {
2348
- readonly tag: ServiceConnectivityError_Tags.Json;
2349
- readonly inner: Readonly<[string]>;
2350
- /**
2351
- * @private
2352
- * This field is private and should not be used, use `tag` instead.
2353
- */
2354
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2355
- name: string;
2356
- message: string;
2357
- stack?: string;
2358
- cause?: unknown;
2359
- };
2360
- "new"(v0: string): {
2361
- readonly tag: ServiceConnectivityError_Tags.Json;
2362
- readonly inner: Readonly<[string]>;
2363
- /**
2364
- * @private
2365
- * This field is private and should not be used, use `tag` instead.
2366
- */
2367
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2368
- name: string;
2369
- message: string;
2370
- stack?: string;
2371
- cause?: unknown;
2372
- };
2373
- instanceOf(obj: any): obj is {
2374
- readonly tag: ServiceConnectivityError_Tags.Json;
2375
- readonly inner: Readonly<[string]>;
2376
- /**
2377
- * @private
2378
- * This field is private and should not be used, use `tag` instead.
2379
- */
2380
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2381
- name: string;
2382
- message: string;
2383
- stack?: string;
2384
- cause?: unknown;
2385
- };
2386
- hasInner(obj: any): obj is {
2387
- readonly tag: ServiceConnectivityError_Tags.Json;
2388
- readonly inner: Readonly<[string]>;
2389
- /**
2390
- * @private
2391
- * This field is private and should not be used, use `tag` instead.
2392
- */
2393
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2394
- name: string;
2395
- message: string;
2396
- stack?: string;
2397
- cause?: unknown;
2398
- };
2399
- getInner(obj: {
2400
- readonly tag: ServiceConnectivityError_Tags.Json;
2401
- readonly inner: Readonly<[string]>;
2402
- /**
2403
- * @private
2404
- * This field is private and should not be used, use `tag` instead.
2405
- */
2406
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2407
- name: string;
2408
- message: string;
2409
- stack?: string;
2410
- cause?: unknown;
2411
- }): Readonly<[string]>;
2412
- isError(error: unknown): error is Error;
2413
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
2414
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
2415
- stackTraceLimit: number;
2416
- };
2417
- Other: {
2418
- new (v0: string): {
2419
- readonly tag: ServiceConnectivityError_Tags.Other;
2420
- readonly inner: Readonly<[string]>;
2421
- /**
2422
- * @private
2423
- * This field is private and should not be used, use `tag` instead.
2424
- */
2425
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2426
- name: string;
2427
- message: string;
2428
- stack?: string;
2429
- cause?: unknown;
2430
- };
2431
- "new"(v0: string): {
2432
- readonly tag: ServiceConnectivityError_Tags.Other;
2433
- readonly inner: Readonly<[string]>;
2434
- /**
2435
- * @private
2436
- * This field is private and should not be used, use `tag` instead.
2437
- */
2438
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2439
- name: string;
2440
- message: string;
2441
- stack?: string;
2442
- cause?: unknown;
2443
- };
2444
- instanceOf(obj: any): obj is {
2445
- readonly tag: ServiceConnectivityError_Tags.Other;
2446
- readonly inner: Readonly<[string]>;
2447
- /**
2448
- * @private
2449
- * This field is private and should not be used, use `tag` instead.
2450
- */
2451
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2452
- name: string;
2453
- message: string;
2454
- stack?: string;
2455
- cause?: unknown;
2456
- };
2457
- hasInner(obj: any): obj is {
2458
- readonly tag: ServiceConnectivityError_Tags.Other;
2459
- readonly inner: Readonly<[string]>;
2460
- /**
2461
- * @private
2462
- * This field is private and should not be used, use `tag` instead.
2463
- */
2464
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2465
- name: string;
2466
- message: string;
2467
- stack?: string;
2468
- cause?: unknown;
2469
- };
2470
- getInner(obj: {
2471
- readonly tag: ServiceConnectivityError_Tags.Other;
2472
- readonly inner: Readonly<[string]>;
2473
- /**
2474
- * @private
2475
- * This field is private and should not be used, use `tag` instead.
2476
- */
2477
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2478
- name: string;
2479
- message: string;
2480
- stack?: string;
2481
- cause?: unknown;
2482
- }): Readonly<[string]>;
2483
- isError(error: unknown): error is Error;
2484
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
2485
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
2486
- stackTraceLimit: number;
2487
- };
2488
- }>;
2489
- export type ServiceConnectivityError = InstanceType<(typeof ServiceConnectivityError)[keyof Omit<typeof ServiceConnectivityError, 'instanceOf'>]>;
2490
- export declare enum SuccessAction_Tags {
2491
- Aes = "Aes",
2492
- Message = "Message",
2493
- Url = "Url"
2494
- }
2495
- /**
2496
- * Supported success action types
2497
- *
2498
- * Receiving any other (unsupported) success action type will result in a failed parsing,
2499
- * which will abort the LNURL-pay workflow, as per LUD-09.
2500
- */
2501
- export declare const SuccessAction: Readonly<{
2502
- instanceOf: (obj: any) => obj is SuccessAction;
2503
- Aes: {
2504
- new (inner: {
2505
- data: AesSuccessActionData;
2506
- }): {
2507
- readonly tag: SuccessAction_Tags.Aes;
2508
- readonly inner: Readonly<{
2509
- data: AesSuccessActionData;
2510
- }>;
2511
- /**
2512
- * @private
2513
- * This field is private and should not be used, use `tag` instead.
2514
- */
2515
- readonly [uniffiTypeNameSymbol]: "SuccessAction";
2516
- };
2517
- "new"(inner: {
2518
- data: AesSuccessActionData;
2519
- }): {
2520
- readonly tag: SuccessAction_Tags.Aes;
2521
- readonly inner: Readonly<{
2522
- data: AesSuccessActionData;
2523
- }>;
2524
- /**
2525
- * @private
2526
- * This field is private and should not be used, use `tag` instead.
2527
- */
2528
- readonly [uniffiTypeNameSymbol]: "SuccessAction";
2529
- };
2530
- instanceOf(obj: any): obj is {
2531
- readonly tag: SuccessAction_Tags.Aes;
2532
- readonly inner: Readonly<{
2533
- data: AesSuccessActionData;
2534
- }>;
2535
- /**
2536
- * @private
2537
- * This field is private and should not be used, use `tag` instead.
2538
- */
2539
- readonly [uniffiTypeNameSymbol]: "SuccessAction";
2540
- };
2541
- };
2542
- Message: {
2543
- new (inner: {
2544
- data: MessageSuccessActionData;
2545
- }): {
2546
- readonly tag: SuccessAction_Tags.Message;
2547
- readonly inner: Readonly<{
2548
- data: MessageSuccessActionData;
2549
- }>;
2550
- /**
2551
- * @private
2552
- * This field is private and should not be used, use `tag` instead.
2553
- */
2554
- readonly [uniffiTypeNameSymbol]: "SuccessAction";
2555
- };
2556
- "new"(inner: {
2557
- data: MessageSuccessActionData;
2558
- }): {
2559
- readonly tag: SuccessAction_Tags.Message;
2560
- readonly inner: Readonly<{
2561
- data: MessageSuccessActionData;
2562
- }>;
2563
- /**
2564
- * @private
2565
- * This field is private and should not be used, use `tag` instead.
2566
- */
2567
- readonly [uniffiTypeNameSymbol]: "SuccessAction";
2568
- };
2569
- instanceOf(obj: any): obj is {
2570
- readonly tag: SuccessAction_Tags.Message;
2571
- readonly inner: Readonly<{
2572
- data: MessageSuccessActionData;
2573
- }>;
2574
- /**
2575
- * @private
2576
- * This field is private and should not be used, use `tag` instead.
2577
- */
2578
- readonly [uniffiTypeNameSymbol]: "SuccessAction";
2579
- };
2580
- };
2581
- Url: {
2582
- new (inner: {
2583
- data: UrlSuccessActionData;
2584
- }): {
2585
- readonly tag: SuccessAction_Tags.Url;
2586
- readonly inner: Readonly<{
2587
- data: UrlSuccessActionData;
2588
- }>;
2589
- /**
2590
- * @private
2591
- * This field is private and should not be used, use `tag` instead.
2592
- */
2593
- readonly [uniffiTypeNameSymbol]: "SuccessAction";
2594
- };
2595
- "new"(inner: {
2596
- data: UrlSuccessActionData;
2597
- }): {
2598
- readonly tag: SuccessAction_Tags.Url;
2599
- readonly inner: Readonly<{
2600
- data: UrlSuccessActionData;
2601
- }>;
2602
- /**
2603
- * @private
2604
- * This field is private and should not be used, use `tag` instead.
2605
- */
2606
- readonly [uniffiTypeNameSymbol]: "SuccessAction";
2607
- };
2608
- instanceOf(obj: any): obj is {
2609
- readonly tag: SuccessAction_Tags.Url;
2610
- readonly inner: Readonly<{
2611
- data: UrlSuccessActionData;
2612
- }>;
2613
- /**
2614
- * @private
2615
- * This field is private and should not be used, use `tag` instead.
2616
- */
2617
- readonly [uniffiTypeNameSymbol]: "SuccessAction";
2618
- };
2619
- };
2620
- }>;
2621
- /**
2622
- * Supported success action types
2623
- *
2624
- * Receiving any other (unsupported) success action type will result in a failed parsing,
2625
- * which will abort the LNURL-pay workflow, as per LUD-09.
2626
- */
2627
- export type SuccessAction = InstanceType<(typeof SuccessAction)[keyof Omit<typeof SuccessAction, 'instanceOf'>]>;
2628
- export declare enum SuccessActionProcessed_Tags {
2629
- Aes = "Aes",
2630
- Message = "Message",
2631
- Url = "Url"
2632
- }
2633
- /**
2634
- * [`SuccessAction`] where contents are ready to be consumed by the caller
2635
- *
2636
- * Contents are identical to [`SuccessAction`], except for AES where the ciphertext is decrypted.
2637
- */
2638
- export declare const SuccessActionProcessed: Readonly<{
2639
- instanceOf: (obj: any) => obj is SuccessActionProcessed;
2640
- Aes: {
2641
- new (inner: {
2642
- result: AesSuccessActionDataResult;
2643
- }): {
2644
- readonly tag: SuccessActionProcessed_Tags.Aes;
2645
- readonly inner: Readonly<{
2646
- result: AesSuccessActionDataResult;
2647
- }>;
2648
- /**
2649
- * @private
2650
- * This field is private and should not be used, use `tag` instead.
2651
- */
2652
- readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
2653
- };
2654
- "new"(inner: {
2655
- result: AesSuccessActionDataResult;
2656
- }): {
2657
- readonly tag: SuccessActionProcessed_Tags.Aes;
2658
- readonly inner: Readonly<{
2659
- result: AesSuccessActionDataResult;
2660
- }>;
2661
- /**
2662
- * @private
2663
- * This field is private and should not be used, use `tag` instead.
2664
- */
2665
- readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
2666
- };
2667
- instanceOf(obj: any): obj is {
2668
- readonly tag: SuccessActionProcessed_Tags.Aes;
2669
- readonly inner: Readonly<{
2670
- result: AesSuccessActionDataResult;
2671
- }>;
2672
- /**
2673
- * @private
2674
- * This field is private and should not be used, use `tag` instead.
2675
- */
2676
- readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
2677
- };
2678
- };
2679
- Message: {
2680
- new (inner: {
2681
- data: MessageSuccessActionData;
2682
- }): {
2683
- readonly tag: SuccessActionProcessed_Tags.Message;
2684
- readonly inner: Readonly<{
2685
- data: MessageSuccessActionData;
2686
- }>;
2687
- /**
2688
- * @private
2689
- * This field is private and should not be used, use `tag` instead.
2690
- */
2691
- readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
2692
- };
2693
- "new"(inner: {
2694
- data: MessageSuccessActionData;
2695
- }): {
2696
- readonly tag: SuccessActionProcessed_Tags.Message;
2697
- readonly inner: Readonly<{
2698
- data: MessageSuccessActionData;
2699
- }>;
2700
- /**
2701
- * @private
2702
- * This field is private and should not be used, use `tag` instead.
2703
- */
2704
- readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
2705
- };
2706
- instanceOf(obj: any): obj is {
2707
- readonly tag: SuccessActionProcessed_Tags.Message;
2708
- readonly inner: Readonly<{
2709
- data: MessageSuccessActionData;
2710
- }>;
2711
- /**
2712
- * @private
2713
- * This field is private and should not be used, use `tag` instead.
2714
- */
2715
- readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
2716
- };
2717
- };
2718
- Url: {
2719
- new (inner: {
2720
- data: UrlSuccessActionData;
2721
- }): {
2722
- readonly tag: SuccessActionProcessed_Tags.Url;
2723
- readonly inner: Readonly<{
2724
- data: UrlSuccessActionData;
2725
- }>;
2726
- /**
2727
- * @private
2728
- * This field is private and should not be used, use `tag` instead.
2729
- */
2730
- readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
2731
- };
2732
- "new"(inner: {
2733
- data: UrlSuccessActionData;
2734
- }): {
2735
- readonly tag: SuccessActionProcessed_Tags.Url;
2736
- readonly inner: Readonly<{
2737
- data: UrlSuccessActionData;
2738
- }>;
2739
- /**
2740
- * @private
2741
- * This field is private and should not be used, use `tag` instead.
2742
- */
2743
- readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
2744
- };
2745
- instanceOf(obj: any): obj is {
2746
- readonly tag: SuccessActionProcessed_Tags.Url;
2747
- readonly inner: Readonly<{
2748
- data: UrlSuccessActionData;
2749
- }>;
2750
- /**
2751
- * @private
2752
- * This field is private and should not be used, use `tag` instead.
2753
- */
2754
- readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
2755
- };
2756
- };
2757
- }>;
2758
- /**
2759
- * [`SuccessAction`] where contents are ready to be consumed by the caller
2760
- *
2761
- * Contents are identical to [`SuccessAction`], except for AES where the ciphertext is decrypted.
2762
- */
2763
- export type SuccessActionProcessed = InstanceType<(typeof SuccessActionProcessed)[keyof Omit<typeof SuccessActionProcessed, 'instanceOf'>]>;
2764
- /**
2765
- * Trait covering fiat-related functionality
2766
- */
2767
- export interface FiatService {
2768
- /**
2769
- * List all supported fiat currencies for which there is a known exchange rate.
2770
- */
2771
- fetchFiatCurrencies(asyncOpts_?: {
2772
- signal: AbortSignal;
2773
- }): Promise<Array<FiatCurrency>>;
2774
- /**
2775
- * Get the live rates from the server.
2776
- */
2777
- fetchFiatRates(asyncOpts_?: {
2778
- signal: AbortSignal;
2779
- }): Promise<Array<Rate>>;
2780
- }
2781
- /**
2782
- * Trait covering fiat-related functionality
2783
- */
2784
- export declare class FiatServiceImpl extends UniffiAbstractObject implements FiatService {
2785
- readonly [uniffiTypeNameSymbol] = "FiatServiceImpl";
2786
- readonly [destructorGuardSymbol]: UniffiRustArcPtr;
2787
- readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
2788
- private constructor();
2789
- /**
2790
- * List all supported fiat currencies for which there is a known exchange rate.
2791
- */
2792
- fetchFiatCurrencies(asyncOpts_?: {
2793
- signal: AbortSignal;
2794
- }): Promise<Array<FiatCurrency>>;
2795
- /**
2796
- * Get the live rates from the server.
2797
- */
2798
- fetchFiatRates(asyncOpts_?: {
2799
- signal: AbortSignal;
2800
- }): Promise<Array<Rate>>;
2801
- /**
2802
- * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
2803
- */
2804
- uniffiDestroy(): void;
2805
- static instanceOf(obj: any): obj is FiatServiceImpl;
2806
- }
2807
- export interface RestClient {
2808
- /**
2809
- * Makes a GET request and logs on DEBUG.
2810
- * ### Arguments
2811
- * - `url`: the URL on which GET will be called
2812
- * - `headers`: optional headers that will be set on the request
2813
- */
2814
- getRequest(url: string, headers: Map<string, string> | undefined, asyncOpts_?: {
2815
- signal: AbortSignal;
2816
- }): Promise<RestResponse>;
2817
- /**
2818
- * Makes a POST request, and logs on DEBUG.
2819
- * ### Arguments
2820
- * - `url`: the URL on which POST will be called
2821
- * - `headers`: the optional POST headers
2822
- * - `body`: the optional POST body
2823
- */
2824
- postRequest(url: string, headers: Map<string, string> | undefined, body: string | undefined, asyncOpts_?: {
2825
- signal: AbortSignal;
2826
- }): Promise<RestResponse>;
2827
- /**
2828
- * Makes a DELETE request, and logs on DEBUG.
2829
- * ### Arguments
2830
- * - `url`: the URL on which DELETE will be called
2831
- * - `headers`: the optional DELETE headers
2832
- * - `body`: the optional DELETE body
2833
- */
2834
- deleteRequest(url: string, headers: Map<string, string> | undefined, body: string | undefined, asyncOpts_?: {
2835
- signal: AbortSignal;
2836
- }): Promise<RestResponse>;
2837
- }
2838
- export declare class RestClientImpl extends UniffiAbstractObject implements RestClient {
2839
- readonly [uniffiTypeNameSymbol] = "RestClientImpl";
2840
- readonly [destructorGuardSymbol]: UniffiRustArcPtr;
2841
- readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
2842
- private constructor();
2843
- /**
2844
- * Makes a GET request and logs on DEBUG.
2845
- * ### Arguments
2846
- * - `url`: the URL on which GET will be called
2847
- * - `headers`: optional headers that will be set on the request
2848
- */
2849
- getRequest(url: string, headers: Map<string, string> | undefined, asyncOpts_?: {
2850
- signal: AbortSignal;
2851
- }): Promise<RestResponse>;
2852
- /**
2853
- * Makes a POST request, and logs on DEBUG.
2854
- * ### Arguments
2855
- * - `url`: the URL on which POST will be called
2856
- * - `headers`: the optional POST headers
2857
- * - `body`: the optional POST body
2858
- */
2859
- postRequest(url: string, headers: Map<string, string> | undefined, body: string | undefined, asyncOpts_?: {
2860
- signal: AbortSignal;
2861
- }): Promise<RestResponse>;
2862
- /**
2863
- * Makes a DELETE request, and logs on DEBUG.
2864
- * ### Arguments
2865
- * - `url`: the URL on which DELETE will be called
2866
- * - `headers`: the optional DELETE headers
2867
- * - `body`: the optional DELETE body
2868
- */
2869
- deleteRequest(url: string, headers: Map<string, string> | undefined, body: string | undefined, asyncOpts_?: {
2870
- signal: AbortSignal;
2871
- }): Promise<RestResponse>;
2872
- /**
2873
- * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
2874
- */
2875
- uniffiDestroy(): void;
2876
- static instanceOf(obj: any): obj is RestClientImpl;
2877
- }
2878
- /**
2879
- * This should be called before anything else.
2880
- *
2881
- * It is likely that this is being done for you by the library's `index.ts`.
2882
- *
2883
- * It checks versions of uniffi between when the Rust scaffolding was generated
2884
- * and when the bindings were generated.
2885
- *
2886
- * It also initializes the machinery to enable Rust to talk back to Javascript.
2887
- */
2888
- declare function uniffiEnsureInitialized(): void;
2889
- declare const _default: Readonly<{
2890
- initialize: typeof uniffiEnsureInitialized;
2891
- converters: {
2892
- FfiConverterTypeAesSuccessActionData: {
2893
- read(from: RustBuffer): AesSuccessActionData;
2894
- write(value: AesSuccessActionData, into: RustBuffer): void;
2895
- allocationSize(value: AesSuccessActionData): number;
2896
- lift(value: UniffiByteArray): AesSuccessActionData;
2897
- lower(value: AesSuccessActionData): UniffiByteArray;
2898
- };
2899
- FfiConverterTypeAesSuccessActionDataDecrypted: {
2900
- read(from: RustBuffer): AesSuccessActionDataDecrypted;
2901
- write(value: AesSuccessActionDataDecrypted, into: RustBuffer): void;
2902
- allocationSize(value: AesSuccessActionDataDecrypted): number;
2903
- lift(value: UniffiByteArray): AesSuccessActionDataDecrypted;
2904
- lower(value: AesSuccessActionDataDecrypted): UniffiByteArray;
2905
- };
2906
- FfiConverterTypeAesSuccessActionDataResult: {
2907
- read(from: RustBuffer): AesSuccessActionDataResult;
2908
- write(value: AesSuccessActionDataResult, into: RustBuffer): void;
2909
- allocationSize(value: AesSuccessActionDataResult): number;
2910
- lift(value: UniffiByteArray): AesSuccessActionDataResult;
2911
- lower(value: AesSuccessActionDataResult): UniffiByteArray;
2912
- };
2913
- FfiConverterTypeAmount: {
2914
- read(from: RustBuffer): Amount;
2915
- write(value: Amount, into: RustBuffer): void;
2916
- allocationSize(value: Amount): number;
2917
- lift(value: UniffiByteArray): Amount;
2918
- lower(value: Amount): UniffiByteArray;
2919
- };
2920
- FfiConverterTypeBip21Details: {
2921
- read(from: RustBuffer): Bip21Details;
2922
- write(value: Bip21Details, into: RustBuffer): void;
2923
- allocationSize(value: Bip21Details): number;
2924
- lift(value: UniffiByteArray): Bip21Details;
2925
- lower(value: Bip21Details): UniffiByteArray;
2926
- };
2927
- FfiConverterTypeBip21Extra: {
2928
- read(from: RustBuffer): Bip21Extra;
2929
- write(value: Bip21Extra, into: RustBuffer): void;
2930
- allocationSize(value: Bip21Extra): number;
2931
- lift(value: UniffiByteArray): Bip21Extra;
2932
- lower(value: Bip21Extra): UniffiByteArray;
2933
- };
2934
- FfiConverterTypeBitcoinAddressDetails: {
2935
- read(from: RustBuffer): BitcoinAddressDetails;
2936
- write(value: BitcoinAddressDetails, into: RustBuffer): void;
2937
- allocationSize(value: BitcoinAddressDetails): number;
2938
- lift(value: UniffiByteArray): BitcoinAddressDetails;
2939
- lower(value: BitcoinAddressDetails): UniffiByteArray;
2940
- };
2941
- FfiConverterTypeBitcoinNetwork: {
2942
- read(from: RustBuffer): BitcoinNetwork;
2943
- write(value: BitcoinNetwork, into: RustBuffer): void;
2944
- allocationSize(value: BitcoinNetwork): number;
2945
- lift(value: UniffiByteArray): BitcoinNetwork;
2946
- lower(value: BitcoinNetwork): UniffiByteArray;
2947
- };
2948
- FfiConverterTypeBolt11Invoice: {
2949
- read(from: RustBuffer): Bolt11Invoice;
2950
- write(value: Bolt11Invoice, into: RustBuffer): void;
2951
- allocationSize(value: Bolt11Invoice): number;
2952
- lift(value: UniffiByteArray): Bolt11Invoice;
2953
- lower(value: Bolt11Invoice): UniffiByteArray;
2954
- };
2955
- FfiConverterTypeBolt11InvoiceDetails: {
2956
- read(from: RustBuffer): Bolt11InvoiceDetails;
2957
- write(value: Bolt11InvoiceDetails, into: RustBuffer): void;
2958
- allocationSize(value: Bolt11InvoiceDetails): number;
2959
- lift(value: UniffiByteArray): Bolt11InvoiceDetails;
2960
- lower(value: Bolt11InvoiceDetails): UniffiByteArray;
2961
- };
2962
- FfiConverterTypeBolt11RouteHint: {
2963
- read(from: RustBuffer): Bolt11RouteHint;
2964
- write(value: Bolt11RouteHint, into: RustBuffer): void;
2965
- allocationSize(value: Bolt11RouteHint): number;
2966
- lift(value: UniffiByteArray): Bolt11RouteHint;
2967
- lower(value: Bolt11RouteHint): UniffiByteArray;
2968
- };
2969
- FfiConverterTypeBolt11RouteHintHop: {
2970
- read(from: RustBuffer): Bolt11RouteHintHop;
2971
- write(value: Bolt11RouteHintHop, into: RustBuffer): void;
2972
- allocationSize(value: Bolt11RouteHintHop): number;
2973
- lift(value: UniffiByteArray): Bolt11RouteHintHop;
2974
- lower(value: Bolt11RouteHintHop): UniffiByteArray;
2975
- };
2976
- FfiConverterTypeBolt12Invoice: {
2977
- read(from: RustBuffer): Bolt12Invoice;
2978
- write(value: Bolt12Invoice, into: RustBuffer): void;
2979
- allocationSize(value: Bolt12Invoice): number;
2980
- lift(value: UniffiByteArray): Bolt12Invoice;
2981
- lower(value: Bolt12Invoice): UniffiByteArray;
2982
- };
2983
- FfiConverterTypeBolt12InvoiceDetails: {
2984
- read(from: RustBuffer): Bolt12InvoiceDetails;
2985
- write(value: Bolt12InvoiceDetails, into: RustBuffer): void;
2986
- allocationSize(value: Bolt12InvoiceDetails): number;
2987
- lift(value: UniffiByteArray): Bolt12InvoiceDetails;
2988
- lower(value: Bolt12InvoiceDetails): UniffiByteArray;
2989
- };
2990
- FfiConverterTypeBolt12InvoiceRequestDetails: {
2991
- read(from: RustBuffer): Bolt12InvoiceRequestDetails;
2992
- write(value: Bolt12InvoiceRequestDetails, into: RustBuffer): void;
2993
- allocationSize(value: Bolt12InvoiceRequestDetails): number;
2994
- lift(value: UniffiByteArray): Bolt12InvoiceRequestDetails;
2995
- lower(value: Bolt12InvoiceRequestDetails): UniffiByteArray;
2996
- };
2997
- FfiConverterTypeBolt12Offer: {
2998
- read(from: RustBuffer): Bolt12Offer;
2999
- write(value: Bolt12Offer, into: RustBuffer): void;
3000
- allocationSize(value: Bolt12Offer): number;
3001
- lift(value: UniffiByteArray): Bolt12Offer;
3002
- lower(value: Bolt12Offer): UniffiByteArray;
3003
- };
3004
- FfiConverterTypeBolt12OfferBlindedPath: {
3005
- read(from: RustBuffer): Bolt12OfferBlindedPath;
3006
- write(value: Bolt12OfferBlindedPath, into: RustBuffer): void;
3007
- allocationSize(value: Bolt12OfferBlindedPath): number;
3008
- lift(value: UniffiByteArray): Bolt12OfferBlindedPath;
3009
- lower(value: Bolt12OfferBlindedPath): UniffiByteArray;
3010
- };
3011
- FfiConverterTypeBolt12OfferDetails: {
3012
- read(from: RustBuffer): Bolt12OfferDetails;
3013
- write(value: Bolt12OfferDetails, into: RustBuffer): void;
3014
- allocationSize(value: Bolt12OfferDetails): number;
3015
- lift(value: UniffiByteArray): Bolt12OfferDetails;
3016
- lower(value: Bolt12OfferDetails): UniffiByteArray;
3017
- };
3018
- FfiConverterTypeCurrencyInfo: {
3019
- read(from: RustBuffer): CurrencyInfo;
3020
- write(value: CurrencyInfo, into: RustBuffer): void;
3021
- allocationSize(value: CurrencyInfo): number;
3022
- lift(value: UniffiByteArray): CurrencyInfo;
3023
- lower(value: CurrencyInfo): UniffiByteArray;
3024
- };
3025
- FfiConverterTypeExternalInputParser: {
3026
- read(from: RustBuffer): ExternalInputParser;
3027
- write(value: ExternalInputParser, into: RustBuffer): void;
3028
- allocationSize(value: ExternalInputParser): number;
3029
- lift(value: UniffiByteArray): ExternalInputParser;
3030
- lower(value: ExternalInputParser): UniffiByteArray;
3031
- };
3032
- FfiConverterTypeFiatCurrency: {
3033
- read(from: RustBuffer): FiatCurrency;
3034
- write(value: FiatCurrency, into: RustBuffer): void;
3035
- allocationSize(value: FiatCurrency): number;
3036
- lift(value: UniffiByteArray): FiatCurrency;
3037
- lower(value: FiatCurrency): UniffiByteArray;
3038
- };
3039
- FfiConverterTypeFiatService: FfiConverterObjectWithCallbacks<FiatService>;
3040
- FfiConverterTypeInputType: {
3041
- read(from: RustBuffer): InputType;
3042
- write(value: InputType, into: RustBuffer): void;
3043
- allocationSize(value: InputType): number;
3044
- lift(value: UniffiByteArray): InputType;
3045
- lower(value: InputType): UniffiByteArray;
3046
- };
3047
- FfiConverterTypeLightningAddressDetails: {
3048
- read(from: RustBuffer): LightningAddressDetails;
3049
- write(value: LightningAddressDetails, into: RustBuffer): void;
3050
- allocationSize(value: LightningAddressDetails): number;
3051
- lift(value: UniffiByteArray): LightningAddressDetails;
3052
- lower(value: LightningAddressDetails): UniffiByteArray;
3053
- };
3054
- FfiConverterTypeLnurlAuthRequestDetails: {
3055
- read(from: RustBuffer): LnurlAuthRequestDetails;
3056
- write(value: LnurlAuthRequestDetails, into: RustBuffer): void;
3057
- allocationSize(value: LnurlAuthRequestDetails): number;
3058
- lift(value: UniffiByteArray): LnurlAuthRequestDetails;
3059
- lower(value: LnurlAuthRequestDetails): UniffiByteArray;
3060
- };
3061
- FfiConverterTypeLnurlCallbackStatus: {
3062
- read(from: RustBuffer): LnurlCallbackStatus;
3063
- write(value: LnurlCallbackStatus, into: RustBuffer): void;
3064
- allocationSize(value: LnurlCallbackStatus): number;
3065
- lift(value: UniffiByteArray): LnurlCallbackStatus;
3066
- lower(value: LnurlCallbackStatus): UniffiByteArray;
3067
- };
3068
- FfiConverterTypeLnurlErrorDetails: {
3069
- read(from: RustBuffer): LnurlErrorDetails;
3070
- write(value: LnurlErrorDetails, into: RustBuffer): void;
3071
- allocationSize(value: LnurlErrorDetails): number;
3072
- lift(value: UniffiByteArray): LnurlErrorDetails;
3073
- lower(value: LnurlErrorDetails): UniffiByteArray;
3074
- };
3075
- FfiConverterTypeLnurlPayRequestDetails: {
3076
- read(from: RustBuffer): LnurlPayRequestDetails;
3077
- write(value: LnurlPayRequestDetails, into: RustBuffer): void;
3078
- allocationSize(value: LnurlPayRequestDetails): number;
3079
- lift(value: UniffiByteArray): LnurlPayRequestDetails;
3080
- lower(value: LnurlPayRequestDetails): UniffiByteArray;
3081
- };
3082
- FfiConverterTypeLnurlWithdrawRequestDetails: {
3083
- read(from: RustBuffer): LnurlWithdrawRequestDetails;
3084
- write(value: LnurlWithdrawRequestDetails, into: RustBuffer): void;
3085
- allocationSize(value: LnurlWithdrawRequestDetails): number;
3086
- lift(value: UniffiByteArray): LnurlWithdrawRequestDetails;
3087
- lower(value: LnurlWithdrawRequestDetails): UniffiByteArray;
3088
- };
3089
- FfiConverterTypeLocaleOverrides: {
3090
- read(from: RustBuffer): LocaleOverrides;
3091
- write(value: LocaleOverrides, into: RustBuffer): void;
3092
- allocationSize(value: LocaleOverrides): number;
3093
- lift(value: UniffiByteArray): LocaleOverrides;
3094
- lower(value: LocaleOverrides): UniffiByteArray;
3095
- };
3096
- FfiConverterTypeLocalizedName: {
3097
- read(from: RustBuffer): LocalizedName;
3098
- write(value: LocalizedName, into: RustBuffer): void;
3099
- allocationSize(value: LocalizedName): number;
3100
- lift(value: UniffiByteArray): LocalizedName;
3101
- lower(value: LocalizedName): UniffiByteArray;
3102
- };
3103
- FfiConverterTypeMessageSuccessActionData: {
3104
- read(from: RustBuffer): MessageSuccessActionData;
3105
- write(value: MessageSuccessActionData, into: RustBuffer): void;
3106
- allocationSize(value: MessageSuccessActionData): number;
3107
- lift(value: UniffiByteArray): MessageSuccessActionData;
3108
- lower(value: MessageSuccessActionData): UniffiByteArray;
3109
- };
3110
- FfiConverterTypePaymentRequestSource: {
3111
- read(from: RustBuffer): PaymentRequestSource;
3112
- write(value: PaymentRequestSource, into: RustBuffer): void;
3113
- allocationSize(value: PaymentRequestSource): number;
3114
- lift(value: UniffiByteArray): PaymentRequestSource;
3115
- lower(value: PaymentRequestSource): UniffiByteArray;
3116
- };
3117
- FfiConverterTypeRate: {
3118
- read(from: RustBuffer): Rate;
3119
- write(value: Rate, into: RustBuffer): void;
3120
- allocationSize(value: Rate): number;
3121
- lift(value: UniffiByteArray): Rate;
3122
- lower(value: Rate): UniffiByteArray;
3123
- };
3124
- FfiConverterTypeRestClient: FfiConverterObjectWithCallbacks<RestClient>;
3125
- FfiConverterTypeRestResponse: {
3126
- read(from: RustBuffer): RestResponse;
3127
- write(value: RestResponse, into: RustBuffer): void;
3128
- allocationSize(value: RestResponse): number;
3129
- lift(value: UniffiByteArray): RestResponse;
3130
- lower(value: RestResponse): UniffiByteArray;
3131
- };
3132
- FfiConverterTypeSilentPaymentAddressDetails: {
3133
- read(from: RustBuffer): SilentPaymentAddressDetails;
3134
- write(value: SilentPaymentAddressDetails, into: RustBuffer): void;
3135
- allocationSize(value: SilentPaymentAddressDetails): number;
3136
- lift(value: UniffiByteArray): SilentPaymentAddressDetails;
3137
- lower(value: SilentPaymentAddressDetails): UniffiByteArray;
3138
- };
3139
- FfiConverterTypeSparkAddressDetails: {
3140
- read(from: RustBuffer): SparkAddressDetails;
3141
- write(value: SparkAddressDetails, into: RustBuffer): void;
3142
- allocationSize(value: SparkAddressDetails): number;
3143
- lift(value: UniffiByteArray): SparkAddressDetails;
3144
- lower(value: SparkAddressDetails): UniffiByteArray;
3145
- };
3146
- FfiConverterTypeSparkInvoiceDetails: {
3147
- read(from: RustBuffer): SparkInvoiceDetails;
3148
- write(value: SparkInvoiceDetails, into: RustBuffer): void;
3149
- allocationSize(value: SparkInvoiceDetails): number;
3150
- lift(value: UniffiByteArray): SparkInvoiceDetails;
3151
- lower(value: SparkInvoiceDetails): UniffiByteArray;
3152
- };
3153
- FfiConverterTypeSuccessAction: {
3154
- read(from: RustBuffer): SuccessAction;
3155
- write(value: SuccessAction, into: RustBuffer): void;
3156
- allocationSize(value: SuccessAction): number;
3157
- lift(value: UniffiByteArray): SuccessAction;
3158
- lower(value: SuccessAction): UniffiByteArray;
3159
- };
3160
- FfiConverterTypeSuccessActionProcessed: {
3161
- read(from: RustBuffer): SuccessActionProcessed;
3162
- write(value: SuccessActionProcessed, into: RustBuffer): void;
3163
- allocationSize(value: SuccessActionProcessed): number;
3164
- lift(value: UniffiByteArray): SuccessActionProcessed;
3165
- lower(value: SuccessActionProcessed): UniffiByteArray;
3166
- };
3167
- FfiConverterTypeSymbol: {
3168
- read(from: RustBuffer): Symbol;
3169
- write(value: Symbol, into: RustBuffer): void;
3170
- allocationSize(value: Symbol): number;
3171
- lift(value: UniffiByteArray): Symbol;
3172
- lower(value: Symbol): UniffiByteArray;
3173
- };
3174
- FfiConverterTypeUrlSuccessActionData: {
3175
- read(from: RustBuffer): UrlSuccessActionData;
3176
- write(value: UrlSuccessActionData, into: RustBuffer): void;
3177
- allocationSize(value: UrlSuccessActionData): number;
3178
- lift(value: UniffiByteArray): UrlSuccessActionData;
3179
- lower(value: UrlSuccessActionData): UniffiByteArray;
3180
- };
3181
- FfiConverterTypecommon_u128: {
3182
- lift(value: Uint8Array<ArrayBufferLike>): bigint;
3183
- lower(value: bigint): Uint8Array<ArrayBufferLike>;
3184
- read(from: RustBuffer): bigint;
3185
- write(value: bigint, into: RustBuffer): void;
3186
- allocationSize(value: bigint): number;
3187
- };
3188
- };
3189
- }>;
3190
- export default _default;
3191
- //# sourceMappingURL=breez_sdk_common.d.ts.map