import { webcrypto } from 'node:crypto'; import { Cipher } from '../Cipher.js'; type NodeCryptoKey = webcrypto.CryptoKey; export declare class RSA extends Cipher { private publicKey?; private privateKey?; constructor(publicKey?: NodeCryptoKey, privateKey?: NodeCryptoKey); static generate(modulusLength?: 2048 | 4096): Promise; encrypt(plaintext: string): Promise; decrypt(ciphertext: string): Promise; exportPublicKey(): Promise; exportPrivateKey(): Promise; static importPublicKey(hex: string): Promise; } export {};