import rsaKey from 'jsrsasign';
declare class EncryptBase {
    static encryption(key: string, value: string): string;
    static decrypt(key: string, hash: string): string;
    static privateEncryption(key: string, value: string): string;
    static privateDecrypt(key: string, hash: string): string;
    static generateRsaKey(): {
        privateKey: string;
        publicKey: string;
    };
    static sign(str: string, publicKey: string | rsaKey.RSAKey): string;
    static decryptSign(privateKey: string, sign: string): string;
    static encryptAES(text: string, key: string): Promise<string>;
    static decryptAES(encryptedText: string, key: string): Promise<string>;
    static md5Encode(val: string): string;
    static getEncryptedChainKeys(isNewUser: boolean, pwd?: string, code?: string): Promise<{
        localToken: string;
        cloudFilePwd: string | undefined;
    }>;
}
export { EncryptBase as default };
