import { INTEGER, NULL, ASN1Element as _Element } from '@wildboar/asn1'; import * as $ from '@wildboar/asn1/functional'; /** * @summary Timespec * @description * * ### ASN.1 Definition: * * ```asn1 * Timespec ::= CHOICE { * forever [22] NULL, * hours [23] INTEGER, * minutes [24] INTEGER, * seconds [25] INTEGER, * millisecs [26] INTEGER, * microsecs [27] INTEGER, * nanosecs [28] INTEGER * } * ``` */ export type Timespec = { forever: NULL; } | { hours: INTEGER; } | { minutes: INTEGER; } | { seconds: INTEGER; } | { millisecs: INTEGER; } | { microsecs: INTEGER; } | { nanosecs: INTEGER; }; /** * @summary Decodes an ASN.1 element into a(n) Timespec * @function * @param {_Element} el The element being decoded. * @returns {Timespec} The decoded data structure. */ export declare function _decode_Timespec(el: _Element): Timespec; /** * @summary Encodes a(n) Timespec 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 Timespec, encoded as an ASN.1 Element. */ export declare function _encode_Timespec(value: Timespec, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=Timespec.ta.d.mts.map