import { default as cryptoJs } from 'crypto-js'; type WordArray = cryptoJs.lib.WordArray; type CipherParams = cryptoJs.lib.CipherParams; type StringOrWordArray = string | WordArray; /** * @name encrypt * @description Encrypts a text using a key * @param text {string} - Text to encrypt * @param key {string} - Key to encrypt the text * @returns {string} - Encrypted text in base64 * @example * ```javascript * console.info(encrypt('Hello World', 'key')) // 'W1tYXV0aF1d' * ``` */ export declare function encrypt(value: StringOrWordArray, key: StringOrWordArray): string; /** * @name decrypt * @description Decrypts an encrypted text * @param encryptedText {string | CipherParams} - Encrypted text to decrypt * @param key {string} - Key to decrypt the text * @returns string - Decrypted text * @example * ```javascript * const encryptedText = encrypt('Hello World', 'key') * console.info(encryptedText) // 'W1tYXV0aF1d' * console.info(decrypt(encryptedText, 'key')) // 'Hello World' * ``` */ export declare const decrypt: (encryptedText: CipherParams | string, key: StringOrWordArray) => string; export {}; //# sourceMappingURL=encryption.d.ts.map