import { EncryptArgs, EncryptResult, DecryptArgs, DecryptResult } from './types.mjs'; /** * Encrypts given `dataToEncrypt` using the secret and other * given algorithm parameters. * * NOTE: These parameters must be the same when the call to `decrypt` happens! * * @see {@link DecryptArgs} * @see {@link DecryptResult} * * @returns `EncryptResult` info object with either `dataToEncrypt` or a populated `errors` array. */ export declare function encrypt(args: EncryptArgs): Promise; /** * Decrypts given `encryptedData` using the secret and other * given algorithm parameters. * * NOTE: These parameters must be the same as what the `encrypt` call used! * * @see {@link DecryptArgs} * @see {@link DecryptResult} * * @returns `DecryptResult` info object with either `decryptedData` or a populated `errors` array. */ export declare function decrypt(args: DecryptArgs): Promise; //# sourceMappingURL=encrypt-decrypt.d.mts.map