import { OCTET_STRING, ASN1Element as _Element } from '@wildboar/asn1'; import * as $ from '@wildboar/asn1/functional'; import { DistinguishedName } from '../CMIP-1/DistinguishedName.ta.mjs'; import { RDNSequence } from '../CMIP-1/RDNSequence.ta.mjs'; /** * @summary ObjectInstance * @description * * ### ASN.1 Definition: * * ```asn1 * ObjectInstance ::= CHOICE { * distinguishedName [2] IMPLICIT DistinguishedName, * nonSpecificForm [3] IMPLICIT OCTET STRING, * localDistinguishedName [4] IMPLICIT RDNSequence * } * ``` */ export type ObjectInstance = { distinguishedName: DistinguishedName; } | { nonSpecificForm: OCTET_STRING; } | { localDistinguishedName: RDNSequence; }; /** * @summary Decodes an ASN.1 element into a(n) ObjectInstance * @function * @param {_Element} el The element being decoded. * @returns {ObjectInstance} The decoded data structure. */ export declare function _decode_ObjectInstance(el: _Element): ObjectInstance; /** * @summary Encodes a(n) ObjectInstance 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 ObjectInstance, encoded as an ASN.1 Element. */ export declare function _encode_ObjectInstance(value: ObjectInstance, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=ObjectInstance.ta.d.mts.map