import { OPTIONAL, ASN1Element as _Element } from '@wildboar/asn1'; import * as $ from '@wildboar/asn1/functional'; import { Identifier } from '../DefinitionASN1Module/Identifier.ta.mjs'; import { TemplateLabel } from '../DefinitionASN1Module/TemplateLabel.ta.mjs'; import { DefinedType } from '../DefinitionASN1Module/DefinedType.ta.mjs'; import { OptionalIdentifier } from '../GrmAttributeDefinitionModule/OptionalIdentifier.ta.mjs'; import { OptionallyRegisteredAs } from '../DefinitionASN1Module/OptionallyRegisteredAs.ta.mjs'; /** * @summary RoleSpecifier * @description * * ### ASN.1 Definition: * * ```asn1 * RoleSpecifier ::= SEQUENCE { * role Identifier, * compatibleWith [0] TemplateLabel OPTIONAL, * permittedRoleCardinality [1] DefinedType OPTIONAL, * requiredRoleCardinality [2] DefinedType OPTIONAL, * bindingSupport [3] EXPLICIT OptionalIdentifier OPTIONAL, * unbindingSupport [4] EXPLICIT OptionalIdentifier OPTIONAL, * permittedRelationshipCardinality [5] DefinedType OPTIONAL, * optionalRegisteredAs OptionallyRegisteredAs * } * ``` * */ export declare class RoleSpecifier { /** * @summary `role`. * @public * @readonly */ readonly role: Identifier; /** * @summary `compatibleWith`. * @public * @readonly */ readonly compatibleWith: OPTIONAL; /** * @summary `permittedRoleCardinality`. * @public * @readonly */ readonly permittedRoleCardinality: OPTIONAL; /** * @summary `requiredRoleCardinality`. * @public * @readonly */ readonly requiredRoleCardinality: OPTIONAL; /** * @summary `bindingSupport`. * @public * @readonly */ readonly bindingSupport: OPTIONAL; /** * @summary `unbindingSupport`. * @public * @readonly */ readonly unbindingSupport: OPTIONAL; /** * @summary `permittedRelationshipCardinality`. * @public * @readonly */ readonly permittedRelationshipCardinality: OPTIONAL; /** * @summary `optionalRegisteredAs`. * @public * @readonly */ readonly optionalRegisteredAs: OptionallyRegisteredAs; constructor( /** * @summary `role`. * @public * @readonly */ role: Identifier, /** * @summary `compatibleWith`. * @public * @readonly */ compatibleWith: OPTIONAL, /** * @summary `permittedRoleCardinality`. * @public * @readonly */ permittedRoleCardinality: OPTIONAL, /** * @summary `requiredRoleCardinality`. * @public * @readonly */ requiredRoleCardinality: OPTIONAL, /** * @summary `bindingSupport`. * @public * @readonly */ bindingSupport: OPTIONAL, /** * @summary `unbindingSupport`. * @public * @readonly */ unbindingSupport: OPTIONAL, /** * @summary `permittedRelationshipCardinality`. * @public * @readonly */ permittedRelationshipCardinality: OPTIONAL, /** * @summary `optionalRegisteredAs`. * @public * @readonly */ optionalRegisteredAs: OptionallyRegisteredAs); /** * @summary Restructures an object into a RoleSpecifier * @description * * This takes an `object` and converts it to a `RoleSpecifier`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `RoleSpecifier`. * @returns {RoleSpecifier} */ static _from_object(_o: { [_K in keyof RoleSpecifier]: RoleSpecifier[_K]; }): RoleSpecifier; } /** * @summary The Leading Root Component Types of RoleSpecifier * @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_RoleSpecifier: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of RoleSpecifier * @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_RoleSpecifier: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of RoleSpecifier * @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_RoleSpecifier: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) RoleSpecifier * @function * @param {_Element} el The element being decoded. * @returns {RoleSpecifier} The decoded data structure. */ export declare function _decode_RoleSpecifier(el: _Element): RoleSpecifier; /** * @summary Encodes a(n) RoleSpecifier 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 RoleSpecifier, encoded as an ASN.1 Element. */ export declare function _encode_RoleSpecifier(value: RoleSpecifier, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=RoleSpecifier.ta.d.mts.map