@wildboar/copp
Version:
Connection-oriented presentation protocol (COPP) data structures and business logic in TypeScript
106 lines (105 loc) • 3.74 kB
TypeScript
import { ASN1Element as _Element } from 'asn1-ts';
import * as $ from 'asn1-ts/dist/node/functional';
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 Default_context_name
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* Default-context-name ::= SEQUENCE {
* abstract-syntax-name [0] IMPLICIT Abstract-syntax-name,
* transfer-syntax-name [1] IMPLICIT Transfer-syntax-name
* }
* ```
*
* @class
*/
export declare class Default_context_name {
/**
* @summary `abstract_syntax_name`.
* @public
* @readonly
*/
readonly abstract_syntax_name: Abstract_syntax_name;
/**
* @summary `transfer_syntax_name`.
* @public
* @readonly
*/
readonly transfer_syntax_name: Transfer_syntax_name;
constructor(
/**
* @summary `abstract_syntax_name`.
* @public
* @readonly
*/
abstract_syntax_name: Abstract_syntax_name,
/**
* @summary `transfer_syntax_name`.
* @public
* @readonly
*/
transfer_syntax_name: Transfer_syntax_name);
/**
* @summary Restructures an object into a Default_context_name
* @description
*
* This takes an `object` and converts it to a `Default_context_name`.
*
* @public
* @static
* @method
* @param {Object} _o An object having all of the keys and values of a `Default_context_name`.
* @returns {Default_context_name}
*/
static _from_object(_o: {
[_K in keyof Default_context_name]: Default_context_name[_K];
}): Default_context_name;
}
/**
* @summary The Leading Root Component Types of Default_context_name
* @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_Default_context_name: $.ComponentSpec[];
/**
* @summary The Trailing Root Component Types of Default_context_name
* @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_Default_context_name: $.ComponentSpec[];
/**
* @summary The Extension Addition Component Types of Default_context_name
* @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_Default_context_name: $.ComponentSpec[];
/**
* @summary Decodes an ASN.1 element into a(n) Default_context_name
* @function
* @param {_Element} el The element being decoded.
* @returns {Default_context_name} The decoded data structure.
*/
export declare function _decode_Default_context_name(el: _Element): Default_context_name;
/**
* @summary Encodes a(n) Default_context_name 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 Default_context_name, encoded as an ASN.1 Element.
*/
export declare function _encode_Default_context_name(value: Default_context_name, elGetter: $.ASN1Encoder<Default_context_name>): _Element;