UNPKG

@wildboar/copp

Version:

Connection-oriented presentation protocol (COPP) data structures and business logic in TypeScript

91 lines (90 loc) 3.09 kB
import { ASN1Element as _Element } from 'asn1-ts'; import * as $ from 'asn1-ts/dist/node/functional'; import { Mode_selector_mode_value } from '../ISO8823-PRESENTATION/Mode-selector-mode-value.ta'; export { Mode_selector_mode_value, Mode_selector_mode_value_x410_1984_mode, x410_1984_mode, Mode_selector_mode_value_normal_mode, normal_mode, _decode_Mode_selector_mode_value, _encode_Mode_selector_mode_value, } from '../ISO8823-PRESENTATION/Mode-selector-mode-value.ta'; /** * @summary Mode_selector * @description * * ### ASN.1 Definition: * * ```asn1 * Mode-selector ::= SET { * mode-value [0] IMPLICIT INTEGER {x410-1984-mode(0), normal-mode(1)} * } * ``` * * @class */ export declare class Mode_selector { /** * @summary `mode_value`. * @public * @readonly */ readonly mode_value: Mode_selector_mode_value; constructor( /** * @summary `mode_value`. * @public * @readonly */ mode_value: Mode_selector_mode_value); /** * @summary Restructures an object into a Mode_selector * @description * * This takes an `object` and converts it to a `Mode_selector`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `Mode_selector`. * @returns {Mode_selector} */ static _from_object(_o: { [_K in keyof Mode_selector]: Mode_selector[_K]; }): Mode_selector; } /** * @summary The Leading Root Component Types of Mode_selector * @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_Mode_selector: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of Mode_selector * @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_Mode_selector: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of Mode_selector * @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_Mode_selector: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) Mode_selector * @function * @param {_Element} el The element being decoded. * @returns {Mode_selector} The decoded data structure. */ export declare function _decode_Mode_selector(el: _Element): Mode_selector; /** * @summary Encodes a(n) Mode_selector into an ASN.1 Element. * @function * @param {value} el The element being decoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The Mode_selector, encoded as an ASN.1 Element. */ export declare function _encode_Mode_selector(value: Mode_selector, elGetter: $.ASN1Encoder<Mode_selector>): _Element;