import { ASN1Element as _Element } from '@wildboar/asn1'; import * as $ from '@wildboar/asn1/functional'; import { TimeDifference_sign, _enum_for_TimeDifference_sign } from '../TimeRepresentation/TimeDifference-sign.ta.mjs'; import { Epochs } from '../TimeRepresentation/Epochs.ta.mjs'; import { Seconds } from '../TimeRepresentation/Seconds.ta.mjs'; import { Nanoseconds } from '../TimeRepresentation/Nanoseconds.ta.mjs'; import { MaximumErrorInNanoseconds } from '../TimeRepresentation/MaximumErrorInNanoseconds.ta.mjs'; /** * @summary TimeDifference * @description * * ### ASN.1 Definition: * * ```asn1 * TimeDifference ::= SEQUENCE { * sign ENUMERATED {positive(0), negative(1)}, * epochs Epochs, * seconds Seconds, * nanoseconds Nanoseconds, * maximumError MaximumErrorInNanoseconds * } * ``` * */ export declare class TimeDifference { /** * @summary `sign`. * @public * @readonly */ readonly sign: TimeDifference_sign; /** * @summary `epochs`. * @public * @readonly */ readonly epochs: Epochs; /** * @summary `seconds`. * @public * @readonly */ readonly seconds: Seconds; /** * @summary `nanoseconds`. * @public * @readonly */ readonly nanoseconds: Nanoseconds; /** * @summary `maximumError`. * @public * @readonly */ readonly maximumError: MaximumErrorInNanoseconds; constructor( /** * @summary `sign`. * @public * @readonly */ sign: TimeDifference_sign, /** * @summary `epochs`. * @public * @readonly */ epochs: Epochs, /** * @summary `seconds`. * @public * @readonly */ seconds: Seconds, /** * @summary `nanoseconds`. * @public * @readonly */ nanoseconds: Nanoseconds, /** * @summary `maximumError`. * @public * @readonly */ maximumError: MaximumErrorInNanoseconds); /** * @summary Restructures an object into a TimeDifference * @description * * This takes an `object` and converts it to a `TimeDifference`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `TimeDifference`. * @returns {TimeDifference} */ static _from_object(_o: { [_K in keyof TimeDifference]: TimeDifference[_K]; }): TimeDifference; /** * @summary The enum used as the type of the component `sign` * @public * @static */ static _enum_for_sign: typeof _enum_for_TimeDifference_sign; } /** * @summary The Leading Root Component Types of TimeDifference * @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_TimeDifference: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of TimeDifference * @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_TimeDifference: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of TimeDifference * @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_TimeDifference: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) TimeDifference * @function * @param {_Element} el The element being decoded. * @returns {TimeDifference} The decoded data structure. */ export declare function _decode_TimeDifference(el: _Element): TimeDifference; /** * @summary Encodes a(n) TimeDifference 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 TimeDifference, encoded as an ASN.1 Element. */ export declare function _encode_TimeDifference(value: TimeDifference, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=TimeDifference.ta.d.mts.map