import { ASN1Element as _Element, OPTIONAL } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { Content } from "../CMSSigncryption/Content.ta.mjs"; import { Mode } from "../CMSSigncryption/Mode.ta.mjs"; /** * @summary ContentInformation * @description * * ### ASN.1 Definition: * * ```asn1 * ContentInformation ::= SEQUENCE { * mode Mode, * content Content OPTIONAL * } * ``` * */ export declare class ContentInformation { /** * @summary `mode`. * @public * @readonly */ readonly mode: Mode; /** * @summary `content`. * @public * @readonly */ readonly content?: OPTIONAL; constructor( /** * @summary `mode`. * @public * @readonly */ mode: Mode, /** * @summary `content`. * @public * @readonly */ content?: OPTIONAL); /** * @summary Restructures an object into a ContentInformation * @description * * This takes an `object` and converts it to a `ContentInformation`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `ContentInformation`. * @returns {ContentInformation} */ static _from_object(_o: { [_K in keyof ContentInformation]: ContentInformation[_K]; }): ContentInformation; } /** * @summary The Leading Root Component Types of ContentInformation * @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_ContentInformation: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of ContentInformation * @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_ContentInformation: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of ContentInformation * @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_ContentInformation: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) ContentInformation * @function * @param {_Element} el The element being decoded. * @returns {ContentInformation} The decoded data structure. */ export declare function _decode_ContentInformation(el: _Element): ContentInformation; /** * @summary Encodes a(n) ContentInformation 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 ContentInformation, encoded as an ASN.1 Element. */ export declare function _encode_ContentInformation(value: ContentInformation, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=ContentInformation.ta.d.mts.map