import { ASN1Element as _Element, BIT_STRING, OPTIONAL } from "@wildboar/asn1";
import * as $ from "@wildboar/asn1/functional";
import { AlgorithmIdentifier, Certificate } from "@wildboar/x500/AuthenticationFramework";
import { ResponseData } from "../OCSP-2013-08/ResponseData.ta.mjs";
/**
 * @summary BasicOCSPResponse
 * @description
 *
 * ### ASN.1 Definition:
 *
 * ```asn1
 * BasicOCSPResponse ::= SEQUENCE {
 * tbsResponseData      ResponseData,
 * signatureAlgorithm   AlgorithmIdentifier{SIGNATURE-ALGORITHM,
 *                         {sa-dsaWithSHA1 | sa-rsaWithSHA1 |
 *                                 sa-rsaWithMD5 | sa-rsaWithMD2, ...}},
 * signature            BIT STRING,
 * certs            [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL }
 * ```
 *
 */
export declare class BasicOCSPResponse {
    /**
     * @summary `tbsResponseData`.
     * @public
     * @readonly
     */
    readonly tbsResponseData: ResponseData;
    /**
     * @summary `signatureAlgorithm`.
     * @public
     * @readonly
     */
    readonly signatureAlgorithm: AlgorithmIdentifier;
    /**
     * @summary `signature`.
     * @public
     * @readonly
     */
    readonly signature: BIT_STRING;
    /**
     * @summary `certs`.
     * @public
     * @readonly
     */
    readonly certs?: OPTIONAL<Certificate[]>;
    constructor(
    /**
     * @summary `tbsResponseData`.
     * @public
     * @readonly
     */
    tbsResponseData: ResponseData, 
    /**
     * @summary `signatureAlgorithm`.
     * @public
     * @readonly
     */
    signatureAlgorithm: AlgorithmIdentifier, 
    /**
     * @summary `signature`.
     * @public
     * @readonly
     */
    signature: BIT_STRING, 
    /**
     * @summary `certs`.
     * @public
     * @readonly
     */
    certs?: OPTIONAL<Certificate[]>);
    /**
     * @summary Restructures an object into a BasicOCSPResponse
     * @description
     *
     * This takes an `object` and converts it to a `BasicOCSPResponse`.
     *
     * @public
     * @static
     * @method
     * @param {Object} _o An object having all of the keys and values of a `BasicOCSPResponse`.
     * @returns {BasicOCSPResponse}
     */
    static _from_object(_o: {
        [_K in keyof BasicOCSPResponse]: BasicOCSPResponse[_K];
    }): BasicOCSPResponse;
}
/**
 * @summary The Leading Root Component Types of BasicOCSPResponse
 * @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_BasicOCSPResponse: $.ComponentSpec[];
/**
 * @summary The Trailing Root Component Types of BasicOCSPResponse
 * @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_BasicOCSPResponse: $.ComponentSpec[];
/**
 * @summary The Extension Addition Component Types of BasicOCSPResponse
 * @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_BasicOCSPResponse: $.ComponentSpec[];
/**
 * @summary Decodes an ASN.1 element into a(n) BasicOCSPResponse
 * @function
 * @param {_Element} el The element being decoded.
 * @returns {BasicOCSPResponse} The decoded data structure.
 */
export declare function _decode_BasicOCSPResponse(el: _Element): BasicOCSPResponse;
/**
 * @summary Encodes a(n) BasicOCSPResponse 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 BasicOCSPResponse, encoded as an ASN.1 Element.
 */
export declare function _encode_BasicOCSPResponse(value: BasicOCSPResponse, elGetter: $.ASN1Encoder<BasicOCSPResponse>): _Element;
//# sourceMappingURL=BasicOCSPResponse.ta.d.mts.map