import { Account } from './Account'; import type { AccountId, Auth, EventType, AccountManagerOptions, CreateAccountPayload, NodeInfoWrapper, ClientOptions, AccountSyncOptions, WalletEvent } from '../types'; export declare class AccountManager { private messageHandler; constructor(options: AccountManagerOptions); backup(destination: string, password: string): Promise; /** * Transform a bech32 encoded address to a hex encoded address */ bech32ToHex(bech32Address: string): Promise; changeStrongholdPassword(currentPassword: string, newPassword: string): Promise; clearStrongholdPassword(): Promise; /** * The coin type only needs to be set on the first account */ createAccount(payload: CreateAccountPayload): Promise; deleteAccountsAndDatabase(): Promise; destroy(): void; emitTestEvent(event: WalletEvent): Promise; generateMnemonic(): Promise; getAccount(accountId: AccountId): Promise; getAccounts(): Promise; getNodeInfo(url?: string, auth?: Auth): Promise; /** * Transform hex encoded address to bech32 encoded address. If no bech32Hrp * is provided, the AccountManager will attempt to retrieve it from the * NodeInfo. If this does not succeed, it will default to the Shimmer testnet bech32Hrp. */ hexToBech32(hex: string, bech32Hrp?: string): Promise; isStrongholdPasswordAvailable(): Promise; listen(eventTypes: EventType[], callback: (error: Error, result: string) => void): void; clearListeners(eventTypes: EventType[]): void; recoverAccounts(accountGapLimit: number, addressGapLimit: number): Promise; removeLatestAccount(): Promise; restoreBackup(source: string, password: string): Promise; setClientOptions(options: ClientOptions): Promise; setStrongholdPassword(password: string): Promise; setStrongholdPasswordClearInterval(intervalInMilliseconds?: number): Promise; startBackgroundSync(options?: AccountSyncOptions, intervalInMilliseconds?: number): Promise; stopBackgroundSync(): Promise; storeMnemonic(mnemonic: string): Promise; verifyMnemonic(mnemonic: string): Promise; }