import { ASN1Element as _Element } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { EncryptedRecipientID } from "../CMSCKMKeyManagement/EncryptedRecipientID.ta.mjs"; import { KeyConstructionLabels } from "../CMSCKMKeyManagement/KeyConstructionLabels.ta.mjs"; /** * @summary KeyConstructionRecipient * @description * * ### ASN.1 Definition: * * ```asn1 * KeyConstructionRecipient ::= CHOICE { * unencrypted [0] KeyConstructionLabels, * encrypted [1] EncryptedRecipientID * } * ``` */ export type KeyConstructionRecipient = { unencrypted: KeyConstructionLabels; } | { encrypted: EncryptedRecipientID; }; /** * @summary Decodes an ASN.1 element into a(n) KeyConstructionRecipient * @function * @param {_Element} el The element being decoded. * @returns {KeyConstructionRecipient} The decoded data structure. */ export declare function _decode_KeyConstructionRecipient(el: _Element): KeyConstructionRecipient; /** * @summary Encodes a(n) KeyConstructionRecipient 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 KeyConstructionRecipient, encoded as an ASN.1 Element. */ export declare function _encode_KeyConstructionRecipient(value: KeyConstructionRecipient, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=KeyConstructionRecipient.ta.d.mts.map