import { AppCurrency, ChainInfo, Keplr, SupportedPaymentType } from "@keplr-wallet/types"; import { ChainGetter } from "../chain"; import { MakeTxResponse } from "./types"; import { AccountSharedContext } from "./context"; export declare enum WalletStatus { NotInit = "NotInit", Loading = "Loading", Loaded = "Loaded", NotExist = "NotExist", Rejected = "Rejected" } export interface MsgOpt { readonly type: string; readonly gas: number; } export interface AccountSetOpts { readonly suggestChain: boolean; readonly suggestChainFn?: (keplr: Keplr, chainInfo: ChainInfo) => Promise; readonly autoInit: boolean; } export declare class AccountSetBase { protected readonly eventListener: { addEventListener: (type: string, fn: () => unknown) => void; removeEventListener: (type: string, fn: () => unknown) => void; }; protected readonly chainGetter: ChainGetter; protected readonly chainId: string; protected readonly sharedContext: AccountSharedContext; protected readonly opts: AccountSetOpts; protected _walletVersion: string | undefined; protected _walletStatus: WalletStatus; protected _rejectionReason: Error | undefined; protected _name: string; protected _bech32Address: string; protected _ethereumHexAddress: string; protected _starknetHexAddress: string; protected _bitcoinAddress: { bech32Address: string; paymentType: SupportedPaymentType; masterFingerprintHex?: string; derivationPath?: string; } | undefined; protected _isNanoLedger: boolean; protected _isKeystone: boolean; protected _txTypeInProgress: string; protected _pubKey: Uint8Array; protected hasInited: boolean; protected makeSendTokenTxFns: ((amount: string, currency: AppCurrency, recipient: string) => MakeTxResponse | undefined)[]; constructor(eventListener: { addEventListener: (type: string, fn: () => unknown) => void; removeEventListener: (type: string, fn: () => unknown) => void; }, chainGetter: ChainGetter, chainId: string, sharedContext: AccountSharedContext, opts: AccountSetOpts); getKeplr(): Promise; registerMakeSendTokenFn(fn: (amount: string, currency: AppCurrency, recipient: string) => MakeTxResponse | undefined): void; protected enable(chainId: string): Promise; private readonly handleInit; init(): Generator | Promise, void, Keplr | undefined>; disconnect(): void; get walletVersion(): string | undefined; get isReadyToSendTx(): boolean; /** * @deprecated Use `isReadyToSendTx` */ get isReadyToSendMsgs(): boolean; makeSendTokenTx(amount: string, currency: AppCurrency, recipient: string): MakeTxResponse; get walletStatus(): WalletStatus; get rejectionReason(): Error | undefined; get name(): string; get bech32Address(): string; get pubKey(): Uint8Array; get isNanoLedger(): boolean; get isKeystone(): boolean; /** * Returns the tx type in progress waiting to be committed. * If there is no tx type in progress, this returns an empty string (""). */ get txTypeInProgress(): string; /** * @deprecated Use `txTypeInProgress` */ get isSendingMsg(): string | boolean; get hasEthereumHexAddress(): boolean; get ethereumHexAddress(): string; get starknetHexAddress(): string; get bitcoinAddress(): { bech32Address: string; paymentType: SupportedPaymentType; masterFingerprintHex?: string; derivationPath?: string; } | undefined; } export declare class AccountSetBaseSuper extends AccountSetBase { constructor(...params: ConstructorParameters); setTxTypeInProgress(type: string): void; }