/** * Account management for IoTeX SDK */ import { GrpcClient } from '../client/grpc-client'; import { AccountMeta } from '../types'; export declare class Account { private client; private keystore; private hdwallet; constructor(client: GrpcClient, keystoreDir?: string, hdwalletConfigDir?: string); /** * Get account balance (returns IOTX, not Rau) */ getBalance(address: string): Promise; /** * Get account metadata (balance, nonce, pendingNonce) */ getMeta(address: string): Promise; /** * Get nonce for an address */ getNonce(address: string): Promise; /** * Convert IoTeX address to Ethereum address */ static toEthAddress(ioAddress: string): string; /** * Convert Ethereum address to IoTeX address */ static toIoAddress(ethAddress: string): string; /** * Create a new account */ create(password: string): Promise<{ address: string; privateKey: string; }>; /** * Import account from private key */ importKey(privateKey: string, password: string): Promise; /** * Export private key from keystore */ exportKey(address: string, password: string): Promise; /** * Delete account from keystore */ delete(address: string): Promise; /** * List all accounts in keystore */ list(): Array<{ address: string; publicKey: string; }>; /** * Check if account exists in keystore */ exists(address: string): boolean; /** * Update account password */ updatePassword(address: string, oldPassword: string, newPassword: string): Promise; /** * Sign a message (Ethereum-style with prefix) */ sign(address: string, password: string, message: string): Promise; /** * Verify a signature */ static verify(message: string, signature: string, address: string): boolean; /** * Create HD wallet */ createHDWallet(password: string, language?: 'english' | 'chinese'): Promise; /** * Import HD wallet from mnemonic */ importHDWallet(mnemonic: string, password: string): Promise; /** * Derive account from HD wallet */ deriveHDAccount(password: string, account?: number, change?: number, index?: number): Promise<{ address: string; publicKey: string; privateKey: string; path: string; }>; /** * Export HD wallet mnemonic */ exportHDWalletMnemonic(password: string): Promise; /** * Delete HD wallet */ deleteHDWallet(): void; /** * Check if HD wallet exists */ hdWalletExists(): boolean; /** * Update HD wallet password */ updateHDWalletPassword(oldPassword: string, newPassword: string): Promise; /** * Parse HD wallet path (e.g., "0/0/0" or "hdw::0/0/0") */ static parseHDPath(pathStr: string): { account: number; change: number; index: number; }; /** * Generate a new random account (not saved to keystore) */ static generate(): { privateKey: string; publicKey: string; address: string; }; /** * Get IoTeX address from private key */ static getAddress(privateKey: string): string; /** * Get keystore directory */ getKeystoreDir(): string; /** * Get HD wallet config file path */ getHDWalletConfigFile(): string; } //# sourceMappingURL=account.d.ts.map