import { OCTET_STRING, ASN1Element as _Element } from '@wildboar/asn1'; import * as $ from '@wildboar/asn1/functional'; import { DistinguishedName } from '@wildboar/cmip'; /** * @summary DomainIdentity * @description * * ### ASN.1 Definition: * * ```asn1 * DomainIdentity ::= CHOICE { * domainName DistinguishedName, * privateName OCTET STRING * } * ``` */ export type DomainIdentity = { domainName: DistinguishedName; } | { privateName: OCTET_STRING; }; /** * @summary Decodes an ASN.1 element into a(n) DomainIdentity * @function * @param {_Element} el The element being decoded. * @returns {DomainIdentity} The decoded data structure. */ export declare function _decode_DomainIdentity(el: _Element): DomainIdentity; /** * @summary Encodes a(n) DomainIdentity 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 DomainIdentity, encoded as an ASN.1 Element. */ export declare function _encode_DomainIdentity(value: DomainIdentity, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=DomainIdentity.ta.d.mts.map