UNPKG

@wildboar/copp

Version:

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

117 lines (116 loc) 4.24 kB
import { ASN1Element as _Element } from 'asn1-ts'; import * as $ from 'asn1-ts/dist/node/functional'; import { Presentation_context_identifier } from '../ISO8823-PRESENTATION/Presentation-context-identifier.ta'; export { Presentation_context_identifier, _decode_Presentation_context_identifier, _encode_Presentation_context_identifier, } from '../ISO8823-PRESENTATION/Presentation-context-identifier.ta'; import { Abstract_syntax_name } from '../ISO8823-PRESENTATION/Abstract-syntax-name.ta'; export { Abstract_syntax_name, _decode_Abstract_syntax_name, _encode_Abstract_syntax_name, } from '../ISO8823-PRESENTATION/Abstract-syntax-name.ta'; import { Transfer_syntax_name } from '../ISO8823-PRESENTATION/Transfer-syntax-name.ta'; export { Transfer_syntax_name, _decode_Transfer_syntax_name, _encode_Transfer_syntax_name, } from '../ISO8823-PRESENTATION/Transfer-syntax-name.ta'; /** * @summary Context_list_Item * @description * * ### ASN.1 Definition: * * ```asn1 * Context-list-Item ::= SEQUENCE { -- REMOVED_FROM_UNNESTING -- } * ``` * * @class */ export declare class Context_list_Item { /** * @summary `presentation_context_identifier`. * @public * @readonly */ readonly presentation_context_identifier: Presentation_context_identifier; /** * @summary `abstract_syntax_name`. * @public * @readonly */ readonly abstract_syntax_name: Abstract_syntax_name; /** * @summary `transfer_syntax_name_list`. * @public * @readonly */ readonly transfer_syntax_name_list: Transfer_syntax_name[]; constructor( /** * @summary `presentation_context_identifier`. * @public * @readonly */ presentation_context_identifier: Presentation_context_identifier, /** * @summary `abstract_syntax_name`. * @public * @readonly */ abstract_syntax_name: Abstract_syntax_name, /** * @summary `transfer_syntax_name_list`. * @public * @readonly */ transfer_syntax_name_list: Transfer_syntax_name[]); /** * @summary Restructures an object into a Context_list_Item * @description * * This takes an `object` and converts it to a `Context_list_Item`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `Context_list_Item`. * @returns {Context_list_Item} */ static _from_object(_o: { [_K in keyof Context_list_Item]: Context_list_Item[_K]; }): Context_list_Item; } /** * @summary The Leading Root Component Types of Context_list_Item * @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_Context_list_Item: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of Context_list_Item * @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_Context_list_Item: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of Context_list_Item * @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_Context_list_Item: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) Context_list_Item * @function * @param {_Element} el The element being decoded. * @returns {Context_list_Item} The decoded data structure. */ export declare function _decode_Context_list_Item(el: _Element): Context_list_Item; /** * @summary Encodes a(n) Context_list_Item 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 Context_list_Item, encoded as an ASN.1 Element. */ export declare function _encode_Context_list_Item(value: Context_list_Item, elGetter: $.ASN1Encoder<Context_list_Item>): _Element;