export declare const RSA_ALG = "RSASSA-PKCS1-v1_5"; export declare const DEFAULT_KEY_SIZE = 2048; export declare const DEFAULT_HASH_ALG = "SHA-256"; export declare const SALT_LEGNTH = 128; export declare const generateKeypair: (size?: number) => Promise; export declare const exportKey: (key: CryptoKey) => Promise; export declare const importKey: (key: Uint8Array) => Promise; export declare const sign: (msg: Uint8Array, privateKey: CryptoKey) => Promise; export declare const verify: (msg: Uint8Array, sig: Uint8Array, pubKey: Uint8Array) => Promise; export declare const convertRSAPublicKeyToSubjectPublicKeyInfo: (rsaPublicKey: Uint8Array) => Uint8Array; export declare const convertSubjectPublicKeyInfoToRSAPublicKey: (subjectPublicKeyInfo: Uint8Array) => Uint8Array; export declare function asn1DERLengthEncode(length: number): Uint8Array; export declare function asn1DERLengthDecode(bytes: Uint8Array): number;