/** * JWE General JSON Serialization encryption (RFC 7516 ยง7.2). * * One ciphertext, many recipients. Direct Key Agreement (ECDH-ES) * permits exactly one recipient; key-wrap algs (ECDH-ES+A256KW, when * added) mix freely. */ import { type JweGeneralJson, type Recipient } from './types'; export declare function encrypt({ plaintext, recipients, enc, aad, protectedHeaderExtra, apu, apv, }: { plaintext: Uint8Array; recipients: Recipient[]; enc?: string; aad?: Uint8Array; protectedHeaderExtra?: Record; apu?: Uint8Array; apv?: Uint8Array; }): JweGeneralJson; /** RFC 8785 JCS-style canonical JSON for the protected header. */ declare function canonicalJson(value: unknown): string; export { canonicalJson as canonicalJsonForTest };