import { ASN1Element as _Element } from '@wildboar/asn1'; import * as $ from '@wildboar/asn1/functional'; import { Timespec } from '../Test-ASN1Module/Timespec.ta.mjs'; import { TestDuration_signalLength } from '../TestCategories-ASN1Module/TestDuration-signalLength.ta.mjs'; /** * @summary TestDuration * @description * * ### ASN.1 Definition: * * ```asn1 * TestDuration ::= CHOICE { * signalDuration Timespec, * signalLength SEQUENCE {size INTEGER, * dataRate DataRate OPTIONAL} * } * ``` */ export type TestDuration = { signalDuration: Timespec; } | { signalLength: TestDuration_signalLength; }; /** * @summary Decodes an ASN.1 element into a(n) TestDuration * @function * @param {_Element} el The element being decoded. * @returns {TestDuration} The decoded data structure. */ export declare function _decode_TestDuration(el: _Element): TestDuration; /** * @summary Encodes a(n) TestDuration 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 TestDuration, encoded as an ASN.1 Element. */ export declare function _encode_TestDuration(value: TestDuration, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=TestDuration.ta.d.mts.map