import rsaKey from 'jsrsasign';
export declare class EncryptBase {
  static encryption(key: string, value: string): string;
  static decrypt(key: string, value: 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 md5Encode(val: string): string;
  static getEncryptedChainKeys(
    isNewUser: boolean,
    pwd?: string,
    code?: string,
  ): Promise<{ localToken: string; cloudFilePwd?: string }>;
}
