/** * Secure HD wallet key storage using IndexedDB + WebCrypto AES-GCM. * * Stores encrypted mnemonic phrases. All derived keys are re-derived on unlock. * Plaintext metadata (xpub, peerId) is stored for quick identity lookups * without decryption. */ export interface WalletMetadata { id: string; account: number; xpub: string; peerId: string; method: 'pin' | 'passkey' | 'password'; createdAt: number; } export declare class HDKeyStore { private db; /** * Open the key store database. */ static open(dbName?: string): Promise; /** * Store an encrypted mnemonic. * Returns the wallet ID. */ store(mnemonic: string, pin: string, account: number, xpub: string, peerId: string, method?: 'pin' | 'passkey' | 'password'): Promise; /** * Retrieve and decrypt a mnemonic. */ retrieve(id: string, pin: string): Promise; /** * Check if any stored wallet exists. */ hasStored(): Promise; /** * List all stored wallet metadata (without decryption). */ listMetadata(): Promise; /** * Get metadata for a specific wallet without decryption. */ getMetadata(id: string): Promise; /** * Delete a stored wallet. */ delete(id: string): Promise; /** * Close the database. */ close(): Promise; } //# sourceMappingURL=key-store.d.ts.map