UNPKG

asn1-ts

Version:

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

17 lines (16 loc) 706 B
import type { SingleThreadBuffer } from "../macros.mjs"; export default class ObjectIdentifier { protected encoding: Uint8Array; static fromParts(nodes: number[], prefix?: ObjectIdentifier | number): ObjectIdentifier; get nodes(): number[]; 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; }