import { OCTET_STRING, ASN1Element as _Element } from '@wildboar/asn1'; import * as $ from '@wildboar/asn1/functional'; import { SaslCredentials } from '../Lightweight-Directory-Access-Protocol-V3/SaslCredentials.ta.mjs'; /** * @summary AuthenticationChoice * @description * * ### ASN.1 Definition: * * ```asn1 * AuthenticationChoice ::= CHOICE { * simple [0] OCTET STRING, * -- 1 and 2 reserved * sasl [3] SaslCredentials, * ... * } * ``` */ export type AuthenticationChoice = { simple: OCTET_STRING; } | { sasl: SaslCredentials; } | _Element; /** * @summary Decodes an ASN.1 element into a(n) AuthenticationChoice * @function * @param {_Element} el The element being decoded. * @returns {AuthenticationChoice} The decoded data structure. */ export declare function _decode_AuthenticationChoice(el: _Element): AuthenticationChoice; /** * @summary Encodes a(n) AuthenticationChoice 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 AuthenticationChoice, encoded as an ASN.1 Element. */ export declare function _encode_AuthenticationChoice(value: AuthenticationChoice, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=AuthenticationChoice.ta.d.mts.map