@wildboar/rose
Version:
Remote Operation Service Element PDUs in TypeScript
39 lines • 1.17 kB
text/typescript
import { ASN1Element as _Element } from '@wildboar/asn1';
import * as $ from '@wildboar/asn1/functional';
/**
* @summary Bind
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* Bind{OPERATION:operation} ::= CHOICE {
* bind-invoke [16] OPERATION.&ArgumentType({operation}),
* bind-result [17] OPERATION.&ResultType({operation}),
* bind-error [18] OPERATION.&Errors.&ParameterType({operation})
* }
* ```
*/
export type Bind = {
bind_invoke: _Element;
} | {
bind_result: _Element;
} | {
bind_error: _Element;
};
/**
* @summary Decodes an ASN.1 element into a(n) Bind
* @function
* @param {_Element} el The element being decoded.
* @returns {Bind} The decoded data structure.
*/
export declare function _decode_Bind(el: _Element): Bind;
/**
* @summary Encodes a(n) Bind 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 Bind, encoded as an ASN.1 Element.
*/
export declare function _encode_Bind(value: Bind, elGetter: $.ASN1Encoder<Bind>): _Element;
//# sourceMappingURL=Bind.ta.d.mts.map