import { KeyStore, StoredKey } from '@nuwa-ai/identity-kit';
/**
 * IndexedDB implementation of KeyStore
 * Supports storing CryptoKey objects and direct signing
 */
export declare class IndexedDBKeyStore implements KeyStore {
    private readonly dbName;
    private readonly storeName;
    private db;
    constructor(options?: {
        dbName?: string;
        storeName?: string;
    });
    /**
     * Initialize the database connection
     */
    private initDB;
    /**
     * List all key IDs stored in this KeyStore
     */
    listKeyIds(): Promise<string[]>;
    /**
     * Load a key by ID, or all keys if no ID is provided
     */
    load(keyId?: string): Promise<StoredKey | null>;
    /**
     * Save a key to storage
     */
    save(key: StoredKey): Promise<void>;
    /**
     * Clear a key from storage, or all keys if no ID is provided
     */
    clear(keyId?: string): Promise<void>;
}
