import { AsnArray } from "@peculiar/asn1-schema"; /** * ``` * AttributeType ::= OBJECT IDENTIFIER * ``` */ export type AttributeType = string; /** * ``` * DirectoryString ::= CHOICE { * teletexString TeletexString (SIZE (1..MAX)), * printableString PrintableString (SIZE (1..MAX)), * universalString UniversalString (SIZE (1..MAX)), * utf8String UTF8String (SIZE (1..MAX)), * bmpString BMPString (SIZE (1..MAX)) } * ``` */ export declare class DirectoryString { teletexString?: string; printableString?: string; universalString?: string; utf8String?: string; bmpString?: string; constructor(params?: Partial); /** * Returns a string representation of an object. */ toString(): string; } /** * ``` * AttributeValue ::= ANY -- DEFINED BY AttributeType * in general it will be a DirectoryString * ``` */ export declare class AttributeValue extends DirectoryString { ia5String?: string; anyValue?: ArrayBuffer; constructor(params?: Partial); toString(): string; } /** * ``` * AttributeTypeAndValue ::= SEQUENCE { * type AttributeType, * value AttributeValue } * ``` */ export declare class AttributeTypeAndValue { type: string; value: AttributeValue; constructor(params?: Partial); } /** * ``` * RelativeDistinguishedName ::= SET SIZE (1..MAX) OF AttributeTypeAndValue * ``` */ export declare class RelativeDistinguishedName extends AsnArray { constructor(items?: AttributeTypeAndValue[]); } /** * ``` * RDNSequence ::= SEQUENCE OF RelativeDistinguishedName * ``` */ export declare class RDNSequence extends AsnArray { constructor(items?: RelativeDistinguishedName[]); } /** * ``` * Name ::= CHOICE { -- only one possibility for now -- * rdnSequence RDNSequence } * ``` */ export declare class Name extends RDNSequence { constructor(items?: RelativeDistinguishedName[]); }