/** * Keystore management for IoTeX accounts */ import { KeystoreAccount } from '../types'; export declare class Keystore { private keystoreDir; constructor(keystoreDir?: string); /** * Ensure keystore directory exists */ private ensureKeystoreDir; /** * Get keystore file path for an address */ private getKeystoreFilePath; /** * Create a new account and save to keystore */ create(password: string): Promise<{ address: string; privateKey: string; }>; /** * Import a private key into keystore */ importKey(privateKey: string, password: string): Promise; /** * Export private key from keystore */ exportKey(address: string, password: string): Promise; /** * Delete an account from keystore */ delete(address: string): Promise; /** * List all accounts in keystore */ list(): KeystoreAccount[]; /** * Check if an account exists in keystore */ exists(address: string): boolean; /** * Update password for an account */ updatePassword(address: string, oldPassword: string, newPassword: string): Promise; /** * Get keystore directory path */ getKeystoreDir(): string; /** * Sign a message with account from keystore */ signMessage(address: string, password: string, message: string): Promise; } //# sourceMappingURL=keystore.d.ts.map