import C from 'node:crypto'; import { BaseCryptoAlgorithm } from './base.algorithm'; interface IO { inputEncoding?: { key: C.Encoding; message: C.Encoding; }; outputEncoding?: C.Encoding; doThrow?: boolean; } export type RSAAlgorithmType = 'rsa'; export declare class RSA extends BaseCryptoAlgorithm { constructor(opts: { algorithm: RSAAlgorithmType; }); static withAlgorithm(): RSA; generateDERKeyPair(opts?: { modulus: number; }): { publicKey: NonSharedBuffer; privateKey: NonSharedBuffer; }; encrypt(message: string, pubKey: string, opts?: IO): string; decrypt(message: string, privKey: string, opts?: IO): string; } export {}; //# sourceMappingURL=rsa.algorithm.d.ts.map