import './shim'; export interface PCKS12KeyPair { publicKey: string; privateKey: string; certificate: string; } export interface KeyPair { publicKey: string; privateKey: string; } export declare enum Hash { MD5 = 0, SHA1 = 1, SHA224 = 2, SHA256 = 3, SHA384 = 4, SHA512 = 5 } export declare enum PEMCipher { DES = 0, D3DES = 1, AES128 = 2, AES192 = 3, AES256 = 4 } export declare enum SaltLength { AUTO = 0, EQUALS_HASH = 1 } export default class RSA { static useJSI: boolean; static convertJWKToPrivateKey(data: any, keyId: string): Promise; static convertJWKToPublicKey(data: any, keyId: string): Promise; static convertKeyPairToPKCS12(privateKey: string, certificate: string, password: string): Promise; static convertPKCS12ToKeyPair(pkcs12: string, password: string): Promise; static convertPrivateKeyToPKCS8(privateKey: string): Promise; static convertPrivateKeyToPKCS1(privateKey: string): Promise; static convertPrivateKeyToJWK(privateKey: string): Promise; static convertPrivateKeyToPublicKey(privateKey: string): Promise; static convertPublicKeyToPKIX(publicKey: string): Promise; static convertPublicKeyToPKCS1(publicKey: string): Promise; static convertPublicKeyToJWK(publicKey: string): Promise; static decryptPrivateKey(privateKeyEncrypted: string, password: string): Promise; static encryptPrivateKey(privateKey: string, password: string, cipherName: PEMCipher): Promise; static decryptOAEP(message: string, label: string, hashName: Hash, privateKey: string): Promise; static decryptOAEPBytes(message: Uint8Array, label: string, hashName: Hash, privateKey: string): Promise; static decryptPKCS1v15(message: string, privateKey: string): Promise; static decryptPKCS1v15Bytes(message: Uint8Array, privateKey: string): Promise; static encryptOAEP(message: string, label: string, hashName: Hash, publicKey: string): Promise; static encryptOAEPBytes(message: Uint8Array, label: string, hashName: Hash, publicKey: string): Promise; static encryptPKCS1v15(message: string, publicKey: string): Promise; static encryptPKCS1v15Bytes(message: Uint8Array, publicKey: string): Promise; static signPSS(message: string, hashName: Hash, saltLengthName: SaltLength, privateKey: string): Promise; static signPSSBytes(message: Uint8Array, hashName: Hash, saltLengthName: SaltLength, privateKey: string): Promise; static signPKCS1v15(message: string, hashName: Hash, privateKey: string): Promise; static signPKCS1v15Bytes(message: Uint8Array, hashName: Hash, privateKey: string): Promise; static verifyPSS(signature: string, message: string, hashName: Hash, saltLengthName: SaltLength, publicKey: string): Promise; static verifyPSSBytes(signature: Uint8Array, message: Uint8Array, hashName: Hash, saltLengthName: SaltLength, publicKey: string): Promise; static verifyPKCS1v15(signature: string, message: string, hashName: Hash, publicKey: string): Promise; static verifyPKCS1v15Bytes(signature: Uint8Array, message: Uint8Array, hashName: Hash, publicKey: string): Promise; static hash(message: string, name: Hash): Promise; static base64(message: string): Promise; static generate(bits: number): Promise; private static call; private static _bytesResponse; private static _stringResponse; private static _boolResponse; private static _keyPairResponse; private static _pkcs12KeyPairResponse; } //# sourceMappingURL=index.d.ts.map