/** * The version of the symmetric cipher. * Must fit into 1 byte, so 255 is the maximum allowed enum value. */ export declare const SymmetricCipherVersion: { readonly UnusedReservedUnauthenticated: 0; readonly AesCbcThenHmac: 1; readonly AeadWithGroupKey: 2; readonly AeadWithSessionKey: 3; }; export type SymmetricCipherVersion = (typeof SymmetricCipherVersion)[keyof typeof SymmetricCipherVersion]; export type SymmetricAesCipherVersion = typeof SymmetricCipherVersion.UnusedReservedUnauthenticated | typeof SymmetricCipherVersion.AesCbcThenHmac; export type SymmetricAeadCipherVersion = typeof SymmetricCipherVersion.AeadWithGroupKey | typeof SymmetricCipherVersion.AeadWithSessionKey; /** * Get the SymmetricCipherVersion from either the version byte or the full ciphertext */ export declare function getSymmetricCipherVersion(ciphertext: Uint8Array): SymmetricCipherVersion; /** * Get a byte array of length 1 that holds the provided version byte. */ export declare function symmetricCipherVersionToUint8Array(version: SymmetricCipherVersion): Uint8Array;