UNPKG

@wildboar/pkcs

Version:
29 lines (28 loc) 975 B
import { ASN1Element as _Element, OBJECT_IDENTIFIER } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; /** * @summary ContentType * @description * * ### ASN.1 Definition: * * ```asn1 * ContentType ::= OBJECT IDENTIFIER * ``` */ export declare type ContentType = OBJECT_IDENTIFIER; /** * @summary Decodes an ASN.1 element into a(n) ContentType * @function * @param {_Element} el The element being decoded. * @returns {ContentType} The decoded data structure. */ export declare function _decode_ContentType(el: _Element): import("asn1-ts").ObjectIdentifier; /** * @summary Encodes a(n) ContentType into an ASN.1 Element. * @function * @param {value} el The element being decoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The ContentType, encoded as an ASN.1 Element. */ export declare function _encode_ContentType(value: ContentType, elGetter: $.ASN1Encoder<ContentType>): _Element;