import { ASN1Element as _Element } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { TargetCert } from "../AttributeCertificateDefinitions/TargetCert.ta.mjs"; import { GeneralName } from "../CertificateExtensions/GeneralName.ta.mjs"; /** * @summary Target * @description * * ### ASN.1 Definition: * * ```asn1 * Target ::= CHOICE { * targetName [0] GeneralName, * targetGroup [1] GeneralName, * targetCert [2] TargetCert, * ... } * ``` */ export type Target = { targetName: GeneralName; } | { targetGroup: GeneralName; } | { targetCert: TargetCert; } | _Element; /** * @summary Decodes an ASN.1 element into a(n) Target * @function * @param {_Element} el The element being decoded. * @returns {Target} The decoded data structure. */ export declare function _decode_Target(el: _Element): Target; /** * @summary Encodes a(n) Target 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 Target, encoded as an ASN.1 Element. */ export declare function _encode_Target(value: Target, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=Target.ta.d.mts.map