/** * Encrypt message for given recipient's public key. * * @param publicKeyTo Recipient's public key (65 bytes) * @param msg The message being encrypted * @return A promise that resolves with the ECIES structure serialized */ export declare function encrypt(publicKeyTo: Uint8Array, msg: Uint8Array): Promise; /** * Decrypt message using given private key. * * @param privateKey A 32-byte private key of recipient of the message * @param encrypted ECIES serialized structure (result of ECIES encryption) * @returns The clear text * @throws Error If decryption fails */ export declare function decrypt(privateKey: Uint8Array, encrypted: Uint8Array): Promise;