import { ASN1Element as _Element, OPTIONAL } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { BaseRevocationInfo } from "../CertificateExtensions/BaseRevocationInfo.ta.mjs"; import { DistributionPointName } from "../CertificateExtensions/DistributionPointName.ta.mjs"; import { GeneralName } from "../CertificateExtensions/GeneralName.ta.mjs"; import { GeneralNames } from "../CertificateExtensions/GeneralNames.ta.mjs"; import { NumberRange } from "../CertificateExtensions/NumberRange.ta.mjs"; import { OnlyCertificateTypes } from "../CertificateExtensions/OnlyCertificateTypes.ta.mjs"; import { ReasonFlags } from "../CertificateExtensions/ReasonFlags.ta.mjs"; /** * @summary PerAuthorityScope * @description * * ### ASN.1 Definition: * * ```asn1 * PerAuthorityScope ::= SEQUENCE { * authorityName [0] GeneralName OPTIONAL, * distributionPoint [1] DistributionPointName OPTIONAL, * onlyContains [2] OnlyCertificateTypes OPTIONAL, * onlySomeReasons [4] ReasonFlags OPTIONAL, * serialNumberRange [5] NumberRange OPTIONAL, * subjectKeyIdRange [6] NumberRange OPTIONAL, * nameSubtrees [7] GeneralNames OPTIONAL, * baseRevocationInfo [9] BaseRevocationInfo OPTIONAL, * ... } * ``` * */ export declare class PerAuthorityScope { /** * @summary `authorityName`. * @public * @readonly */ readonly authorityName?: OPTIONAL; /** * @summary `distributionPoint`. * @public * @readonly */ readonly distributionPoint?: OPTIONAL; /** * @summary `onlyContains`. * @public * @readonly */ readonly onlyContains?: OPTIONAL; /** * @summary `onlySomeReasons`. * @public * @readonly */ readonly onlySomeReasons?: OPTIONAL; /** * @summary `serialNumberRange`. * @public * @readonly */ readonly serialNumberRange?: OPTIONAL; /** * @summary `subjectKeyIdRange`. * @public * @readonly */ readonly subjectKeyIdRange?: OPTIONAL; /** * @summary `nameSubtrees`. * @public * @readonly */ readonly nameSubtrees?: OPTIONAL; /** * @summary `baseRevocationInfo`. * @public * @readonly */ readonly baseRevocationInfo?: OPTIONAL; /** * @summary Extensions that are not recognized. * @public * @readonly */ readonly _unrecognizedExtensionsList: _Element[]; constructor( /** * @summary `authorityName`. * @public * @readonly */ authorityName?: OPTIONAL, /** * @summary `distributionPoint`. * @public * @readonly */ distributionPoint?: OPTIONAL, /** * @summary `onlyContains`. * @public * @readonly */ onlyContains?: OPTIONAL, /** * @summary `onlySomeReasons`. * @public * @readonly */ onlySomeReasons?: OPTIONAL, /** * @summary `serialNumberRange`. * @public * @readonly */ serialNumberRange?: OPTIONAL, /** * @summary `subjectKeyIdRange`. * @public * @readonly */ subjectKeyIdRange?: OPTIONAL, /** * @summary `nameSubtrees`. * @public * @readonly */ nameSubtrees?: OPTIONAL, /** * @summary `baseRevocationInfo`. * @public * @readonly */ baseRevocationInfo?: OPTIONAL, /** * @summary Extensions that are not recognized. * @public * @readonly */ _unrecognizedExtensionsList?: _Element[]); /** * @summary Restructures an object into a PerAuthorityScope * @description * * This takes an `object` and converts it to a `PerAuthorityScope`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `PerAuthorityScope`. * @returns {PerAuthorityScope} */ static _from_object(_o: { [_K in keyof PerAuthorityScope]: PerAuthorityScope[_K]; }): PerAuthorityScope; } /** * @summary The Leading Root Component Types of PerAuthorityScope * @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_PerAuthorityScope: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of PerAuthorityScope * @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_PerAuthorityScope: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of PerAuthorityScope * @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_PerAuthorityScope: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) PerAuthorityScope * @function * @param {_Element} el The element being decoded. * @returns {PerAuthorityScope} The decoded data structure. */ export declare function _decode_PerAuthorityScope(el: _Element): PerAuthorityScope; /** * @summary Encodes a(n) PerAuthorityScope 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 PerAuthorityScope, encoded as an ASN.1 Element. */ export declare function _encode_PerAuthorityScope(value: PerAuthorityScope, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=PerAuthorityScope.ta.d.mts.map