import { IEncryptModel, IKeystoreModel, IKeypairsModel } from "../types"; export declare const isEmptyPlainObject: (obj: any) => boolean; /** * decrypt wallet with password * * @param {string} password * @param {IKeystoreModel} encryptData * @returns {(string)} return secret if success, otherwise throws `keystore is invalid` if the keystore is invalid or * throws `password is wrong` if the password is wrong */ declare const decrypt: (password: string, encryptData: IKeystoreModel) => Promise; /** * encrypt data with password * * @param {string} password * @param {string} data * @param {IEncryptModel} [opts={}] * @returns {IKeystoreModel} */ declare const encrypt: (password: string, data: string, opts: IEncryptModel) => Promise; declare const encryptContact: (password: string, contacts: any, opts?: IEncryptModel) => Promise; declare const encryptWallet: (password: string, keypairs: IKeypairsModel, opts?: IEncryptModel) => Promise; export { decrypt, encrypt, encryptContact, encryptWallet };