UNPKG

asn1-ts

Version:

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

20 lines (19 loc) 805 B
import type { SingleThreadBuffer } from "../macros.mjs"; export default class ObjectIdentifier { protected encoding: Uint8Array; toBytesUnsafe(): Uint8Array; byteLength(): number; static fromParts(nodes: number[], prefix?: ObjectIdentifier | number): ObjectIdentifier; get nodes(): number[]; private dotDelimitedNotationCached; get dotDelimitedNotation(): string; get asn1Notation(): string; toString(): string; toJSON(): string; toBytes(): SingleThreadBuffer; static fromString(str: string): ObjectIdentifier; static fromBytes(bytes: Uint8Array): ObjectIdentifier; static fromBytesUnsafe(bytes: Uint8Array): ObjectIdentifier; static compare(a: ObjectIdentifier, b: ObjectIdentifier): boolean; isEqualTo(other: ObjectIdentifier): boolean; }