import { ASN1Element as _Element } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { KEKRecipientInfo } from "../CryptographicMessageSyntax-2010/KEKRecipientInfo.ta.mjs"; import { KeyAgreeRecipientInfo } from "../CryptographicMessageSyntax-2010/KeyAgreeRecipientInfo.ta.mjs"; import { KeyTransRecipientInfo } from "../CryptographicMessageSyntax-2010/KeyTransRecipientInfo.ta.mjs"; import { OtherRecipientInfo } from "../CryptographicMessageSyntax-2010/OtherRecipientInfo.ta.mjs"; import { PasswordRecipientInfo } from "../CryptographicMessageSyntax-2010/PasswordRecipientInfo.ta.mjs"; /** * @summary RecipientInfo * @description * * ### ASN.1 Definition: * * ```asn1 * RecipientInfo ::= CHOICE { * ktri KeyTransRecipientInfo, * ..., * [[3: kari [1] KeyAgreeRecipientInfo ]], * [[4: kekri [2] KEKRecipientInfo]], * [[5: pwri [3] PasswordRecipientInfo, * ori [4] OtherRecipientInfo ]] } * ``` */ export type RecipientInfo = { ktri: KeyTransRecipientInfo; } | { kari: KeyAgreeRecipientInfo; } | { kekri: KEKRecipientInfo; } | { pwri: PasswordRecipientInfo; } | { ori: OtherRecipientInfo; } | _Element; /** * @summary Decodes an ASN.1 element into a(n) RecipientInfo * @function * @param {_Element} el The element being decoded. * @returns {RecipientInfo} The decoded data structure. */ export declare function _decode_RecipientInfo(el: _Element): RecipientInfo; /** * @summary Encodes a(n) RecipientInfo into an ASN.1 Element. * @function * @param value The element being encoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The RecipientInfo, encoded as an ASN.1 Element. */ export declare function _encode_RecipientInfo(value: RecipientInfo, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=RecipientInfo.ta.d.mts.map