import { ASN1Element as _Element } from '@wildboar/asn1'; import * as $ from '@wildboar/asn1/functional'; import { SessionConnectionIdentifier } from '../Reliable-Transfer-APDU/SessionConnectionIdentifier.ta.mjs'; /** * @summary ConnectionData * @description * * ### ASN.1 Definition: * * ```asn1 * ConnectionData ::= CHOICE { * open [0] OPEN.&Type, -- RTSE user data * * -- this alternative is encoded as [0] IMPLICIT NULL * -- in the case of absence of RTSE user data, * recover [1] IMPLICIT SessionConnectionIdentifier * } * ``` */ export type ConnectionData = { open: _Element; } | { recover: SessionConnectionIdentifier; }; /** * @summary Decodes an ASN.1 element into a(n) ConnectionData * @function * @param {_Element} el The element being decoded. * @returns {ConnectionData} The decoded data structure. */ export declare function _decode_ConnectionData(el: _Element): ConnectionData; /** * @summary Encodes a(n) ConnectionData 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 ConnectionData, encoded as an ASN.1 Element. */ export declare function _encode_ConnectionData(value: ConnectionData, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=ConnectionData.ta.d.mts.map