Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / wasm / andromeda / index.d.ts
blobbecbe86299a69ee5a004e8f21f8550078a9e4d91
1 /* tslint:disable */
2 /* eslint-disable */
3 /**
4  * @param {string} word_start
5  * @returns {(string)[]}
6  */
7 export function getWordsAutocomplete(word_start: string): (string)[];
8 export function setPanicHook(): void;
9 /**
10  * @param {WasmPsbt} psbt
11  * @param {WasmAccount} account
12  * @returns {Promise<WasmTransactionDetailsData>}
13  */
14 export function createTransactionFromPsbt(psbt: WasmPsbt, account: WasmAccount): Promise<WasmTransactionDetailsData>;
15 /**
16  * @returns {number}
17  */
18 export function getDefaultStopGap(): number;
19 export enum WasmChangeSpendPolicy {
20   ChangeAllowed = 0,
21   OnlyChange = 1,
22   ChangeForbidden = 2,
24 export enum WasmCoinSelection {
25   BranchAndBound = 0,
26   LargestFirst = 1,
27   OldestFirst = 2,
28   Manual = 3,
30 export enum WasmKeychainKind {
31   /**
32    * External keychain, used for deriving recipient addresses.
33    */
34   External = 0,
35   /**
36    * Internal keychain, used for deriving change addresses.
37    */
38   Internal = 1,
40 export enum WasmLanguage {
41   English = 0,
42   SimplifiedChinese = 1,
43   TraditionalChinese = 2,
44   Czech = 3,
45   French = 4,
46   Italian = 5,
47   Japanese = 6,
48   Korean = 7,
49   Spanish = 8,
51 export enum WasmNetwork {
52   /**
53    * Mainnet Bitcoin.
54    */
55   Bitcoin = 0,
56   /**
57    * Bitcoin's testnet network.
58    */
59   Testnet = 1,
60   /**
61    * Bitcoin's signet network.
62    */
63   Signet = 2,
64   /**
65    * Bitcoin's regtest network.
66    */
67   Regtest = 3,
69 export enum WasmPaymentLinkKind {
70   BitcoinAddress = 0,
71   BitcoinURI = 1,
72   LightningURI = 2,
73   UnifiedURI = 3,
75 export enum WasmScriptType {
76   Legacy = 1,
77   NestedSegwit = 2,
78   NativeSegwit = 3,
79   Taproot = 4,
81 export enum WasmSortOrder {
82   Asc = 0,
83   Desc = 1,
85 export enum WasmWalletTransactionFlag {
86   Suspicious = 0,
87   Private = 1,
89 export enum WasmWordCount {
90   Words12 = 0,
91   Words15 = 1,
92   Words18 = 2,
93   Words21 = 3,
94   Words24 = 4,
96 export type WasmInviteNotificationType = "Newcomer" | "EmailIntegration" | "Unsupported";
98 export interface WasmPagination {
99     skip: number;
100     take: number;
103 export interface WasmApiWalletBitcoinAddressLookup {
104     BitcoinAddress: string | null;
105     BitcoinAddressSignature: string | null;
108 export interface WasmApiWalletBitcoinAddress {
109     ID: string;
110     WalletID: string;
111     WalletAccountID: string;
112     Fetched: number;
113     Used: number;
114     BitcoinAddress: string | null;
115     BitcoinAddressSignature: string | null;
116     BitcoinAddressIndex: number | null;
119 export interface WasmApiBitcoinAddressCreationPayload {
120     BitcoinAddress: string;
121     BitcoinAddressSignature: string;
122     BitcoinAddressIndex: number;
125 export interface WasmApiWalletBitcoinAddressLookup {
126     BitcoinAddress: string | null;
127     BitcoinAddressSignature: string | null;
130 export interface WasmApiExchangeRate {
131     ID: string;
132     BitcoinUnit: WasmBitcoinUnit;
133     FiatCurrency: WasmFiatCurrencySymbol;
134     Sign: string | null;
135     ExchangeRateTime: string;
136     ExchangeRate: number;
137     Cents: number;
140 export interface WasmApiFiatCurrency {
141     ID: string;
142     Name: string;
143     Symbol: WasmFiatCurrencySymbol;
144     Sign: string;
145     Cents: number;
148 export type WasmTimeframe = "OneDay" | "OneWeek" | "OneMonth" | "Unsupported";
150 export interface WasmDataPoint {
151     ExchangeRate: number;
152     Cents: number;
153     Timestamp: number;
156 export interface WasmPriceGraph {
157     FiatCurrency: WasmFiatCurrencySymbol;
158     BitcoinUnit: WasmBitcoinUnit;
159     GraphData: WasmDataPoint[];
162 export type WasmUserReceiveNotificationEmailTypes = "NotificationToInviter" | "EmailIntegration" | "TransactionalBvE" | "Unsupported";
164 export type WasmFiatCurrencySymbol = "ALL" | "DZD" | "ARS" | "AMD" | "AUD" | "AZN" | "BHD" | "BDT" | "BYN" | "BMD" | "BOB" | "BAM" | "BRL" | "BGN" | "KHR" | "CAD" | "CLP" | "CNY" | "COP" | "CRC" | "HRK" | "CUP" | "CZK" | "DKK" | "DOP" | "EGP" | "EUR" | "GEL" | "GHS" | "GTQ" | "HNL" | "HKD" | "HUF" | "ISK" | "INR" | "IDR" | "IRR" | "IQD" | "ILS" | "JMD" | "JPY" | "JOD" | "KZT" | "KES" | "KWD" | "KGS" | "LBP" | "MKD" | "MYR" | "MUR" | "MXN" | "MDL" | "MNT" | "MAD" | "MMK" | "NAD" | "NPR" | "TWD" | "NZD" | "NIO" | "NGN" | "NOK" | "OMR" | "PKR" | "PAB" | "PEN" | "PHP" | "PLN" | "GBP" | "QAR" | "RON" | "RUB" | "SAR" | "RSD" | "SGD" | "ZAR" | "KRW" | "SSP" | "VES" | "LKR" | "SEK" | "CHF" | "THB" | "TTD" | "TND" | "TRY" | "UGX" | "UAH" | "AED" | "USD" | "UYU" | "UZS" | "VND";
166 export interface WasmUserSettings {
167     AcceptTermsAndConditions: number | null;
168     BitcoinUnit: WasmBitcoinUnit;
169     FiatCurrency: WasmFiatCurrencySymbol;
170     HideEmptyUsedAddresses: number;
171     TwoFactorAmountThreshold: number | null;
172     ReceiveInviterNotification: number | null;
173     ReceiveEmailIntegrationNotification: number | null;
174     ReceiveTransactionNotification: number | null;
175     WalletCreated: number | null;
178 export interface WasmApiWallet {
179     ID: string;
180     Name: string;
181     IsImported: number;
182     Priority: number;
183     Type: number;
184     HasPassphrase: number;
185     Status: number;
186     Mnemonic: string | null;
187     Fingerprint: string | null;
188     PublicKey: string | null;
189     MigrationRequired: number | null;
190     Legacy: number | null;
193 export interface WasmApiWalletKey {
194     WalletID: string;
195     UserKeyID: string;
196     WalletKey: string;
197     WalletKeySignature: string;
200 export interface WasmApiWalletSettings {
201     WalletID: string;
202     HideAccounts: number;
203     InvoiceDefaultDescription: string | null;
204     InvoiceExpirationTime: number;
205     MaxChannelOpeningFee: number;
206     ShowWalletRecovery: boolean | null;
209 export interface WasmApiEmailAddress {
210     ID: string;
211     Email: string;
214 export interface WasmApiWalletAccount {
215     WalletID: string;
216     FiatCurrency: WasmFiatCurrencySymbol;
217     ID: string;
218     DerivationPath: string;
219     Label: string;
220     LastUsedIndex: number;
221     PoolSize: number;
222     Priority: number;
223     ScriptType: number;
224     Addresses: WasmApiEmailAddress[];
227 export type WasmTransactionType = "NotSend" | "ProtonToProtonSend" | "ProtonToProtonReceive" | "ExternalSend" | "ExternalReceive" | "Unsupported";
229 export interface WasmApiWalletTransaction {
230     ID: string;
231     Type: WasmTransactionType | null;
232     WalletID: string;
233     WalletAccountID: string | null;
234     Label: string | null;
235     TransactionID: string;
236     TransactionTime: string;
237     IsSuspicious: number;
238     IsPrivate: number;
239     ExchangeRate: WasmApiExchangeRate | null;
240     HashedTransactionID: string | null;
241     Subject: string | null;
242     Body: string | null;
243     ToList: string | null;
244     Sender: string | null;
247 export interface WasmCreateWalletTransactionPayload {
248     txid: string;
249     hashed_txid: string;
250     label: string | null;
251     exchange_rate_id: string | null;
252     transaction_time: string | null;
255 export interface WasmMigratedWallet {
256     Name: string;
257     UserKeyID: string;
258     WalletKey: string;
259     WalletKeySignature: string;
260     Mnemonic: string;
261     Fingerprint: string;
264 export interface WasmMigratedWalletAccount {
265     ID: string;
266     Label: string;
269 export interface WasmMigratedWalletTransaction {
270     ID: string;
271     WalletAccountID: string;
272     HashedTransactionID: string | null;
273     Label: string | null;
276 export type WasmBitcoinUnit = "BTC" | "MBTC" | "SATS";
278 export interface WasmBalance {
279     immature: number;
280     trusted_pending: number;
281     untrusted_pending: number;
282     confirmed: number;
285 export interface WasmAddressInfo {
286     index: number;
287     address: string;
288     keychain: WasmKeychainKind;
291 export type WasmGatewayProvider = "Banxa" | "Ramp" | "MoonPay" | "Azteco" | "Unsupported";
293 export interface WasmApiCountry {
294     Code: string;
295     FiatCurrency: string;
296     Name: string;
299 export interface WasmCountries {
300     data: WasmApiCountry[];
303 export interface WasmApiSimpleFiatCurrency {
304     Symbol: string;
305     Name: string;
306     MinimumAmount: string | null;
309 export interface WasmFiatCurrencies {
310     data: WasmApiSimpleFiatCurrency[];
313 export type WasmPaymentMethod = "ApplePay" | "BankTransfer" | "Card" | "GooglePay" | "InstantPayment" | "Paypal" | "Unsupported";
315 export interface WasmPaymentMethods {
316     data: WasmPaymentMethod[];
319 export interface WasmQuote {
320     BitcoinAmount: string;
321     FiatAmount: string;
322     FiatCurrencySymbol: string;
323     NetworkFee: string;
324     PaymentGatewayFee: string;
325     PaymentMethod: WasmPaymentMethod;
326     PurchaseAmount: string | null;
327     PaymentProcessingFee: string | null;
328     OrderID: string | null;
331 export interface WasmQuotes {
332     data: WasmQuote[];
335 export interface WasmAddressDetails {
336     index: number;
337     address: string;
338     transactions: WasmTransactionDetails[];
339     balance: WasmBalance;
342 export interface WasmTxOut {
343     value: number;
344     script_pubkey: WasmScript;
345     is_mine: boolean;
346     address: string | null;
349 export interface WasmTransactionDetails {
350     txid: string;
351     received: number;
352     sent: number;
353     fee: number | null;
354     size: number;
355     time: WasmTransactionTime;
356     inputs: WasmDetailledTxIn[];
357     outputs: WasmTxOut[];
358     account_derivation_path: string;
361 export interface WasmTransactionTime {
362     confirmed: boolean;
363     confirmation_time: number | null;
364     last_seen: number | null;
367 export type WasmExchangeRateOrTransactionTimeEnum = "ExchangeRate" | "TransactionTime";
369 export interface WasmExchangeRateOrTransactionTime {
370     key: WasmExchangeRateOrTransactionTimeEnum;
371     value: string;
374 export interface WasmTransactionData {
375     label: string | null;
376     exchange_rate_or_transaction_time: WasmExchangeRateOrTransactionTime;
379 export interface WasmBroadcastMessage {
380     data_packet: string;
381     key_packets: Record<string, string>;
384 export interface WasmEmailIntegrationData {
385     address_id: string | null;
386     body: string | null;
387     message: WasmBroadcastMessage | null;
388     recipients: Record<string, string> | null;
389     is_anonymous: number | null;
392 export class WasmAccount {
393   free(): void;
394   /**
395    * @param {WasmWallet} wallet
396    * @param {WasmScriptType} script_type
397    * @param {WasmDerivationPath} derivation_path
398    */
399   constructor(wallet: WasmWallet, script_type: WasmScriptType, derivation_path: WasmDerivationPath);
400   /**
401    * @param {number} from
402    * @param {number | undefined} [to]
403    * @returns {Promise<void>}
404    */
405   markReceiveAddressesUsedTo(from: number, to?: number): Promise<void>;
406   /**
407    * @returns {Promise<WasmAddressInfo>}
408    */
409   getNextReceiveAddress(): Promise<WasmAddressInfo>;
410   /**
411    * @param {number} index
412    * @returns {Promise<WasmAddressInfo>}
413    */
414   peekReceiveAddress(index: number): Promise<WasmAddressInfo>;
415   /**
416    * @param {WasmAddress} address
417    * @returns {Promise<boolean>}
418    */
419   owns(address: WasmAddress): Promise<boolean>;
420   /**
421    * @returns {Promise<WasmBalanceWrapper>}
422    */
423   getBalance(): Promise<WasmBalanceWrapper>;
424   /**
425    * @returns {string}
426    */
427   getDerivationPath(): string;
428   /**
429    * @returns {Promise<WasmUtxoArray>}
430    */
431   getUtxos(): Promise<WasmUtxoArray>;
432   /**
433    * @param {WasmNetwork} network
434    * @param {string} address_str
435    * @param {WasmBlockchainClient} client
436    * @param {boolean | undefined} [force_sync]
437    * @returns {Promise<WasmAddressDetailsData | undefined>}
438    */
439   getAddress(network: WasmNetwork, address_str: string, client: WasmBlockchainClient, force_sync?: boolean): Promise<WasmAddressDetailsData | undefined>;
440   /**
441    * @param {WasmPagination} pagination
442    * @param {WasmBlockchainClient} client
443    * @param {WasmKeychainKind} keychain
444    * @param {boolean | undefined} [force_sync]
445    * @returns {Promise<WasmAddressDetailsArray>}
446    */
447   getAddresses(pagination: WasmPagination, client: WasmBlockchainClient, keychain: WasmKeychainKind, force_sync?: boolean): Promise<WasmAddressDetailsArray>;
448   /**
449    * @param {WasmPagination} pagination
450    * @param {WasmSortOrder | undefined} [sort]
451    * @returns {Promise<WasmTransactionDetailsArray>}
452    */
453   getTransactions(pagination: WasmPagination, sort?: WasmSortOrder): Promise<WasmTransactionDetailsArray>;
454   /**
455    * @param {string} txid
456    * @returns {Promise<WasmTransactionDetailsData>}
457    */
458   getTransaction(txid: string): Promise<WasmTransactionDetailsData>;
459   /**
460    * @returns {Promise<boolean>}
461    */
462   hasSyncData(): Promise<boolean>;
463   /**
464    * @param {WasmPsbt} psbt
465    * @returns {Promise<void>}
466    */
467   insertUnconfirmedTransaction(psbt: WasmPsbt): Promise<void>;
468   /**
469    * @param {WasmNetwork} network
470    * @param {string} txid
471    * @param {bigint} fees
472    * @returns {Promise<WasmPsbt>}
473    */
474   bumpTransactionsFees(network: WasmNetwork, txid: string, fees: bigint): Promise<WasmPsbt>;
475   /**
476    * @returns {Promise<void>}
477    */
478   clearStore(): Promise<void>;
480 export class WasmAddress {
481   free(): void;
482   /**
483    * @param {string} str
484    * @param {WasmNetwork} network
485    */
486   constructor(str: string, network: WasmNetwork);
487   /**
488    * @param {WasmScript} value
489    * @param {WasmNetwork} network
490    * @returns {WasmAddress}
491    */
492   static fromScript(value: WasmScript, network: WasmNetwork): WasmAddress;
493   /**
494    * @returns {string}
495    */
496   toString(): string;
497   /**
498    * @returns {WasmScript}
499    */
500   intoScript(): WasmScript;
502 export class WasmAddressDetailsArray {
503   free(): void;
504   0: (WasmAddressDetailsData)[];
506 export class WasmAddressDetailsData {
507   free(): void;
508   Data: WasmAddressDetails;
510 export class WasmAddressInfo {
511   free(): void;
513  * Address
514  */
515   address: string;
517  * Child index of this address
518  */
519   index: number;
521  * Type of keychain
522  */
523   keychain: WasmKeychainKind;
525 export class WasmApiBitcoinAddressCreationPayloadData {
526   free(): void;
527   Data: WasmApiBitcoinAddressCreationPayload;
529 export class WasmApiBitcoinAddressesCreationPayload {
530   free(): void;
531   constructor();
532   /**
533    * @param {WasmApiBitcoinAddressCreationPayload} create_payload
534    */
535   push(create_payload: WasmApiBitcoinAddressCreationPayload): void;
536   0: (WasmApiBitcoinAddressCreationPayloadData)[];
538 export class WasmApiClients {
539   free(): void;
540   bitcoin_address: WasmBitcoinAddressClient;
541   email_integration: WasmEmailIntegrationClient;
542   exchange_rate: WasmExchangeRateClient;
543   invite: WasmInviteClient;
544   network: WasmNetworkClient;
545   payment_gateway: WasmPaymentGatewayClient;
546   price_graph: WasmPriceGraphClient;
547   settings: WasmSettingsClient;
548   wallet: WasmWalletClient;
550 export class WasmApiExchangeRateData {
551   free(): void;
552   Data: WasmApiExchangeRate;
554 export class WasmApiFiatCurrencies {
555   free(): void;
556   0: (WasmApiFiatCurrencyData)[];
558 export class WasmApiFiatCurrencyData {
559   free(): void;
560   Data: WasmApiFiatCurrency;
562 export class WasmApiWalletAccountAddresses {
563   free(): void;
564   0: (WasmWalletAccountAddressData)[];
566 export class WasmApiWalletAccounts {
567   free(): void;
568   0: (WasmWalletAccountData)[];
570 export class WasmApiWalletBitcoinAddressData {
571   free(): void;
572   Data: WasmApiWalletBitcoinAddress;
574 export class WasmApiWalletBitcoinAddressLookupData {
575   free(): void;
576   Data: WasmApiWalletBitcoinAddressLookup;
578 export class WasmApiWalletBitcoinAddresses {
579   free(): void;
580   0: (WasmApiWalletBitcoinAddressData)[];
582 export class WasmApiWalletData {
583   free(): void;
584   /**
585    * @param {WasmApiWallet} wallet
586    * @param {WasmApiWalletKey} key
587    * @param {WasmApiWalletSettings} settings
588    * @returns {WasmApiWalletData}
589    */
590   static from_parts(wallet: WasmApiWallet, key: WasmApiWalletKey, settings: WasmApiWalletSettings): WasmApiWalletData;
591   Wallet: WasmApiWallet;
592   WalletKey: WasmApiWalletKey;
593   WalletSettings: WasmApiWalletSettings;
595 export class WasmApiWalletTransactionData {
596   free(): void;
597   Data: WasmApiWalletTransaction;
599 export class WasmApiWalletTransactions {
600   free(): void;
601   0: (WasmApiWalletTransactionData)[];
603 export class WasmApiWalletsData {
604   free(): void;
605   0: (WasmApiWalletData)[];
607 export class WasmAuthData {
608   free(): void;
609   access: string;
610   refresh: string;
611   scopes: (string)[];
612   uid: string;
614 export class WasmBalanceWrapper {
615   free(): void;
616   data: WasmBalance;
618 export class WasmBitcoinAddressClient {
619   free(): void;
620   /**
621    * @param {string} wallet_id
622    * @param {string} wallet_account_id
623    * @param {number | undefined} [only_without_bitcoin_addresses]
624    * @returns {Promise<WasmApiWalletBitcoinAddresses>}
625    */
626   getBitcoinAddresses(wallet_id: string, wallet_account_id: string, only_without_bitcoin_addresses?: number): Promise<WasmApiWalletBitcoinAddresses>;
627   /**
628    * @param {string} wallet_id
629    * @param {string} wallet_account_id
630    * @returns {Promise<bigint>}
631    */
632   getBitcoinAddressHighestIndex(wallet_id: string, wallet_account_id: string): Promise<bigint>;
633   /**
634    * @param {string} wallet_id
635    * @param {string} wallet_account_id
636    * @param {WasmApiBitcoinAddressesCreationPayload} bitcoin_addresses
637    * @returns {Promise<WasmApiWalletBitcoinAddresses>}
638    */
639   addBitcoinAddresses(wallet_id: string, wallet_account_id: string, bitcoin_addresses: WasmApiBitcoinAddressesCreationPayload): Promise<WasmApiWalletBitcoinAddresses>;
640   /**
641    * @param {string} wallet_id
642    * @param {string} wallet_account_id
643    * @param {string} wallet_account_bitcoin_address_id
644    * @param {WasmApiBitcoinAddressCreationPayload} bitcoin_address
645    * @returns {Promise<WasmApiWalletBitcoinAddressData>}
646    */
647   updateBitcoinAddress(wallet_id: string, wallet_account_id: string, wallet_account_bitcoin_address_id: string, bitcoin_address: WasmApiBitcoinAddressCreationPayload): Promise<WasmApiWalletBitcoinAddressData>;
649 export class WasmBlockchainClient {
650   free(): void;
651   /**
652    * Generates a Mnemonic with a random entropy based on the given word
653    * count.
654    * @param {WasmProtonWalletApiClient} proton_api_client
655    */
656   constructor(proton_api_client: WasmProtonWalletApiClient);
657   /**
658    * @returns {Promise<Map<string, number>>}
659    */
660   getFeesEstimation(): Promise<Map<string, number>>;
661   /**
662    * @returns {Promise<WasmMinimumFees>}
663    */
664   getMininumFees(): Promise<WasmMinimumFees>;
665   /**
666    * @param {WasmAccount} account
667    * @param {number | undefined} [stop_gap]
668    * @returns {Promise<void>}
669    */
670   fullSync(account: WasmAccount, stop_gap?: number): Promise<void>;
671   /**
672    * @param {WasmAccount} account
673    * @returns {Promise<void>}
674    */
675   partialSync(account: WasmAccount): Promise<void>;
676   /**
677    * @param {WasmAccount} account
678    * @returns {Promise<boolean>}
679    */
680   shouldSync(account: WasmAccount): Promise<boolean>;
681   /**
682    * @param {WasmPsbt} psbt
683    * @param {string} wallet_id
684    * @param {string} wallet_account_id
685    * @param {WasmTransactionData} transaction_data
686    * @param {WasmEmailIntegrationData | undefined} [email_integration]
687    * @returns {Promise<string>}
688    */
689   broadcastPsbt(psbt: WasmPsbt, wallet_id: string, wallet_account_id: string, transaction_data: WasmTransactionData, email_integration?: WasmEmailIntegrationData): Promise<string>;
691 export class WasmCountriesAndProviderTupple {
692   free(): void;
693   0: WasmGatewayProvider;
694   1: WasmCountries;
696 export class WasmCountriesByProvider {
697   free(): void;
698   data: (WasmCountriesAndProviderTupple)[];
700 export class WasmDerivationPath {
701   free(): void;
702   /**
703    * @param {string} path
704    */
705   constructor(path: string);
706   /**
707    * @param {WasmScriptType} script_type
708    * @param {WasmNetwork} network
709    * @param {number} account_index
710    * @returns {WasmDerivationPath}
711    */
712   static fromParts(script_type: WasmScriptType, network: WasmNetwork, account_index: number): WasmDerivationPath;
713   /**
714    * @param {string} str
715    * @returns {WasmDerivationPath}
716    */
717   static fromString(str: string): WasmDerivationPath;
718   /**
719    * @returns {string}
720    */
721   toString(): string;
723 export class WasmDetailledTxIn {
724   free(): void;
725   previous_output?: WasmTxOut;
726   script_sig: WasmScript;
727   sequence: WasmSequence;
729 export class WasmDiscoveredAccount {
730   free(): void;
731   0: WasmScriptType;
732   1: number;
733   2: WasmDerivationPath;
735 export class WasmDiscoveredAccounts {
736   free(): void;
737   data: (WasmDiscoveredAccount)[];
739 export class WasmEmailIntegrationClient {
740   free(): void;
741   /**
742    * @param {string} email
743    * @returns {Promise<WasmApiWalletBitcoinAddressLookupData>}
744    */
745   lookupBitcoinAddress(email: string): Promise<WasmApiWalletBitcoinAddressLookupData>;
746   /**
747    * @param {string} email
748    * @returns {Promise<void>}
749    */
750   createBitcoinAddressesRequest(email: string): Promise<void>;
752 export class WasmExchangeRateClient {
753   free(): void;
754   /**
755    * @param {WasmFiatCurrencySymbol} fiat
756    * @param {bigint | undefined} [time]
757    * @returns {Promise<WasmApiExchangeRateData>}
758    */
759   getExchangeRate(fiat: WasmFiatCurrencySymbol, time?: bigint): Promise<WasmApiExchangeRateData>;
760   /**
761    * @returns {Promise<WasmApiFiatCurrencies>}
762    */
763   getAllFiatCurrencies(): Promise<WasmApiFiatCurrencies>;
765 export class WasmFiatCurrenciesAndProviderTupple {
766   free(): void;
767   0: WasmGatewayProvider;
768   1: WasmFiatCurrencies;
770 export class WasmFiatCurrenciesByProvider {
771   free(): void;
772   data: (WasmFiatCurrenciesAndProviderTupple)[];
774 export class WasmInviteClient {
775   free(): void;
776   /**
777    * @param {string} invitee_email
778    * @param {string} inviter_address_id
779    * @returns {Promise<void>}
780    */
781   sendNewcomerInvite(invitee_email: string, inviter_address_id: string): Promise<void>;
782   /**
783    * @param {string} invitee_email
784    * @param {WasmInviteNotificationType} invite_notification_type
785    * @param {string} inviter_address_id
786    * @returns {Promise<number>}
787    */
788   checkInviteStatus(invitee_email: string, invite_notification_type: WasmInviteNotificationType, inviter_address_id: string): Promise<number>;
789   /**
790    * @param {string} invitee_email
791    * @param {string} inviter_address_id
792    * @returns {Promise<void>}
793    */
794   sendEmailIntegrationInvite(invitee_email: string, inviter_address_id: string): Promise<void>;
795   /**
796    * @returns {Promise<WasmRemainingMonthlyInvitations>}
797    */
798   getRemainingMonthlyInvitation(): Promise<WasmRemainingMonthlyInvitations>;
800 export class WasmLockTime {
801   free(): void;
802   /**
803    * @param {number} height
804    * @returns {WasmLockTime}
805    */
806   static fromHeight(height: number): WasmLockTime;
807   /**
808    * @param {number} seconds
809    * @returns {WasmLockTime}
810    */
811   static fromSeconds(seconds: number): WasmLockTime;
812   /**
813    * @returns {boolean}
814    */
815   isBlockHeight(): boolean;
816   /**
817    * @returns {boolean}
818    */
819   isBlockTime(): boolean;
820   /**
821    * @returns {number}
822    */
823   toConsensusU32(): number;
825 export class WasmMigratedWalletAccountData {
826   free(): void;
827   Data: WasmMigratedWalletAccount;
829 export class WasmMigratedWalletAccounts {
830   free(): void;
831   constructor();
832   /**
833    * @param {WasmMigratedWalletAccount} account_data
834    */
835   push(account_data: WasmMigratedWalletAccount): void;
836   0: (WasmMigratedWalletAccountData)[];
838 export class WasmMigratedWalletTransactionData {
839   free(): void;
840   Data: WasmMigratedWalletTransaction;
842 export class WasmMigratedWalletTransactions {
843   free(): void;
844   constructor();
845   /**
846    * @param {WasmMigratedWalletTransaction} account_data
847    */
848   push(account_data: WasmMigratedWalletTransaction): void;
849   0: (WasmMigratedWalletTransactionData)[];
851 export class WasmMinimumFees {
852   free(): void;
853   MinimumBroadcastFee: number;
854   MinimumIncrementalFee: number;
856 export class WasmMnemonic {
857   free(): void;
858   /**
859    * Generates a Mnemonic with a random entropy based on the given word
860    * count.
861    * @param {WasmWordCount} word_count
862    */
863   constructor(word_count: WasmWordCount);
864   /**
865    * Parse a Mnemonic with the given string.
866    * @param {string} mnemonic
867    * @returns {WasmMnemonic}
868    */
869   static fromString(mnemonic: string): WasmMnemonic;
870   /**
871    * Returns the Mnemonic as a string.
872    * @returns {string}
873    */
874   asString(): string;
875   /**
876    * @returns {(string)[]}
877    */
878   asWords(): (string)[];
880 export class WasmNetworkClient {
881   free(): void;
882   /**
883    * @returns {Promise<WasmNetwork>}
884    */
885   getNetwork(): Promise<WasmNetwork>;
887 export class WasmOnchainPaymentLink {
888   free(): void;
889   address?: string;
890   amount?: bigint;
891   label?: string;
892   message?: string;
895  * Serialised Outpoint under the form <txid>:<index>
896  */
897 export class WasmOutPoint {
898   free(): void;
899   /**
900    * @param {string} str
901    * @returns {WasmOutPoint}
902    */
903   static fromString(str: string): WasmOutPoint;
904   0: string;
906 export class WasmPaymentGatewayClient {
907   free(): void;
908   /**
909    * @returns {Promise<WasmCountriesByProvider>}
910    */
911   getCountries(): Promise<WasmCountriesByProvider>;
912   /**
913    * @returns {Promise<WasmFiatCurrenciesByProvider>}
914    */
915   getFiatCurrencies(): Promise<WasmFiatCurrenciesByProvider>;
916   /**
917    * @param {string} fiat_currency
918    * @returns {Promise<WasmPaymentMethodsByProvider>}
919    */
920   getPaymentMethods(fiat_currency: string): Promise<WasmPaymentMethodsByProvider>;
921   /**
922    * @param {number} amount
923    * @param {string} fiat_currency
924    * @param {WasmPaymentMethod | undefined} [payment_method]
925    * @param {WasmGatewayProvider | undefined} [provider]
926    * @returns {Promise<WasmQuotesByProvider>}
927    */
928   getQuotes(amount: number, fiat_currency: string, payment_method?: WasmPaymentMethod, provider?: WasmGatewayProvider): Promise<WasmQuotesByProvider>;
929   /**
930    * @param {string} amount
931    * @param {string} btc_address
932    * @param {string} fiat_currency
933    * @param {WasmPaymentMethod} payment_method
934    * @param {WasmGatewayProvider} provider
935    * @param {string} order_id
936    * @returns {Promise<string>}
937    */
938   createOnRampCheckout(amount: string, btc_address: string, fiat_currency: string, payment_method: WasmPaymentMethod, provider: WasmGatewayProvider, order_id: string): Promise<string>;
939   /**
940    * @param {string} url
941    * @param {WasmGatewayProvider} provider
942    * @returns {Promise<string>}
943    */
944   signUrl(url: string, provider: WasmGatewayProvider): Promise<string>;
945   /**
946    * @param {WasmGatewayProvider} provider
947    * @returns {Promise<string>}
948    */
949   getPublicApiKey(provider: WasmGatewayProvider): Promise<string>;
950   /**
951    * @param {number} amount
952    * @param {string} address
953    * @param {string} fiat_currency
954    * @param {WasmPaymentMethod} payment_method
955    * @param {WasmGatewayProvider} provider
956    * @returns {string}
957    */
958   getCheckoutIframeSrc(amount: number, address: string, fiat_currency: string, payment_method: WasmPaymentMethod, provider: WasmGatewayProvider): string;
960 export class WasmPaymentLink {
961   free(): void;
962   /**
963    * @returns {string}
964    */
965   toString(): string;
966   /**
967    * @returns {string}
968    */
969   toUri(): string;
970   /**
971    * @param {string} str
972    * @param {WasmNetwork} network
973    * @returns {WasmPaymentLink}
974    */
975   static tryParse(str: string, network: WasmNetwork): WasmPaymentLink;
976   /**
977    * @returns {WasmPaymentLinkKind}
978    */
979   getKind(): WasmPaymentLinkKind;
980   /**
981    * @returns {WasmOnchainPaymentLink}
982    */
983   assumeOnchain(): WasmOnchainPaymentLink;
985 export class WasmPaymentMethodsAndProviderTupple {
986   free(): void;
987   0: WasmGatewayProvider;
988   1: WasmPaymentMethods;
990 export class WasmPaymentMethodsByProvider {
991   free(): void;
992   data: (WasmPaymentMethodsAndProviderTupple)[];
994 export class WasmPriceGraphClient {
995   free(): void;
996   /**
997    * @param {WasmFiatCurrencySymbol} fiat_currency
998    * @param {WasmTimeframe} timeframe
999    * @returns {Promise<WasmWrappedPriceGraph>}
1000    */
1001   getGraphData(fiat_currency: WasmFiatCurrencySymbol, timeframe: WasmTimeframe): Promise<WasmWrappedPriceGraph>;
1003 export class WasmProtonWalletApiClient {
1004   free(): void;
1005   /**
1006    * @param {string} app_version
1007    * @param {string} user_agent
1008    * @param {string | undefined} [uid_str]
1009    * @param {string | undefined} [origin]
1010    * @param {string | undefined} [url_prefix]
1011    */
1012   constructor(app_version: string, user_agent: string, uid_str?: string, origin?: string, url_prefix?: string);
1013   /**
1014    * @returns {WasmApiClients}
1015    */
1016   clients(): WasmApiClients;
1018 export class WasmPsbt {
1019   free(): void;
1020   /**
1021    * @param {WasmAccount} wasm_account
1022    * @param {WasmNetwork} network
1023    * @returns {Promise<WasmPsbt>}
1024    */
1025   sign(wasm_account: WasmAccount, network: WasmNetwork): Promise<WasmPsbt>;
1026   /**
1027    * @returns {bigint}
1028    */
1029   computeTxVbytes(): bigint;
1030   recipients: (WasmPsbtRecipient)[];
1031   total_fees: bigint;
1033 export class WasmPsbtAndTxBuilder {
1034   free(): void;
1035   0: WasmPsbt;
1036   1: WasmTxBuilder;
1038 export class WasmPsbtRecipient {
1039   free(): void;
1040   0: string;
1041   1: bigint;
1043 export class WasmQuotesAndProviderTupple {
1044   free(): void;
1045   0: WasmGatewayProvider;
1046   1: WasmQuotes;
1048 export class WasmQuotesByProvider {
1049   free(): void;
1050   data: (WasmQuotesAndProviderTupple)[];
1052 export class WasmRecipient {
1053   free(): void;
1054   0: string;
1055   1: string;
1056   2: bigint;
1058 export class WasmRemainingMonthlyInvitations {
1059   free(): void;
1060   Available: number;
1061   Used: number;
1063 export class WasmScript {
1064   free(): void;
1065   /**
1066    * @param {WasmNetwork} network
1067    * @returns {WasmAddress}
1068    */
1069   toAddress(network: WasmNetwork): WasmAddress;
1070   0: Uint8Array;
1072 export class WasmSequence {
1073   free(): void;
1074   0: number;
1076 export class WasmSettingsClient {
1077   free(): void;
1078   /**
1079    * @returns {Promise<WasmUserSettingsData>}
1080    */
1081   getUserSettings(): Promise<WasmUserSettingsData>;
1082   /**
1083    * @param {WasmBitcoinUnit} symbol
1084    * @returns {Promise<WasmUserSettingsData>}
1085    */
1086   setBitcoinUnit(symbol: WasmBitcoinUnit): Promise<WasmUserSettingsData>;
1087   /**
1088    * @param {WasmFiatCurrencySymbol} symbol
1089    * @returns {Promise<WasmUserSettingsData>}
1090    */
1091   setFiatCurrency(symbol: WasmFiatCurrencySymbol): Promise<WasmUserSettingsData>;
1092   /**
1093    * @param {bigint} amount
1094    * @returns {Promise<WasmUserSettingsData>}
1095    */
1096   setTwoFaThreshold(amount: bigint): Promise<WasmUserSettingsData>;
1097   /**
1098    * @param {boolean} hide_empty_used_addresses
1099    * @returns {Promise<WasmUserSettingsData>}
1100    */
1101   setHideEmptyUsedAddresses(hide_empty_used_addresses: boolean): Promise<WasmUserSettingsData>;
1102   /**
1103    * @param {WasmUserReceiveNotificationEmailTypes} email_type
1104    * @param {boolean} is_enable
1105    * @returns {Promise<WasmUserSettingsData>}
1106    */
1107   setReceiveNotificationEmail(email_type: WasmUserReceiveNotificationEmailTypes, is_enable: boolean): Promise<WasmUserSettingsData>;
1108   /**
1109    * @returns {Promise<WasmUserSettingsData>}
1110    */
1111   acceptTermsAndConditions(): Promise<WasmUserSettingsData>;
1112   /**
1113    * @returns {Promise<number>}
1114    */
1115   getUserWalletEligibility(): Promise<number>;
1117 export class WasmTransaction {
1118   free(): void;
1119   /**
1120    * @param {WasmPsbt} value
1121    * @returns {WasmTransaction}
1122    */
1123   static fromPsbt(value: WasmPsbt): WasmTransaction;
1125 export class WasmTransactionDetailsArray {
1126   free(): void;
1127   0: (WasmTransactionDetailsData)[];
1129 export class WasmTransactionDetailsData {
1130   free(): void;
1131   Data: WasmTransactionDetails;
1133 export class WasmTxBuilder {
1134   free(): void;
1135   constructor();
1136   /**
1137    * @param {WasmAccount} account
1138    * @returns {WasmTxBuilder}
1139    */
1140   setAccount(account: WasmAccount): WasmTxBuilder;
1141   /**
1142    * @returns {Promise<WasmTxBuilder>}
1143    */
1144   constrainRecipientAmounts(): Promise<WasmTxBuilder>;
1145   /**
1146    * @returns {WasmTxBuilder}
1147    */
1148   clearRecipients(): WasmTxBuilder;
1149   /**
1150    * @param {string | undefined} [address_str]
1151    * @param {bigint | undefined} [amount]
1152    * @returns {WasmTxBuilder}
1153    */
1154   addRecipient(address_str?: string, amount?: bigint): WasmTxBuilder;
1155   /**
1156    * @param {number} index
1157    * @returns {WasmTxBuilder}
1158    */
1159   removeRecipient(index: number): WasmTxBuilder;
1160   /**
1161    * @param {number} index
1162    * @param {string | undefined} [address_str]
1163    * @param {bigint | undefined} [amount]
1164    * @returns {WasmTxBuilder}
1165    */
1166   updateRecipient(index: number, address_str?: string, amount?: bigint): WasmTxBuilder;
1167   /**
1168    * @param {number} index
1169    * @returns {Promise<WasmTxBuilder>}
1170    */
1171   updateRecipientAmountToMax(index: number): Promise<WasmTxBuilder>;
1172   /**
1173    * @returns {(WasmRecipient)[]}
1174    */
1175   getRecipients(): (WasmRecipient)[];
1176   /**
1177    *
1178    *     * UTXOs
1179    *     
1180    * @param {WasmOutPoint} outpoint
1181    * @returns {WasmTxBuilder}
1182    */
1183   addUtxoToSpend(outpoint: WasmOutPoint): WasmTxBuilder;
1184   /**
1185    * @param {WasmOutPoint} outpoint
1186    * @returns {WasmTxBuilder}
1187    */
1188   removeUtxoToSpend(outpoint: WasmOutPoint): WasmTxBuilder;
1189   /**
1190    * @returns {WasmTxBuilder}
1191    */
1192   clearUtxosToSpend(): WasmTxBuilder;
1193   /**
1194    * @returns {(WasmOutPoint)[]}
1195    */
1196   getUtxosToSpend(): (WasmOutPoint)[];
1197   /**
1198    *
1199    *     * Coin selection enforcement
1200    *     
1201    * @param {WasmCoinSelection} coin_selection
1202    * @returns {WasmTxBuilder}
1203    */
1204   setCoinSelection(coin_selection: WasmCoinSelection): WasmTxBuilder;
1205   /**
1206    * @returns {WasmCoinSelection}
1207    */
1208   getCoinSelection(): WasmCoinSelection;
1209   /**
1210    *
1211    *     * RBF
1212    *     
1213    * @returns {WasmTxBuilder}
1214    */
1215   enableRbf(): WasmTxBuilder;
1216   /**
1217    * @returns {WasmTxBuilder}
1218    */
1219   disableRbf(): WasmTxBuilder;
1220   /**
1221    * @returns {boolean}
1222    */
1223   getRbfEnabled(): boolean;
1224   /**
1225    *
1226    *     * Change policy
1227    *     
1228    * @param {WasmChangeSpendPolicy} change_policy
1229    * @returns {WasmTxBuilder}
1230    */
1231   setChangePolicy(change_policy: WasmChangeSpendPolicy): WasmTxBuilder;
1232   /**
1233    * @returns {WasmChangeSpendPolicy}
1234    */
1235   getChangePolicy(): WasmChangeSpendPolicy;
1236   /**
1237    *
1238    *     * Fees
1239    *     
1240    * @param {bigint} sat_per_vb
1241    * @returns {WasmTxBuilder}
1242    */
1243   setFeeRate(sat_per_vb: bigint): WasmTxBuilder;
1244   /**
1245    * @returns {bigint | undefined}
1246    */
1247   getFeeRate(): bigint | undefined;
1248   /**
1249    *
1250    *     * Locktime
1251    *     
1252    * @param {WasmLockTime} locktime
1253    * @returns {WasmTxBuilder}
1254    */
1255   addLocktime(locktime: WasmLockTime): WasmTxBuilder;
1256   /**
1257    * @returns {WasmTxBuilder}
1258    */
1259   removeLocktime(): WasmTxBuilder;
1260   /**
1261    * @returns {WasmLockTime | undefined}
1262    */
1263   getLocktime(): WasmLockTime | undefined;
1264   /**
1265    *
1266    *     * Final
1267    *     
1268    * @param {WasmNetwork} network
1269    * @returns {Promise<WasmPsbt>}
1270    */
1271   createPsbt(network: WasmNetwork): Promise<WasmPsbt>;
1272   /**
1273    * @param {WasmNetwork} network
1274    * @param {boolean | undefined} [allow_dust]
1275    * @returns {Promise<WasmPsbt>}
1276    */
1277   createDraftPsbt(network: WasmNetwork, allow_dust?: boolean): Promise<WasmPsbt>;
1279 export class WasmTxOut {
1280   free(): void;
1281   address?: string;
1282   is_mine: boolean;
1283   script_pubkey: WasmScript;
1284   value: bigint;
1286 export class WasmUserSettingsData {
1287   free(): void;
1288   0: WasmUserSettings;
1290 export class WasmUtxo {
1291   free(): void;
1292   is_spent: boolean;
1293   keychain: WasmKeychainKind;
1294   outpoint: WasmOutPoint;
1295   script_pubkey: WasmScript;
1296   value: bigint;
1298 export class WasmUtxoArray {
1299   free(): void;
1300   0: (WasmUtxo)[];
1302 export class WasmWallet {
1303   free(): void;
1304   /**
1305    * @param {WasmNetwork} network
1306    * @param {string} bip39_mnemonic
1307    * @param {string | undefined} [bip38_passphrase]
1308    */
1309   constructor(network: WasmNetwork, bip39_mnemonic: string, bip38_passphrase?: string);
1310   /**
1311    * @param {number} script_type
1312    * @param {string} derivation_path
1313    * @returns {WasmAccount}
1314    */
1315   addAccount(script_type: number, derivation_path: string): WasmAccount;
1316   /**
1317    * @param {WasmProtonWalletApiClient} api_client
1318    * @returns {Promise<WasmDiscoveredAccounts>}
1319    */
1320   discoverAccounts(api_client: WasmProtonWalletApiClient): Promise<WasmDiscoveredAccounts>;
1321   /**
1322    * @param {string} derivation_path
1323    * @returns {WasmAccount | undefined}
1324    */
1325   getAccount(derivation_path: string): WasmAccount | undefined;
1326   /**
1327    * @returns {Promise<WasmBalanceWrapper>}
1328    */
1329   getBalance(): Promise<WasmBalanceWrapper>;
1330   /**
1331    * @param {WasmPagination | undefined} [pagination]
1332    * @param {WasmSortOrder | undefined} [sort]
1333    * @returns {Promise<WasmTransactionDetailsArray>}
1334    */
1335   getTransactions(pagination?: WasmPagination, sort?: WasmSortOrder): Promise<WasmTransactionDetailsArray>;
1336   /**
1337    * @param {WasmDerivationPath} account_key
1338    * @param {string} txid
1339    * @returns {Promise<WasmTransactionDetailsData>}
1340    */
1341   getTransaction(account_key: WasmDerivationPath, txid: string): Promise<WasmTransactionDetailsData>;
1342   /**
1343    * @returns {string}
1344    */
1345   getFingerprint(): string;
1346   clearStore(): void;
1348 export class WasmWalletAccountAddressData {
1349   free(): void;
1350   Data: WasmApiEmailAddress;
1352 export class WasmWalletAccountData {
1353   free(): void;
1354   Data: WasmApiWalletAccount;
1356 export class WasmWalletClient {
1357   free(): void;
1358   /**
1359    * @returns {Promise<WasmApiWalletsData>}
1360    */
1361   getWallets(): Promise<WasmApiWalletsData>;
1362   /**
1363    * @param {string} name
1364    * @param {boolean} is_imported
1365    * @param {number} wallet_type
1366    * @param {boolean} has_passphrase
1367    * @param {string} user_key_id
1368    * @param {string} wallet_key
1369    * @param {string} wallet_key_signature
1370    * @param {string | undefined} [mnemonic]
1371    * @param {string | undefined} [fingerprint]
1372    * @param {string | undefined} [public_key]
1373    * @param {boolean | undefined} [is_auto_created]
1374    * @returns {Promise<WasmApiWalletData>}
1375    */
1376   createWallet(name: string, is_imported: boolean, wallet_type: number, has_passphrase: boolean, user_key_id: string, wallet_key: string, wallet_key_signature: string, mnemonic?: string, fingerprint?: string, public_key?: string, is_auto_created?: boolean): Promise<WasmApiWalletData>;
1377   /**
1378    * @param {string} wallet_id
1379    * @param {WasmMigratedWallet} migrated_wallet
1380    * @param {WasmMigratedWalletAccounts} migrated_wallet_accounts
1381    * @param {WasmMigratedWalletTransactions} migrated_wallet_transactions
1382    * @returns {Promise<void>}
1383    */
1384   migrate(wallet_id: string, migrated_wallet: WasmMigratedWallet, migrated_wallet_accounts: WasmMigratedWalletAccounts, migrated_wallet_transactions: WasmMigratedWalletTransactions): Promise<void>;
1385   /**
1386    * @param {string} wallet_id
1387    * @param {string} name
1388    * @returns {Promise<void>}
1389    */
1390   updateWalletName(wallet_id: string, name: string): Promise<void>;
1391   /**
1392    * @param {string} wallet_id
1393    * @returns {Promise<void>}
1394    */
1395   disableShowWalletRecovery(wallet_id: string): Promise<void>;
1396   /**
1397    * @param {string} wallet_id
1398    * @returns {Promise<void>}
1399    */
1400   deleteWallet(wallet_id: string): Promise<void>;
1401   /**
1402    * @param {string} wallet_id
1403    * @returns {Promise<WasmApiWalletAccounts>}
1404    */
1405   getWalletAccounts(wallet_id: string): Promise<WasmApiWalletAccounts>;
1406   /**
1407    * @param {string} wallet_id
1408    * @param {string} wallet_account_id
1409    * @returns {Promise<WasmApiWalletAccountAddresses>}
1410    */
1411   getWalletAccountAddresses(wallet_id: string, wallet_account_id: string): Promise<WasmApiWalletAccountAddresses>;
1412   /**
1413    * @param {string} wallet_id
1414    * @param {WasmDerivationPath} derivation_path
1415    * @param {string} label
1416    * @param {WasmScriptType} script_type
1417    * @returns {Promise<WasmWalletAccountData>}
1418    */
1419   createWalletAccount(wallet_id: string, derivation_path: WasmDerivationPath, label: string, script_type: WasmScriptType): Promise<WasmWalletAccountData>;
1420   /**
1421    * @param {string} wallet_id
1422    * @param {string} wallet_account_id
1423    * @param {WasmFiatCurrencySymbol} symbol
1424    * @returns {Promise<WasmWalletAccountData>}
1425    */
1426   updateWalletAccountFiatCurrency(wallet_id: string, wallet_account_id: string, symbol: WasmFiatCurrencySymbol): Promise<WasmWalletAccountData>;
1427   /**
1428    * @param {string} wallet_id
1429    * @param {string} wallet_account_id
1430    * @param {string} label
1431    * @returns {Promise<WasmWalletAccountData>}
1432    */
1433   updateWalletAccountLabel(wallet_id: string, wallet_account_id: string, label: string): Promise<WasmWalletAccountData>;
1434   /**
1435    * @param {string} wallet_id
1436    * @param {(string)[]} wallet_account_ids
1437    * @returns {Promise<WasmApiWalletAccounts>}
1438    */
1439   updateWalletAccountsOrder(wallet_id: string, wallet_account_ids: (string)[]): Promise<WasmApiWalletAccounts>;
1440   /**
1441    * @param {string} wallet_id
1442    * @param {string} wallet_account_id
1443    * @param {number} last_used_index
1444    * @returns {Promise<WasmWalletAccountData>}
1445    */
1446   updateWalletAccountLastUsedIndex(wallet_id: string, wallet_account_id: string, last_used_index: number): Promise<WasmWalletAccountData>;
1447   /**
1448    * @param {string} wallet_id
1449    * @param {string} wallet_account_id
1450    * @param {string} email_address_id
1451    * @returns {Promise<WasmWalletAccountData>}
1452    */
1453   addEmailAddress(wallet_id: string, wallet_account_id: string, email_address_id: string): Promise<WasmWalletAccountData>;
1454   /**
1455    * @param {string} wallet_id
1456    * @param {string} wallet_account_id
1457    * @param {string} email_address_id
1458    * @returns {Promise<WasmWalletAccountData>}
1459    */
1460   removeEmailAddress(wallet_id: string, wallet_account_id: string, email_address_id: string): Promise<WasmWalletAccountData>;
1461   /**
1462    * @param {string} wallet_id
1463    * @param {string} wallet_account_id
1464    * @returns {Promise<void>}
1465    */
1466   deleteWalletAccount(wallet_id: string, wallet_account_id: string): Promise<void>;
1467   /**
1468    * @param {string} wallet_id
1469    * @param {string | undefined} [wallet_account_id]
1470    * @param {(string)[] | undefined} [hashed_txids]
1471    * @returns {Promise<WasmApiWalletTransactions>}
1472    */
1473   getWalletTransactions(wallet_id: string, wallet_account_id?: string, hashed_txids?: (string)[]): Promise<WasmApiWalletTransactions>;
1474   /**
1475    * @param {string} wallet_id
1476    * @param {string | undefined} [wallet_account_id]
1477    * @returns {Promise<WasmApiWalletTransactions>}
1478    */
1479   getWalletTransactionsToHash(wallet_id: string, wallet_account_id?: string): Promise<WasmApiWalletTransactions>;
1480   /**
1481    * @param {string} wallet_id
1482    * @param {string} wallet_account_id
1483    * @param {WasmCreateWalletTransactionPayload} payload
1484    * @returns {Promise<WasmApiWalletTransactionData>}
1485    */
1486   createWalletTransaction(wallet_id: string, wallet_account_id: string, payload: WasmCreateWalletTransactionPayload): Promise<WasmApiWalletTransactionData>;
1487   /**
1488    * @param {string} wallet_id
1489    * @param {string} wallet_account_id
1490    * @param {string} wallet_transaction_id
1491    * @param {string} label
1492    * @returns {Promise<WasmApiWalletTransactionData>}
1493    */
1494   updateWalletTransactionLabel(wallet_id: string, wallet_account_id: string, wallet_transaction_id: string, label: string): Promise<WasmApiWalletTransactionData>;
1495   /**
1496    * @param {string} wallet_id
1497    * @param {string} wallet_account_id
1498    * @param {string} wallet_transaction_id
1499    * @param {string} hash_txid
1500    * @returns {Promise<WasmApiWalletTransactionData>}
1501    */
1502   updateWalletTransactionHashedTxId(wallet_id: string, wallet_account_id: string, wallet_transaction_id: string, hash_txid: string): Promise<WasmApiWalletTransactionData>;
1503   /**
1504    * @param {string} wallet_id
1505    * @param {string} wallet_account_id
1506    * @param {string} wallet_transaction_id
1507    * @param {string} sender
1508    * @returns {Promise<WasmApiWalletTransactionData>}
1509    */
1510   updateExternalWalletTransactionSender(wallet_id: string, wallet_account_id: string, wallet_transaction_id: string, sender: string): Promise<WasmApiWalletTransactionData>;
1511   /**
1512    * @param {string} wallet_id
1513    * @param {string} wallet_account_id
1514    * @param {string} wallet_transaction_id
1515    * @param {WasmWalletTransactionFlag} flag
1516    * @returns {Promise<WasmApiWalletTransactionData>}
1517    */
1518   setWalletTransactionFlag(wallet_id: string, wallet_account_id: string, wallet_transaction_id: string, flag: WasmWalletTransactionFlag): Promise<WasmApiWalletTransactionData>;
1519   /**
1520    * @param {string} wallet_id
1521    * @param {string} wallet_account_id
1522    * @param {string} wallet_transaction_id
1523    * @param {WasmWalletTransactionFlag} flag
1524    * @returns {Promise<WasmApiWalletTransactionData>}
1525    */
1526   deleteWalletTransactionFlag(wallet_id: string, wallet_account_id: string, wallet_transaction_id: string, flag: WasmWalletTransactionFlag): Promise<WasmApiWalletTransactionData>;
1527   /**
1528    * @param {string} wallet_id
1529    * @param {string} wallet_account_id
1530    * @param {string} wallet_transaction_id
1531    * @returns {Promise<void>}
1532    */
1533   deleteWalletTransaction(wallet_id: string, wallet_account_id: string, wallet_transaction_id: string): Promise<void>;
1535 export class WasmWrappedPriceGraph {
1536   free(): void;
1537   data: WasmPriceGraph;