import { ASN1Element as _Element, GeneralizedTime } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { TimeStampToken } from "../TrustedTimeStamp/TimeStampToken.ta.mjs"; /** * @summary TimeStamp * @description * * ### ASN.1 Definition: * * ```asn1 * TimeStamp ::= CHOICE { * timeStampToken TimeStampToken, * localTimeStamp GeneralizedTime, * ... -- Expect additional time types -- * } * ``` */ export type TimeStamp = { timeStampToken: TimeStampToken; } | { localTimeStamp: GeneralizedTime; } | _Element; /** * @summary Decodes an ASN.1 element into a(n) TimeStamp * @function * @param {_Element} el The element being decoded. * @returns {TimeStamp} The decoded data structure. */ export declare function _decode_TimeStamp(el: _Element): TimeStamp; /** * @summary Encodes a(n) TimeStamp 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 TimeStamp, encoded as an ASN.1 Element. */ export declare function _encode_TimeStamp(value: TimeStamp, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=TimeStamp.ta.d.mts.map