import { ASN1Element as _Element } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { TBerror } from "../TrustBroker/TBerror.ta.mjs"; import { TBOK } from "../TrustBroker/TBOK.ta.mjs"; /** * @summary TBresponse * @description * * ### ASN.1 Definition: * * ```asn1 * TBresponse ::= CHOICE { * success [0] TBOK, * failure [1] TBerror, * ... } * ``` */ export type TBresponse = { success: TBOK; } | { failure: TBerror; } | _Element; /** * @summary Decodes an ASN.1 element into a(n) TBresponse * @function * @param {_Element} el The element being decoded. * @returns {TBresponse} The decoded data structure. */ export declare function _decode_TBresponse(el: _Element): TBresponse; /** * @summary Encodes a(n) TBresponse 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 TBresponse, encoded as an ASN.1 Element. */ export declare function _encode_TBresponse(value: TBresponse, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=TBresponse.ta.d.mts.map