/**
 * Fetches and caches the encryption key from the fullnode API.
 * The key is per-epoch; cache by epoch and refresh when epoch changes.
 */
import { AptosConfig } from "../api/aptosConfig.js";
import { EncryptionKey } from "../core/crypto/encryption/index.js";
/**
 * Fetches the encryption key from the fullnode index endpoint, deserializes it,
 * and caches it by fullnode URL (or network label) + epoch. Returns null if the node does not support
 * encrypted transactions.
 *
 * @param args.aptosConfig - Aptos configuration.
 */
export declare function fetchAndCacheEncryptionKey(args: {
    aptosConfig: AptosConfig;
}): Promise<{
    key: EncryptionKey;
    epoch: bigint;
} | null>;
//# sourceMappingURL=encryptionKey.d.ts.map