import { ASN1Element as _Element, OPTIONAL } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { AlgorithmIdentifier } from "../AuthenticationFramework/AlgorithmIdentifier.ta.mjs"; import { PkiPath } from "../AuthenticationFramework/PkiPath.ta.mjs"; import { Version } from "../AuthenticationFramework/Version.ta.mjs"; import { SignedAttributes } from "../PkiPmiWrapper/SignedAttributes.ta.mjs"; import { TBSPDU_wrapper_conf } from "../PkiPmiWrapper/TBSPDU-wrapper-conf.ta.mjs"; /** * @summary TBSPDU_wrapper * @description * * ### ASN.1 Definition: * * ```asn1 * TBSPDU-wrapper ::= SEQUENCE { * version Version DEFAULT v1, * signatureAlgorithm AlgorithmIdentifier {{SupportedSignatureAlgorithms}}, * certPath [0] IMPLICIT PkiPath, * signedAttrs [1] IMPLICIT SignedAttributes OPTIONAL, * conf CHOICE { * clear [2] WrappedPDUInfo, * protected [3] EncryptedInfo, * ... }, * ... } * ``` * */ export declare class TBSPDU_wrapper { /** * @summary `version`. * @public * @readonly */ readonly version: OPTIONAL; /** * @summary `signatureAlgorithm`. * @public * @readonly */ readonly signatureAlgorithm: AlgorithmIdentifier; /** * @summary `certPath`. * @public * @readonly */ readonly certPath: PkiPath; /** * @summary `signedAttrs`. * @public * @readonly */ readonly signedAttrs: OPTIONAL; /** * @summary `conf`. * @public * @readonly */ readonly conf: TBSPDU_wrapper_conf; /** * @summary Extensions that are not recognized. * @public * @readonly */ readonly _unrecognizedExtensionsList: _Element[]; constructor( /** * @summary `version`. * @public * @readonly */ version: OPTIONAL, /** * @summary `signatureAlgorithm`. * @public * @readonly */ signatureAlgorithm: AlgorithmIdentifier, /** * @summary `certPath`. * @public * @readonly */ certPath: PkiPath, /** * @summary `signedAttrs`. * @public * @readonly */ signedAttrs: OPTIONAL, /** * @summary `conf`. * @public * @readonly */ conf: TBSPDU_wrapper_conf, /** * @summary Extensions that are not recognized. * @public * @readonly */ _unrecognizedExtensionsList?: _Element[]); /** * @summary Restructures an object into a TBSPDU_wrapper * @description * * This takes an `object` and converts it to a `TBSPDU_wrapper`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `TBSPDU_wrapper`. * @returns {TBSPDU_wrapper} */ static _from_object(_o: { [_K in keyof TBSPDU_wrapper]: TBSPDU_wrapper[_K]; }): TBSPDU_wrapper; /** * @summary Getter that returns the default value for `version`. * @public * @static * @method */ static get _default_value_for_version(): Version; } /** * @summary The Leading Root Component Types of TBSPDU_wrapper * @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_TBSPDU_wrapper: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of TBSPDU_wrapper * @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_TBSPDU_wrapper: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of TBSPDU_wrapper * @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_TBSPDU_wrapper: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) TBSPDU_wrapper * @function * @param {_Element} el The element being decoded. * @returns {TBSPDU_wrapper} The decoded data structure. */ export declare function _decode_TBSPDU_wrapper(el: _Element): TBSPDU_wrapper; /** * @summary Encodes a(n) TBSPDU_wrapper 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 TBSPDU_wrapper, encoded as an ASN.1 Element. */ export declare function _encode_TBSPDU_wrapper(value: TBSPDU_wrapper, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=TBSPDU-wrapper.ta.d.mts.map