import { OCTET_STRING, ASN1Element as _Element } from '@wildboar/asn1'; import * as $ from '@wildboar/asn1/functional'; import { ClockAddress_ip } from '../TimeMF/ClockAddress-ip.ta.mjs'; /** * @summary ClockAddress * @description * * ### ASN.1 Definition: * * ```asn1 * ClockAddress ::= CHOICE { * isoNsap [1] OCTET STRING(SIZE (0 | 3..20)), * ip [2] SEQUENCE {host OCTET STRING(SIZE (4)), * port INTEGER(0..65536)} * } * ``` */ export type ClockAddress = { isoNsap: OCTET_STRING; } | { ip: ClockAddress_ip; }; /** * @summary Decodes an ASN.1 element into a(n) ClockAddress * @function * @param {_Element} el The element being decoded. * @returns {ClockAddress} The decoded data structure. */ export declare function _decode_ClockAddress(el: _Element): ClockAddress; /** * @summary Encodes a(n) ClockAddress 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 ClockAddress, encoded as an ASN.1 Element. */ export declare function _encode_ClockAddress(value: ClockAddress, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=ClockAddress.ta.d.mts.map