import { BOOLEAN, OBJECT_IDENTIFIER } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; /** * @summary CONTEXT * @description * * ### ASN.1 Definition: * * ```asn1 * CONTEXT ::= CLASS { * &Type, * &defaultValue &Type OPTIONAL, * &Assertion OPTIONAL, * &absentMatch BOOLEAN DEFAULT TRUE, * &id OBJECT IDENTIFIER UNIQUE } * WITH SYNTAX { * WITH SYNTAX &Type * [DEFAULT-VALUE &defaultValue] * [ASSERTED AS &Assertion] * [ABSENT-MATCH &absentMatch] * ID &id } * ``` * * @interface */ export interface CONTEXT { /** * @summary A fixed string that can be used for external programs to determine the object class of this object. */ readonly class: "CONTEXT"; /** * @summary A map of type fields to their corresponding decoders. */ readonly decoderFor: Partial<{ [_K in keyof CONTEXT]: $.ASN1Decoder[_K]>; }>; /** * @summary A map of type fields to their corresponding encoders. */ readonly encoderFor: Partial<{ [_K in keyof CONTEXT]: $.ASN1Encoder[_K]>; }>; /** * @summary &Type */ readonly "&Type": Type; /** * @summary &defaultValue */ readonly "&defaultValue"?: CONTEXT["&Type"]; /** * @summary &Assertion */ readonly "&Assertion": Assertion; /** * @summary &absentMatch */ readonly "&absentMatch"?: BOOLEAN; /** * @summary &id */ readonly "&id": OBJECT_IDENTIFIER; } //# sourceMappingURL=CONTEXT.oca.d.mts.map