import { Field, Group } from './core.js'; import { PrivateKey, PublicKey } from './signature.js'; export { encrypt, decrypt }; type CipherText = { publicKey: Group; cipherText: Field[]; }; /** * Public Key Encryption, using a given array of {@link Field} elements and encrypts it using a {@link PublicKey}. */ declare function encrypt(message: Field[], otherPublicKey: PublicKey): { publicKey: import("./group.js").Group; cipherText: import("./field.js").Field[]; }; /** * Decrypts a {@link CipherText} using a {@link PrivateKey}.^ */ declare function decrypt({ publicKey, cipherText }: CipherText, privateKey: PrivateKey): import("./field.js").Field[];