import { Base64 } from "../Base64"; import { Key } from "../Key"; import { Base } from "./Base"; import { Hash } from "./Hash"; export declare class Rsa extends Base { private readonly keys; private constructor(); protected signBinary(data: Uint8Array): Promise; protected verifyBinary(data: Uint8Array, signature: Uint8Array): Promise; export(type: "private" | "public", format: "jwk"): Promise; export(type: "private" | "public", format: "buffer"): Promise; export(type: "private" | "public", format?: "pem"): Promise; export(type: "private" | "public", format?: "base64"): Promise; static import(variant: Key.Rsa.Variant, hash: Hash, publicKey: Uint8Array | Base64 | undefined, privateKey?: Uint8Array | Base64): Rsa; static generate(variant: Key.Rsa.Variant, hash: Hash, length: 1024 | 2048 | 4096): Rsa; }