UNPKG

asn1-ts

Version:

ASN.1 encoding and decoding, including BER, CER, and DER.

14 lines (13 loc) 486 B
import type { ASN1Decoder, ASN1Encoder } from "../functional.mjs"; import type { OBJECT_IDENTIFIER } from "../macros.mjs"; export default interface TYPE_IDENTIFIER<Type = any> { class: string; decoderFor: Partial<{ [_K in keyof TYPE_IDENTIFIER<Type>]: ASN1Decoder<TYPE_IDENTIFIER<Type>[_K]>; }>; encoderFor: Partial<{ [_K in keyof TYPE_IDENTIFIER<Type>]: ASN1Encoder<TYPE_IDENTIFIER<Type>[_K]>; }>; "&id": OBJECT_IDENTIFIER; "&Type": Type; }