import { type Encrypted, type PreEncryptOpts } from "./helpers.js"; /** * Encrypts a message with ECIES. * @param publicKeyTo Recipient public key bytes. * @param msg Plaintext bytes. * @param opts Optional encryption overrides. * @returns Encrypted payload. */ export declare function encrypt(publicKeyTo: Uint8Array, msg: Uint8Array, opts?: Partial): Promise; /** * Decrypts an ECIES payload. * @param privateKey Recipient private key bytes. * @param opts Encrypted payload. * @returns Decrypted plaintext bytes. */ export declare function decrypt(privateKey: Uint8Array, opts: Encrypted): Promise; /** * Encrypts a message with ECIES using sync primitives. * @param publicKeyTo Recipient public key bytes. * @param msg Plaintext bytes. * @param opts Optional encryption overrides. * @returns Encrypted payload. */ export declare function encryptSync(publicKeyTo: Uint8Array, msg: Uint8Array, opts?: Partial): Encrypted; /** * Decrypts an ECIES payload using sync primitives. * @param privateKey Recipient private key bytes. * @param opts Encrypted payload. * @returns Decrypted plaintext bytes. */ export declare function decryptSync(privateKey: Uint8Array, opts: Encrypted): Uint8Array; /** * Serializes an encrypted payload into a single byte array. * @param opts Encrypted payload. * @returns Serialized payload bytes. */ export declare function serialize(opts: Encrypted): Uint8Array; /** * Deserializes a byte array into an encrypted payload object. * @param buf Serialized payload bytes. * @returns Encrypted payload. */ export declare function deserialize(buf: Uint8Array): Encrypted; //# sourceMappingURL=ecies.d.ts.map