import { OPTIONAL, ASN1Element as _Element } from '@wildboar/asn1'; import * as $ from '@wildboar/asn1/functional'; import { ObjectClass } from '@wildboar/cmip'; import { ObjectInstance } from '@wildboar/cmip'; import { ErrorId } from '../Schedulerev1-ASN1Module/ErrorId.ta.mjs'; /** * @summary CommonError * @description * * ### ASN.1 Definition: * * ```asn1 * CommonError ::= SEQUENCE { * managedObjectClass ObjectClass, * managedObjectInstance ObjectInstance, * errorId SCHED-ERROR.&id({CommonErrorSet}), * errorValue * SCHED-ERROR.&Value({CommonErrorSet}{@.errorId}) OPTIONAL * } * ``` * */ export declare class CommonError { /** * @summary `managedObjectClass`. * @public * @readonly */ readonly managedObjectClass: ObjectClass; /** * @summary `managedObjectInstance`. * @public * @readonly */ readonly managedObjectInstance: ObjectInstance; /** * @summary `errorId`. * @public * @readonly */ readonly errorId: ErrorId; /** * @summary `errorValue`. * @public * @readonly */ readonly errorValue?: OPTIONAL<_Element>; constructor( /** * @summary `managedObjectClass`. * @public * @readonly */ managedObjectClass: ObjectClass, /** * @summary `managedObjectInstance`. * @public * @readonly */ managedObjectInstance: ObjectInstance, /** * @summary `errorId`. * @public * @readonly */ errorId: ErrorId, /** * @summary `errorValue`. * @public * @readonly */ errorValue?: OPTIONAL<_Element>); /** * @summary Restructures an object into a CommonError * @description * * This takes an `object` and converts it to a `CommonError`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `CommonError`. * @returns {CommonError} */ static _from_object(_o: { [_K in keyof CommonError]: CommonError[_K]; }): CommonError; } /** * @summary The Leading Root Component Types of CommonError * @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_CommonError: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of CommonError * @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_CommonError: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of CommonError * @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_CommonError: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) CommonError * @function * @param {_Element} el The element being decoded. * @returns {CommonError} The decoded data structure. */ export declare function _decode_CommonError(el: _Element): CommonError; /** * @summary Encodes a(n) CommonError 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 CommonError, encoded as an ASN.1 Element. */ export declare function _encode_CommonError(value: CommonError, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=CommonError.ta.d.mts.map