import { Base64 } from "../Base64"; import { Hash } from "../Signer/Hash"; export declare class Rsa { readonly type: "public" | "private"; readonly raw: CryptoKey; readonly parameters: Rsa.Parameters; private constructor(); export(format: "jwk"): Promise; export(format: "buffer"): Promise; export(format?: "pem"): Promise; export(format?: "base64"): Promise; export(format: "jwk" | "buffer" | "base64" | "pem"): Promise; static import(type: "private" | "public", key: ArrayBuffer | Base64 | undefined, variant?: Rsa.Variant, hash?: Hash): Promise; static generate(length: 1024 | 2048 | 4096, variant?: Rsa.Variant, hash?: Hash): Promise; } export declare namespace Rsa { type Pair = { private: Rsa; public: Rsa; }; namespace Pair { function load(publicKey: Base64 | ArrayBuffer, privateKey: Base64 | ArrayBuffer): Promise>; } type Variant = "SSA" | "PSS"; type Parameters = { name: "RSASSA-PKCS1-v1_5" | "RSA-OAEP"; } | { name: "RSA-PSS"; saltLength: 128; }; }