import { ASN1Element as _Element, BIT_STRING, OPTIONAL } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; /** * @summary Signed * @description * * ### ASN.1 Definition: * * ```asn1 * Signed{ToBeSigned} ::= SEQUENCE { * toBeSigned ToBeSigned, * signature BIT STRING, * altSignature BIT STRING OPTIONAL, * ... } * ``` * */ export declare class Signed { /** * @summary `toBeSigned`. * @public * @readonly */ readonly toBeSigned: ToBeSigned; /** * @summary `signature`. * @public * @readonly */ readonly signature: BIT_STRING; /** * @summary `altSignature`. * @public * @readonly */ readonly altSignature?: OPTIONAL; /** * @summary Extensions that are not recognized. * @public * @readonly */ readonly _unrecognizedExtensionsList: _Element[]; constructor( /** * @summary `toBeSigned`. * @public * @readonly */ toBeSigned: ToBeSigned, /** * @summary `signature`. * @public * @readonly */ signature: BIT_STRING, /** * @summary `altSignature`. * @public * @readonly */ altSignature?: OPTIONAL, /** * @summary Extensions that are not recognized. * @public * @readonly */ _unrecognizedExtensionsList?: _Element[]); /** * @summary Restructures an object into a Signed * @description * * This takes an `object` and converts it to a `Signed`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `Signed`. * @returns {Signed} */ static _from_object(_o: Partial<{ [_K in keyof Signed]: Signed[_K]; }>): Signed; } /** * @summary The Leading Root Component Types of Signed * @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_Signed: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of Signed * @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_Signed: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of Signed * @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_Signed: $.ComponentSpec[]; /** * @summary Returns a function that will decode an ASN.1 element into a(n) Signed * @function * @param {_Element} el The element being decoded. * @returns A function that will decode an ASN.1 element. */ export declare function _get_decoder_for_Signed(_decode_ToBeSigned: $.ASN1Decoder): $.ASN1Decoder>; /** * @summary Returns a function that will encode a(n) Signed into an ASN.1 Element. * @function * @returns A function that will encode a(n) Signed as an ASN.1 element. */ export declare function _get_encoder_for_Signed(_encode_ToBeSigned: $.ASN1Encoder): $.ASN1Encoder>; //# sourceMappingURL=Signed.ta.d.mts.map