@bitcredit/bcr-ebill-wasm 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts ADDED
@@ -0,0 +1,744 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export function initialize_api(cfg: Config): Promise<void>;
4
+ export enum ContactTypeWeb {
5
+ Person = 0,
6
+ Company = 1,
7
+ }
8
+ export enum IdentityTypeWeb {
9
+ Person = 0,
10
+ Company = 1,
11
+ }
12
+ export interface ContactsResponse {
13
+ contacts: ContactWeb[];
14
+ }
15
+
16
+ export interface NewContactPayload {
17
+ t: number;
18
+ node_id: string;
19
+ name: string;
20
+ email: string;
21
+ postal_address: PostalAddressWeb;
22
+ date_of_birth_or_registration: string | undefined;
23
+ country_of_birth_or_registration: string | undefined;
24
+ city_of_birth_or_registration: string | undefined;
25
+ identification_number: string | undefined;
26
+ avatar_file_upload_id: string | undefined;
27
+ proof_document_file_upload_id: string | undefined;
28
+ }
29
+
30
+ export interface EditContactPayload {
31
+ node_id: string;
32
+ name: string | undefined;
33
+ email: string | undefined;
34
+ postal_address: OptionalPostalAddressWeb;
35
+ date_of_birth_or_registration: string | undefined;
36
+ country_of_birth_or_registration: string | undefined;
37
+ city_of_birth_or_registration: string | undefined;
38
+ identification_number: string | undefined;
39
+ avatar_file_upload_id: string | undefined;
40
+ proof_document_file_upload_id: string | undefined;
41
+ }
42
+
43
+ export interface ContactWeb {
44
+ t: ContactTypeWeb;
45
+ node_id: string;
46
+ name: string;
47
+ email: string;
48
+ postal_address: PostalAddressWeb;
49
+ date_of_birth_or_registration: string | undefined;
50
+ country_of_birth_or_registration: string | undefined;
51
+ city_of_birth_or_registration: string | undefined;
52
+ identification_number: string | undefined;
53
+ avatar_file: FileWeb | undefined;
54
+ proof_document_file: FileWeb | undefined;
55
+ nostr_relays: string[];
56
+ }
57
+
58
+ export interface BillId {
59
+ id: string;
60
+ }
61
+
62
+ export interface BitcreditBillPayload {
63
+ t: number;
64
+ country_of_issuing: string;
65
+ city_of_issuing: string;
66
+ issue_date: string;
67
+ maturity_date: string;
68
+ payee: string;
69
+ drawee: string;
70
+ sum: string;
71
+ currency: string;
72
+ country_of_payment: string;
73
+ city_of_payment: string;
74
+ language: string;
75
+ file_upload_id: string | undefined;
76
+ }
77
+
78
+ export interface BillNumbersToWordsForSum {
79
+ sum: number;
80
+ sum_as_words: string;
81
+ }
82
+
83
+ export interface EndorseBitcreditBillPayload {
84
+ endorsee: string;
85
+ bill_id: string;
86
+ }
87
+
88
+ export interface MintBitcreditBillPayload {
89
+ mint_node: string;
90
+ bill_id: string;
91
+ sum: string;
92
+ currency: string;
93
+ }
94
+
95
+ export interface RequestToMintBitcreditBillPayload {
96
+ mint_node: string;
97
+ bill_id: string;
98
+ }
99
+
100
+ export interface OfferToSellBitcreditBillPayload {
101
+ buyer: string;
102
+ bill_id: string;
103
+ sum: string;
104
+ currency: string;
105
+ }
106
+
107
+ export interface RequestToPayBitcreditBillPayload {
108
+ bill_id: string;
109
+ currency: string;
110
+ }
111
+
112
+ export interface RequestRecourseForPaymentPayload {
113
+ bill_id: string;
114
+ recoursee: string;
115
+ currency: string;
116
+ sum: string;
117
+ }
118
+
119
+ export interface RequestRecourseForAcceptancePayload {
120
+ bill_id: string;
121
+ recoursee: string;
122
+ }
123
+
124
+ export interface AcceptBitcreditBillPayload {
125
+ bill_id: string;
126
+ }
127
+
128
+ export interface RequestToAcceptBitcreditBillPayload {
129
+ bill_id: string;
130
+ }
131
+
132
+ export interface RejectActionBillPayload {
133
+ bill_id: string;
134
+ }
135
+
136
+ export interface BillCombinedBitcoinKeyWeb {
137
+ private_key: string;
138
+ }
139
+
140
+ export type BillsFilterRoleWeb = "All" | "Payer" | "Payee" | "Contingent";
141
+
142
+ export interface PastEndorseeWeb {
143
+ pay_to_the_order_of: LightIdentityPublicDataWeb;
144
+ signed: LightSignedByWeb;
145
+ signing_timestamp: number;
146
+ signing_address: PostalAddressWeb;
147
+ }
148
+
149
+ export interface LightSignedByWeb {
150
+ data: LightIdentityPublicDataWeb;
151
+ signatory: LightIdentityPublicDataWeb | undefined;
152
+ }
153
+
154
+ export interface EndorsementWeb {
155
+ pay_to_the_order_of: LightIdentityPublicDataWithAddressWeb;
156
+ signed: LightSignedByWeb;
157
+ signing_timestamp: number;
158
+ signing_address: PostalAddressWeb;
159
+ }
160
+
161
+ export interface BillsSearchFilterPayload {
162
+ filter: BillsSearchFilter;
163
+ }
164
+
165
+ export interface DateRange {
166
+ from: string;
167
+ to: string;
168
+ }
169
+
170
+ export interface BillsSearchFilter {
171
+ search_term: string | undefined;
172
+ date_range: DateRange | undefined;
173
+ role: BillsFilterRoleWeb;
174
+ currency: string;
175
+ }
176
+
177
+ export interface BillsResponse {
178
+ bills: BitcreditBillWeb[];
179
+ }
180
+
181
+ export interface LightBillsResponse {
182
+ bills: LightBitcreditBillWeb[];
183
+ }
184
+
185
+ export interface EndorsementsResponse {
186
+ endorsements: EndorsementWeb[];
187
+ }
188
+
189
+ export interface PastEndorseesResponse {
190
+ past_endorsees: PastEndorseeWeb[];
191
+ }
192
+
193
+ export interface BitcreditEbillQuote {
194
+ bill_id: string;
195
+ quote_id: string;
196
+ sum: number;
197
+ mint_node_id: string;
198
+ mint_url: string;
199
+ accepted: boolean;
200
+ token: string;
201
+ }
202
+
203
+ export interface BitcreditBillWeb {
204
+ id: string;
205
+ time_of_drawing: number;
206
+ time_of_maturity: number;
207
+ country_of_issuing: string;
208
+ city_of_issuing: string;
209
+ drawee: IdentityPublicDataWeb;
210
+ drawer: IdentityPublicDataWeb;
211
+ payee: IdentityPublicDataWeb;
212
+ endorsee: IdentityPublicDataWeb | undefined;
213
+ currency: string;
214
+ sum: string;
215
+ maturity_date: string;
216
+ issue_date: string;
217
+ country_of_payment: string;
218
+ city_of_payment: string;
219
+ language: string;
220
+ accepted: boolean;
221
+ endorsed: boolean;
222
+ requested_to_pay: boolean;
223
+ requested_to_accept: boolean;
224
+ paid: boolean;
225
+ waiting_for_payment: boolean;
226
+ buyer: IdentityPublicDataWeb | undefined;
227
+ seller: IdentityPublicDataWeb | undefined;
228
+ in_recourse: boolean;
229
+ recourser: IdentityPublicDataWeb | undefined;
230
+ recoursee: IdentityPublicDataWeb | undefined;
231
+ link_for_buy: string;
232
+ link_to_pay: string;
233
+ link_to_pay_recourse: string;
234
+ address_to_pay: string;
235
+ mempool_link_for_address_to_pay: string;
236
+ files: FileWeb[];
237
+ active_notification: NotificationWeb | undefined;
238
+ bill_participants: string[];
239
+ endorsements_count: number;
240
+ }
241
+
242
+ export interface LightBitcreditBillWeb {
243
+ id: string;
244
+ drawee: LightIdentityPublicDataWeb;
245
+ drawer: LightIdentityPublicDataWeb;
246
+ payee: LightIdentityPublicDataWeb;
247
+ endorsee: LightIdentityPublicDataWeb | undefined;
248
+ active_notification: NotificationWeb | undefined;
249
+ sum: string;
250
+ currency: string;
251
+ issue_date: string;
252
+ time_of_drawing: number;
253
+ time_of_maturity: number;
254
+ }
255
+
256
+ export interface IdentityPublicDataWeb {
257
+ t: ContactTypeWeb;
258
+ node_id: string;
259
+ name: string;
260
+ postal_address: PostalAddressWeb;
261
+ email: string | undefined;
262
+ nostr_relay: string | undefined;
263
+ }
264
+
265
+ export interface LightIdentityPublicDataWithAddressWeb {
266
+ t: ContactTypeWeb;
267
+ name: string;
268
+ node_id: string;
269
+ postal_address: PostalAddressWeb;
270
+ }
271
+
272
+ export interface LightIdentityPublicDataWeb {
273
+ t: ContactTypeWeb;
274
+ name: string;
275
+ node_id: string;
276
+ }
277
+
278
+ export interface CompaniesResponse {
279
+ companies: CompanyWeb[];
280
+ }
281
+
282
+ export interface CompanyWeb {
283
+ id: string;
284
+ name: string;
285
+ country_of_registration: string | undefined;
286
+ city_of_registration: string | undefined;
287
+ postal_address: PostalAddressWeb;
288
+ email: string;
289
+ registration_number: string | undefined;
290
+ registration_date: string | undefined;
291
+ proof_of_registration_file: FileWeb | undefined;
292
+ logo_file: FileWeb | undefined;
293
+ signatories: string[];
294
+ }
295
+
296
+ export interface CreateCompanyPayload {
297
+ name: string;
298
+ country_of_registration: string | undefined;
299
+ city_of_registration: string | undefined;
300
+ postal_address: PostalAddressWeb;
301
+ email: string;
302
+ registration_number: string | undefined;
303
+ registration_date: string | undefined;
304
+ proof_of_registration_file_upload_id: string | undefined;
305
+ logo_file_upload_id: string | undefined;
306
+ }
307
+
308
+ export interface EditCompanyPayload {
309
+ id: string;
310
+ name: string | undefined;
311
+ email: string | undefined;
312
+ postal_address: OptionalPostalAddressWeb;
313
+ country_of_registration: string | undefined;
314
+ city_of_registration: string | undefined;
315
+ registration_number: string | undefined;
316
+ registration_date: string | undefined;
317
+ logo_file_upload_id: string | undefined;
318
+ proof_of_registration_file_upload_id: string | undefined;
319
+ }
320
+
321
+ export interface AddSignatoryPayload {
322
+ id: string;
323
+ signatory_node_id: string;
324
+ }
325
+
326
+ export interface RemoveSignatoryPayload {
327
+ id: string;
328
+ signatory_node_id: string;
329
+ }
330
+
331
+ export interface ListSignatoriesResponse {
332
+ signatories: SignatoryResponse[];
333
+ }
334
+
335
+ export interface SignatoryResponse {
336
+ t: ContactTypeWeb;
337
+ node_id: string;
338
+ name: string;
339
+ postal_address: PostalAddressWeb;
340
+ avatar_file: FileWeb | undefined;
341
+ }
342
+
343
+ export interface JsErrorData {
344
+ error: string;
345
+ message: string;
346
+ code: number;
347
+ }
348
+
349
+ export interface NotificationWeb {
350
+ id: string;
351
+ node_id: string | undefined;
352
+ notification_type: NotificationTypeWeb;
353
+ reference_id: string | undefined;
354
+ description: string;
355
+ datetime: string;
356
+ active: boolean;
357
+ payload: any | undefined;
358
+ }
359
+
360
+ export type NotificationTypeWeb = "General" | "Bill";
361
+
362
+ export interface StatusResponse {
363
+ bitcoin_network: string;
364
+ app_version: string;
365
+ }
366
+
367
+ export interface GeneralSearchResponse {
368
+ bills: LightBitcreditBillWeb[];
369
+ contacts: ContactWeb[];
370
+ companies: CompanyWeb[];
371
+ }
372
+
373
+ export interface GeneralSearchFilterPayload {
374
+ filter: GeneralSearchFilter;
375
+ }
376
+
377
+ export type GeneralSearchFilterItemTypeWeb = "Company" | "Bill" | "Contact";
378
+
379
+ export interface GeneralSearchFilter {
380
+ search_term: string;
381
+ currency: string;
382
+ item_types: GeneralSearchFilterItemTypeWeb[];
383
+ }
384
+
385
+ export interface OverviewResponse {
386
+ currency: string;
387
+ balances: OverviewBalanceResponse;
388
+ }
389
+
390
+ export interface OverviewBalanceResponse {
391
+ payee: BalanceResponse;
392
+ payer: BalanceResponse;
393
+ contingent: BalanceResponse;
394
+ }
395
+
396
+ export interface BalanceResponse {
397
+ sum: string;
398
+ }
399
+
400
+ export interface CurrenciesResponse {
401
+ currencies: CurrencyResponse[];
402
+ }
403
+
404
+ export interface CurrencyResponse {
405
+ code: string;
406
+ }
407
+
408
+ export interface OptionalPostalAddressWeb {
409
+ country: string | undefined;
410
+ city: string | undefined;
411
+ zip: string | undefined;
412
+ address: string | undefined;
413
+ }
414
+
415
+ export interface PostalAddressWeb {
416
+ country: string;
417
+ city: string;
418
+ zip: string | undefined;
419
+ address: string;
420
+ }
421
+
422
+ export interface FileWeb {
423
+ name: string;
424
+ hash: string;
425
+ }
426
+
427
+ export interface BinaryFileResponse {
428
+ data: number[];
429
+ name: string;
430
+ content_type: string;
431
+ }
432
+
433
+ export interface UploadFile {
434
+ data: number[];
435
+ extension: string | undefined;
436
+ name: string;
437
+ }
438
+
439
+ export interface UploadFilesResponse {
440
+ file_upload_id: string;
441
+ }
442
+
443
+ export interface Config {
444
+ bitcoin_network: string;
445
+ nostr_relay: string;
446
+ surreal_db_connection: string;
447
+ data_dir: string;
448
+ job_runner_initial_delay_seconds: number;
449
+ job_runner_check_interval_seconds: number;
450
+ }
451
+
452
+ export interface SwitchIdentity {
453
+ t: IdentityTypeWeb | undefined;
454
+ node_id: string;
455
+ }
456
+
457
+ export interface NewIdentityPayload {
458
+ name: string;
459
+ email: string;
460
+ postal_address: OptionalPostalAddressWeb;
461
+ date_of_birth: string | undefined;
462
+ country_of_birth: string | undefined;
463
+ city_of_birth: string | undefined;
464
+ identification_number: string | undefined;
465
+ profile_picture_file_upload_id: string | undefined;
466
+ identity_document_file_upload_id: string | undefined;
467
+ }
468
+
469
+ export interface ChangeIdentityPayload {
470
+ name: string | undefined;
471
+ email: string | undefined;
472
+ postal_address: OptionalPostalAddressWeb;
473
+ date_of_birth: string | undefined;
474
+ country_of_birth: string | undefined;
475
+ city_of_birth: string | undefined;
476
+ identification_number: string | undefined;
477
+ profile_picture_file_upload_id: string | undefined;
478
+ identity_document_file_upload_id: string | undefined;
479
+ }
480
+
481
+ export interface IdentityWeb {
482
+ node_id: string;
483
+ name: string;
484
+ email: string;
485
+ bitcoin_public_key: string;
486
+ npub: string;
487
+ postal_address: OptionalPostalAddressWeb;
488
+ date_of_birth: string | undefined;
489
+ country_of_birth: string | undefined;
490
+ city_of_birth: string | undefined;
491
+ identification_number: string | undefined;
492
+ profile_picture_file: FileWeb | undefined;
493
+ identity_document_file: FileWeb | undefined;
494
+ nostr_relay: string | undefined;
495
+ }
496
+
497
+ export interface SeedPhrase {
498
+ seed_phrase: string;
499
+ }
500
+
501
+ export class Api {
502
+ private constructor();
503
+ free(): void;
504
+ static general(): General;
505
+ static contact(): Contact;
506
+ static identity(): Identity;
507
+ static notification(): Notification;
508
+ static company(): Company;
509
+ static bill(): Bill;
510
+ static quote(): Quote;
511
+ }
512
+ export class Bill {
513
+ private constructor();
514
+ free(): void;
515
+ static new(): Bill;
516
+ endorsements(id: string): Promise<EndorsementsResponse>;
517
+ past_endorsees(id: string): Promise<PastEndorseesResponse>;
518
+ bitcoin_key(id: string): Promise<BillCombinedBitcoinKeyWeb>;
519
+ attachment(bill_id: string, file_name: string): Promise<BinaryFileResponse>;
520
+ upload(payload: UploadFile): Promise<UploadFilesResponse>;
521
+ search(payload: BillsSearchFilterPayload): Promise<LightBillsResponse>;
522
+ list_light(): Promise<LightBillsResponse>;
523
+ list(): Promise<BillsResponse>;
524
+ list_all(): Promise<BillsResponse>;
525
+ numbers_to_words_for_sum(id: string): Promise<BillNumbersToWordsForSum>;
526
+ detail(id: string): Promise<BitcreditBillWeb>;
527
+ check_payment(): Promise<void>;
528
+ issue(payload: BitcreditBillPayload): Promise<BillId>;
529
+ offer_to_sell(payload: OfferToSellBitcreditBillPayload): Promise<void>;
530
+ endorse_bill(payload: EndorseBitcreditBillPayload): Promise<void>;
531
+ request_to_pay(payload: RequestToPayBitcreditBillPayload): Promise<void>;
532
+ request_to_accept(payload: RequestToAcceptBitcreditBillPayload): Promise<void>;
533
+ accept(payload: AcceptBitcreditBillPayload): Promise<void>;
534
+ request_to_mint(payload: RequestToMintBitcreditBillPayload): Promise<void>;
535
+ mint_bill(payload: MintBitcreditBillPayload): Promise<void>;
536
+ reject_to_accept(payload: RejectActionBillPayload): Promise<void>;
537
+ reject_to_pay(payload: RejectActionBillPayload): Promise<void>;
538
+ reject_to_buy(payload: RejectActionBillPayload): Promise<void>;
539
+ reject_to_pay_recourse(payload: RejectActionBillPayload): Promise<void>;
540
+ request_to_recourse_bill_payment(payload: RequestRecourseForPaymentPayload): Promise<void>;
541
+ request_to_recourse_bill_acceptance(payload: RequestRecourseForPaymentPayload): Promise<void>;
542
+ }
543
+ export class Company {
544
+ private constructor();
545
+ free(): void;
546
+ static new(): Company;
547
+ file(id: string, file_name: string): Promise<BinaryFileResponse>;
548
+ upload(payload: UploadFile): Promise<UploadFilesResponse>;
549
+ list(): Promise<CompaniesResponse>;
550
+ list_signatories(id: string): Promise<ListSignatoriesResponse>;
551
+ detail(id: string): Promise<CompanyWeb>;
552
+ create(payload: CreateCompanyPayload): Promise<CompanyWeb>;
553
+ edit(payload: EditCompanyPayload): Promise<void>;
554
+ add_signatory(payload: AddSignatoryPayload): Promise<void>;
555
+ remove_signatory(payload: RemoveSignatoryPayload): Promise<void>;
556
+ }
557
+ export class Contact {
558
+ private constructor();
559
+ free(): void;
560
+ static new(): Contact;
561
+ file(id: string, file_name: string): Promise<BinaryFileResponse>;
562
+ upload(payload: UploadFile): Promise<UploadFilesResponse>;
563
+ list(): Promise<ContactsResponse>;
564
+ detail(node_id: string): Promise<ContactWeb>;
565
+ remove(node_id: string): Promise<void>;
566
+ create(payload: NewContactPayload): Promise<ContactWeb>;
567
+ edit(payload: EditContactPayload): Promise<void>;
568
+ }
569
+ export class General {
570
+ private constructor();
571
+ free(): void;
572
+ static new(): General;
573
+ status(): Promise<StatusResponse>;
574
+ currencies(): Promise<CurrenciesResponse>;
575
+ temp_file(file_upload_id: string): Promise<BinaryFileResponse>;
576
+ overview(currency: string): Promise<OverviewResponse>;
577
+ search(payload: GeneralSearchFilterPayload): Promise<GeneralSearchResponse>;
578
+ }
579
+ export class Identity {
580
+ private constructor();
581
+ free(): void;
582
+ static new(): Identity;
583
+ file(file_name: string): Promise<BinaryFileResponse>;
584
+ upload(payload: UploadFile): Promise<UploadFilesResponse>;
585
+ detail(): Promise<any>;
586
+ create(payload: NewIdentityPayload): Promise<void>;
587
+ change(payload: ChangeIdentityPayload): Promise<void>;
588
+ active(): Promise<SwitchIdentity>;
589
+ switch(switch_identity_payload: SwitchIdentity): Promise<void>;
590
+ seed_backup(): Promise<SeedPhrase>;
591
+ seed_recover(payload: SeedPhrase): Promise<void>;
592
+ }
593
+ export class Notification {
594
+ private constructor();
595
+ free(): void;
596
+ static new(): Notification;
597
+ subscribe(callback: Function): Promise<void>;
598
+ list(active?: boolean | null, reference_id?: string | null, notification_type?: string | null, limit?: bigint | null, offset?: bigint | null): Promise<NotificationWeb[]>;
599
+ mark_as_done(notification_id: string): Promise<void>;
600
+ trigger_test_msg(payload: any): Promise<void>;
601
+ trigger_test_notification(node_id: string): Promise<void>;
602
+ }
603
+ export class Quote {
604
+ private constructor();
605
+ free(): void;
606
+ static new(): Quote;
607
+ get(id: string): Promise<BitcreditEbillQuote>;
608
+ accept(id: string): Promise<BitcreditEbillQuote>;
609
+ }
610
+
611
+ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
612
+
613
+ export interface InitOutput {
614
+ readonly memory: WebAssembly.Memory;
615
+ readonly __wbg_contact_free: (a: number, b: number) => void;
616
+ readonly contact_new: () => number;
617
+ readonly contact_file: (a: number, b: number, c: number, d: number, e: number) => any;
618
+ readonly contact_upload: (a: number, b: any) => any;
619
+ readonly contact_list: (a: number) => any;
620
+ readonly contact_detail: (a: number, b: number, c: number) => any;
621
+ readonly contact_remove: (a: number, b: number, c: number) => any;
622
+ readonly contact_create: (a: number, b: any) => any;
623
+ readonly contact_edit: (a: number, b: any) => any;
624
+ readonly __wbg_quote_free: (a: number, b: number) => void;
625
+ readonly quote_get: (a: number, b: number, c: number) => any;
626
+ readonly quote_accept: (a: number, b: number, c: number) => any;
627
+ readonly quote_new: () => number;
628
+ readonly __wbg_general_free: (a: number, b: number) => void;
629
+ readonly general_new: () => number;
630
+ readonly general_status: (a: number) => any;
631
+ readonly general_currencies: (a: number) => any;
632
+ readonly general_temp_file: (a: number, b: number, c: number) => any;
633
+ readonly general_overview: (a: number, b: number, c: number) => any;
634
+ readonly general_search: (a: number, b: any) => any;
635
+ readonly __wbg_identity_free: (a: number, b: number) => void;
636
+ readonly identity_new: () => number;
637
+ readonly identity_file: (a: number, b: number, c: number) => any;
638
+ readonly identity_upload: (a: number, b: any) => any;
639
+ readonly identity_detail: (a: number) => any;
640
+ readonly identity_create: (a: number, b: any) => any;
641
+ readonly identity_change: (a: number, b: any) => any;
642
+ readonly identity_active: (a: number) => any;
643
+ readonly identity_switch: (a: number, b: any) => any;
644
+ readonly identity_seed_backup: (a: number) => any;
645
+ readonly identity_seed_recover: (a: number, b: any) => any;
646
+ readonly initialize_api: (a: any) => any;
647
+ readonly __wbg_api_free: (a: number, b: number) => void;
648
+ readonly api_bill: () => number;
649
+ readonly api_general: () => number;
650
+ readonly api_identity: () => number;
651
+ readonly api_notification: () => number;
652
+ readonly api_contact: () => number;
653
+ readonly api_company: () => number;
654
+ readonly api_quote: () => number;
655
+ readonly __wbg_company_free: (a: number, b: number) => void;
656
+ readonly company_new: () => number;
657
+ readonly company_file: (a: number, b: number, c: number, d: number, e: number) => any;
658
+ readonly company_upload: (a: number, b: any) => any;
659
+ readonly company_list: (a: number) => any;
660
+ readonly company_list_signatories: (a: number, b: number, c: number) => any;
661
+ readonly company_detail: (a: number, b: number, c: number) => any;
662
+ readonly company_create: (a: number, b: any) => any;
663
+ readonly company_edit: (a: number, b: any) => any;
664
+ readonly company_add_signatory: (a: number, b: any) => any;
665
+ readonly company_remove_signatory: (a: number, b: any) => any;
666
+ readonly notification_subscribe: (a: number, b: any) => any;
667
+ readonly notification_list: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: bigint, i: number, j: bigint) => any;
668
+ readonly notification_mark_as_done: (a: number, b: number, c: number) => any;
669
+ readonly notification_trigger_test_msg: (a: number, b: any) => any;
670
+ readonly notification_trigger_test_notification: (a: number, b: number, c: number) => any;
671
+ readonly notification_new: () => number;
672
+ readonly __wbg_notification_free: (a: number, b: number) => void;
673
+ readonly __wbg_bill_free: (a: number, b: number) => void;
674
+ readonly bill_new: () => number;
675
+ readonly bill_endorsements: (a: number, b: number, c: number) => any;
676
+ readonly bill_past_endorsees: (a: number, b: number, c: number) => any;
677
+ readonly bill_bitcoin_key: (a: number, b: number, c: number) => any;
678
+ readonly bill_attachment: (a: number, b: number, c: number, d: number, e: number) => any;
679
+ readonly bill_upload: (a: number, b: any) => any;
680
+ readonly bill_search: (a: number, b: any) => any;
681
+ readonly bill_list_light: (a: number) => any;
682
+ readonly bill_list: (a: number) => any;
683
+ readonly bill_list_all: (a: number) => any;
684
+ readonly bill_numbers_to_words_for_sum: (a: number, b: number, c: number) => any;
685
+ readonly bill_detail: (a: number, b: number, c: number) => any;
686
+ readonly bill_check_payment: (a: number) => any;
687
+ readonly bill_issue: (a: number, b: any) => any;
688
+ readonly bill_offer_to_sell: (a: number, b: any) => any;
689
+ readonly bill_endorse_bill: (a: number, b: any) => any;
690
+ readonly bill_request_to_pay: (a: number, b: any) => any;
691
+ readonly bill_request_to_accept: (a: number, b: any) => any;
692
+ readonly bill_accept: (a: number, b: any) => any;
693
+ readonly bill_request_to_mint: (a: number, b: any) => any;
694
+ readonly bill_mint_bill: (a: number, b: any) => any;
695
+ readonly bill_reject_to_accept: (a: number, b: any) => any;
696
+ readonly bill_reject_to_pay: (a: number, b: any) => any;
697
+ readonly bill_reject_to_buy: (a: number, b: any) => any;
698
+ readonly bill_reject_to_pay_recourse: (a: number, b: any) => any;
699
+ readonly bill_request_to_recourse_bill_payment: (a: number, b: any) => any;
700
+ readonly bill_request_to_recourse_bill_acceptance: (a: number, b: any) => any;
701
+ readonly ring_core_0_17_14__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
702
+ readonly rustsecp256k1_v0_10_0_context_create: (a: number) => number;
703
+ readonly rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
704
+ readonly rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
705
+ readonly rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
706
+ readonly __wbindgen_malloc: (a: number, b: number) => number;
707
+ readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
708
+ readonly __wbindgen_exn_store: (a: number) => void;
709
+ readonly __externref_table_alloc: () => number;
710
+ readonly __wbindgen_export_4: WebAssembly.Table;
711
+ readonly __wbindgen_free: (a: number, b: number, c: number) => void;
712
+ readonly __wbindgen_export_6: WebAssembly.Table;
713
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbe6873c45b27b351: (a: number, b: number) => void;
714
+ readonly closure3939_externref_shim_multivalue_shim: (a: number, b: number, c: any) => [number, number];
715
+ readonly __externref_table_dealloc: (a: number) => void;
716
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h05c7f237f3bb177e: (a: number, b: number) => void;
717
+ readonly closure5466_externref_shim: (a: number, b: number, c: any) => void;
718
+ readonly closure5720_externref_shim: (a: number, b: number, c: any) => void;
719
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf2e94f04a8ad2147: (a: number, b: number) => void;
720
+ readonly closure5931_externref_shim: (a: number, b: number, c: any) => void;
721
+ readonly closure6063_externref_shim: (a: number, b: number, c: any, d: any) => void;
722
+ readonly __wbindgen_start: () => void;
723
+ }
724
+
725
+ export type SyncInitInput = BufferSource | WebAssembly.Module;
726
+ /**
727
+ * Instantiates the given `module`, which can either be bytes or
728
+ * a precompiled `WebAssembly.Module`.
729
+ *
730
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
731
+ *
732
+ * @returns {InitOutput}
733
+ */
734
+ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
735
+
736
+ /**
737
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
738
+ * for everything else, calls `WebAssembly.instantiate` directly.
739
+ *
740
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
741
+ *
742
+ * @returns {Promise<InitOutput>}
743
+ */
744
+ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;