/** * In-memory key store implementation. */ import type { KeyPair, KeyStore } from "../core/types.js"; /** * In-memory key store. * * Keys are stored in memory and lost when the process exits. * Useful for testing, development, and temporary key storage. * * @example * ```typescript * // Empty keystore * const keyStore = new InMemoryKeyStore() * * // Pre-populate with keys * const keyStore = new InMemoryKeyStore({ * "alice.near": "ed25519:...", * "bob.near": "ed25519:..." * }) * ``` */ export declare class InMemoryKeyStore implements KeyStore { private keys; /** * Create a new in-memory keystore. * * @param initialKeys - Optional initial keys to populate the store * * @example * ```typescript * const keyStore = new InMemoryKeyStore({ * "test.near": "ed25519:3D4c2v8K5x..." * }) * ``` */ constructor(initialKeys?: Record); /** * Add a key to the keystore * * @param accountId - NEAR account ID * @param key - Key pair to store */ add(accountId: string, key: KeyPair): Promise; /** * Get a key from the keystore * * @param accountId - NEAR account ID * @returns Key pair if found, null otherwise */ get(accountId: string): Promise; /** * Remove a key from the keystore * * @param accountId - NEAR account ID */ remove(accountId: string): Promise; /** * List all account IDs in the keystore * * @returns Array of account IDs */ list(): Promise; /** * Clear all keys from the keystore * * Useful for testing cleanup. */ clear(): void; } //# sourceMappingURL=in-memory-keystore.d.ts.map