import { ASN1Element as _Element, GeneralizedTime, NULL } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { TimeAssertion_between } from "../SelectedAttributeTypes/TimeAssertion-between.ta.mjs"; /** * @summary TimeAssertion * @description * * ### ASN.1 Definition: * * ```asn1 * TimeAssertion ::= CHOICE { * now NULL, * at GeneralizedTime, * between SEQUENCE { * startTime [0] GeneralizedTime, * endTime [1] GeneralizedTime OPTIONAL, * entirely BOOLEAN DEFAULT FALSE, * ...}, * ... } * ``` */ export type TimeAssertion = { now: NULL; } | { at: GeneralizedTime; } | { between: TimeAssertion_between; } | _Element; /** * @summary Decodes an ASN.1 element into a(n) TimeAssertion * @function * @param {_Element} el The element being decoded. * @returns {TimeAssertion} The decoded data structure. */ export declare function _decode_TimeAssertion(el: _Element): TimeAssertion; /** * @summary Encodes a(n) TimeAssertion 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 TimeAssertion, encoded as an ASN.1 Element. */ export declare function _encode_TimeAssertion(value: TimeAssertion, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=TimeAssertion.ta.d.mts.map