import { ASN1Element as _Element, INTEGER, OPTIONAL } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { DayTimeBand } from "../SelectedAttributeTypes/DayTimeBand.ta.mjs"; import { Period_days } from "../SelectedAttributeTypes/Period-days.ta.mjs"; import { Period_months } from "../SelectedAttributeTypes/Period-months.ta.mjs"; import { Period_weeks } from "../SelectedAttributeTypes/Period-weeks.ta.mjs"; /** * @summary Period * @description * * ### ASN.1 Definition: * * ```asn1 * Period ::= SEQUENCE { * timesOfDay [0] SET SIZE (1..MAX) OF DayTimeBand OPTIONAL, * days [1] CHOICE { * intDay SET OF INTEGER, * bitDay BIT STRING { * sunday (0), * monday (1), * tuesday (2), * wednesday (3), * thursday (4), * friday (5), * saturday (6)}, * dayOf XDayOf, * ...} OPTIONAL, * weeks [2] CHOICE { * allWeeks NULL, * intWeek SET OF INTEGER, * bitWeek BIT STRING { * week1 (0), * week2 (1), * week3 (2), * week4 (3), * week5 (4)}, * ... } OPTIONAL, * months [3] CHOICE { * allMonths NULL, * intMonth SET OF INTEGER, * bitMonth BIT STRING { * january (0), * february (1), * march (2), * april (3), * may (4), * june (5), * july (6), * august (7), * september (8), * october (9), * november (10), * december (11)}, * ...} OPTIONAL, * years [4] SET OF INTEGER(1000..MAX) OPTIONAL, * ... } * ``` * */ export declare class Period { /** * @summary `timesOfDay`. * @public * @readonly */ readonly timesOfDay?: OPTIONAL; /** * @summary `days`. * @public * @readonly */ readonly days?: OPTIONAL; /** * @summary `weeks`. * @public * @readonly */ readonly weeks?: OPTIONAL; /** * @summary `months`. * @public * @readonly */ readonly months?: OPTIONAL; /** * @summary `years`. * @public * @readonly */ readonly years?: OPTIONAL; /** * @summary Extensions that are not recognized. * @public * @readonly */ readonly _unrecognizedExtensionsList: _Element[]; constructor( /** * @summary `timesOfDay`. * @public * @readonly */ timesOfDay?: OPTIONAL, /** * @summary `days`. * @public * @readonly */ days?: OPTIONAL, /** * @summary `weeks`. * @public * @readonly */ weeks?: OPTIONAL, /** * @summary `months`. * @public * @readonly */ months?: OPTIONAL, /** * @summary `years`. * @public * @readonly */ years?: OPTIONAL, /** * @summary Extensions that are not recognized. * @public * @readonly */ _unrecognizedExtensionsList?: _Element[]); /** * @summary Restructures an object into a Period * @description * * This takes an `object` and converts it to a `Period`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `Period`. * @returns {Period} */ static _from_object(_o: { [_K in keyof Period]: Period[_K]; }): Period; } /** * @summary The Leading Root Component Types of Period * @description * * This is an array of `ComponentSpec`s that define how to decode the leading root component type list of a SET or SEQUENCE. * * @constant */ export declare const _root_component_type_list_1_spec_for_Period: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of Period * @description * * This is an array of `ComponentSpec`s that define how to decode the trailing root component type list of a SET or SEQUENCE. * * @constant */ export declare const _root_component_type_list_2_spec_for_Period: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of Period * @description * * This is an array of `ComponentSpec`s that define how to decode the extension addition component type list of a SET or SEQUENCE. * * @constant */ export declare const _extension_additions_list_spec_for_Period: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) Period * @function * @param {_Element} el The element being decoded. * @returns {Period} The decoded data structure. */ export declare function _decode_Period(el: _Element): Period; /** * @summary Encodes a(n) Period 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 Period, encoded as an ASN.1 Element. */ export declare function _encode_Period(value: Period, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=Period.ta.d.mts.map