import { type PrivateKeyAccount } from 'viem/accounts'; import { type Address } from 'viem'; export interface WalletInfo { address: Address; hasPrivateKey: boolean; } /** * Save encrypted private key to file * SECURITY: Never logs private key, only address */ export declare function saveWallet(privateKey: string, password: string): { success: boolean; address?: Address; error?: string; }; /** * Load wallet from encrypted file */ export declare function loadWallet(password: string): { success: boolean; address?: Address; error?: string; }; /** * Delete wallet file securely * SECURITY: Overwrites file with random data before deletion */ export declare function deleteWallet(): { success: boolean; error?: string; }; /** * Check if wallet exists */ export declare function walletExists(): boolean; /** * Get current wallet info (without exposing private key) */ export declare function getWalletInfo(): WalletInfo | null; /** * Get current account */ export declare function getCurrentAccount(): PrivateKeyAccount | null; /** * Get current private key (internal use only) * SECURITY: This should only be called by blockchain client */ export declare function getCurrentPrivateKey(): string | null; /** * Check if wallet is loaded */ export declare function isWalletLoaded(): boolean; /** * Update wallet with new private key */ export declare function updateWallet(newPrivateKey: string, password: string): { success: boolean; address?: Address; error?: string; }; /** * Change wallet password */ export declare function changePassword(oldPassword: string, newPassword: string): { success: boolean; error?: string; }; /** * Get wallet storage path (for info purposes) */ export declare function getWalletStoragePath(): string; /** * Clear wallet from memory (for logout/security) */ export declare function clearWalletFromMemory(): void; //# sourceMappingURL=manager.d.ts.map