import KeyPair from "../Types/Keypair"; /** * Generates a new keypair * @param {number} bits * @param {number} workers * @returns {Promise} */ export declare const createKeyPair: (bits?: number, workers?: number) => Promise; /** * @param {KeyPair} keypair * @returns {Promise<{publicKey: any; privateKey: any}>} */ export declare const keyPairToPem: (keypair: KeyPair) => Promise<{ publicKey: any; privateKey: any; }>; /** * @param {string} publicKey * @returns {Promise} */ export declare const publicKeyToPem: (publicKey: any) => Promise; /** * @param {string} privateKey * @returns {Promise} */ export declare const privateKeyToPem: (privateKey: any) => Promise; /** * @param {string} publicKeyPem * @returns {Promise} */ export declare const publicKeyFromPem: (publicKeyPem: string) => Promise; /** * @param {string} privateKeyPem * @returns {Promise} */ export declare const privateKeyFromPem: (privateKeyPem: string) => Promise;