import { ASN1Element as _Element, OPTIONAL, PrintableString } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { UniversalOrBMPString_character_encoding } from "../MTSAbstractService/UniversalOrBMPString-character-encoding.ta.mjs"; /** * @summary UniversalOrBMPString * @description * * ### ASN.1 Definition: * * ```asn1 * UniversalOrBMPString{INTEGER:ub-string-length} ::= SET { * character-encoding * CHOICE {two-octets BMPString(SIZE (1..ub-string-length)), * four-octets UniversalString(SIZE (1..ub-string-length))}, * iso-639-language-code PrintableString(SIZE (2 | 5)) OPTIONAL * } * ``` * */ export declare class UniversalOrBMPString { /** * @summary `character_encoding`. * @public * @readonly */ readonly character_encoding: UniversalOrBMPString_character_encoding; /** * @summary `iso_639_language_code`. * @public * @readonly */ readonly iso_639_language_code?: OPTIONAL; constructor( /** * @summary `character_encoding`. * @public * @readonly */ character_encoding: UniversalOrBMPString_character_encoding, /** * @summary `iso_639_language_code`. * @public * @readonly */ iso_639_language_code?: OPTIONAL); /** * @summary Restructures an object into a UniversalOrBMPString * @description * * This takes an `object` and converts it to a `UniversalOrBMPString`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `UniversalOrBMPString`. * @returns {UniversalOrBMPString} */ static _from_object(_o: { [_K in keyof UniversalOrBMPString]: UniversalOrBMPString[_K]; }): UniversalOrBMPString; } /** * @summary The Leading Root Component Types of UniversalOrBMPString * @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_UniversalOrBMPString: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of UniversalOrBMPString * @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_UniversalOrBMPString: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of UniversalOrBMPString * @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_UniversalOrBMPString: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) UniversalOrBMPString * @function * @param {_Element} el The element being decoded. * @returns {UniversalOrBMPString} The decoded data structure. */ export declare function _decode_UniversalOrBMPString(el: _Element): UniversalOrBMPString; /** * @summary Encodes a(n) UniversalOrBMPString 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 UniversalOrBMPString, encoded as an ASN.1 Element. */ export declare function _encode_UniversalOrBMPString(value: UniversalOrBMPString, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=UniversalOrBMPString.ta.d.mts.map