import { ASN1Element as _Element, NumericString, PrintableString } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; /** * @summary PostalCode * @description * * ### ASN.1 Definition: * * ```asn1 * PostalCode ::= CHOICE { * numeric-code NumericString(SIZE (1..ub-postal-code-length)), * printable-code PrintableString(SIZE (1..ub-postal-code-length)) * } * ``` */ export type PostalCode = { numeric_code: NumericString; } | { printable_code: PrintableString; }; /** * @summary Decodes an ASN.1 element into a(n) PostalCode * @function * @param {_Element} el The element being decoded. * @returns {PostalCode} The decoded data structure. */ export declare function _decode_PostalCode(el: _Element): PostalCode; /** * @summary Encodes a(n) PostalCode 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 PostalCode, encoded as an ASN.1 Element. */ export declare function _encode_PostalCode(value: PostalCode, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=PostalCode.ta.d.mts.map