import { INTEGER, ASN1Element as _Element } from '@wildboar/asn1'; import * as $ from '@wildboar/asn1/functional'; /** * @summary TimePeriod * @description * * ### ASN.1 Definition: * * ```asn1 * TimePeriod ::= CHOICE { * days [0] INTEGER, * hours [1] INTEGER, * minutes [2] INTEGER, * seconds [3] INTEGER, * milliSeconds [4] INTEGER, * microSeconds [5] INTEGER, * nanoSeconds [6] INTEGER, * picoSeconds [7] INTEGER * } * ``` */ export type TimePeriod = { days: INTEGER; } | { hours: INTEGER; } | { minutes: INTEGER; } | { seconds: INTEGER; } | { milliSeconds: INTEGER; } | { microSeconds: INTEGER; } | { nanoSeconds: INTEGER; } | { picoSeconds: INTEGER; }; /** * @summary Decodes an ASN.1 element into a(n) TimePeriod * @function * @param {_Element} el The element being decoded. * @returns {TimePeriod} The decoded data structure. */ export declare function _decode_TimePeriod(el: _Element): TimePeriod; /** * @summary Encodes a(n) TimePeriod 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 TimePeriod, encoded as an ASN.1 Element. */ export declare function _encode_TimePeriod(value: TimePeriod, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=TimePeriod.ta.d.mts.map