/** * The EDV-over-WAS scheme version: the version of the envelope wire format * this package's cipher writes, as registered in the WAS spec's Encryption * Scheme Registry (a positive integer with a total order, not a semantic * version; an absent `version` on a descriptor means `1`). This is the ONLY * place the number is declared: the collection `encryption` descriptor PUTs * stamp it, and the cipher binds the same constant into every envelope's * AEAD-protected `was.v` header parameter, so the descriptor and the envelopes * can never disagree. */ export declare const EDV_SCHEME_VERSION = 1; /** * The content type used by default: plain JSON, which an unmodified WAS server * accepts. The stored envelope is still self-identifying by its `jwe` field. */ export declare const DEFAULT_CONTENT_TYPE = "application/json"; /** * The preferred content type marking a stored EDV-encrypted document: the JWE * JSON Serialization media type (`application/jose+json`, RFC 7516), which is * the wire format the WAS spec's Encryption Scheme Registry maps the `edv` * scheme to. The stored envelope's `jwe` property carries the ciphertext. * Requires the server to register an `application/*+json` content-type parser; * otherwise use the default `application/json` (see `WasTransport`'s * `contentType` option). */ export declare const JOSE_CONTENT_TYPE = "application/jose+json"; /** * Serializes an encrypted envelope to its wire bytes -- the single source of * the envelope encoding shared by `EdvCodec` and `WasTransport`. * * @param envelope {object} the encrypted EDV document envelope * @returns {Uint8Array} */ export declare function envelopeBytes(envelope: object): Uint8Array; //# sourceMappingURL=constants.d.ts.map