asn1/000755 001751 000177 0000000000 14526766567013503 5ustar00runner000000 000000 1452676656714526766567asn1/LICENSE000644 001751 000177 0000002165 14526766567014514 0ustar00runner000000 000000 1452676656714526766567 MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE asn1/README.md000644 001751 000177 0000001050 14526766567014746 0ustar00runner000000 000000 1452676733314526766567# Installation > `npm install --save @types/asn1` # Summary This package contains type definitions for asn1 (https://github.com/joyent/node-asn1). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/asn1. ### Additional Details * Last updated: Mon, 20 Nov 2023 23:36:23 GMT * Dependencies: [@types/node](https://npmjs.com/package/@types/node) # Credits These definitions were written by [Jim Geurts](https://github.com/jgeurts), and [Graham](https://github.com/shortstuffsushi). asn1/index.d.ts000644 001751 000177 0000005715 14526766567015414 0ustar00runner000000 000000 1452676656714526766567/// export class BerReader { readonly buffer: Buffer; readonly offset: number; readonly length: number; readonly remain: number; readonly _buf: Buffer; _size: number; _offset: number; constructor(data: Buffer); peek(): number | null; readBoolean(): boolean | null; readByte(peek: boolean): number | null; readEnumeration(): number | null; readInt(): number | null; readLength(offset?: number): number | null; readOID(tag?: number): string | null; readSequence(tag?: number): number | null; readString(tag?: number): string | null; readString(tag: number, retbuf: boolean): Buffer | null; _readTag(tag?: number): number | null; } export class BerWriter { readonly buffer: Buffer; readonly _buf: Buffer; readonly _size: number; _offset: number; constructor(options?: { size: number; growthFactor: number }); endSequence(): void; startSequence(tag?: number): void; writeBoolean(b: boolean, tag?: number): void; writeBuffer(buf: Buffer, tag: number): void; writeByte(b: number): void; writeEnumeration(i: number, tag?: number): void; writeInt(i: number, tag?: number): void; writeLength(len: number): void; writeNull(): void; writeOID(s: string, tag: number): void; writeString(s: string, tag?: number): void; writeStringArray(strings: readonly string[]): void; _ensure(length: number): void; } export namespace Ber { const BMPString: number; const BitString: number; const Boolean: number; const CharacterString: number; const Constructor: number; const Context: number; const EOC: number; const Enumeration: number; const External: number; const GeneralString: number; const GeneralizedTime: number; const GraphicString: number; const IA5String: number; const Integer: number; const Null: number; const NumericString: number; const OID: number; const ObjectDescriptor: number; const OctetString: number; const PDV: number; const PrintableString: number; const Real: number; const RelativeOID: number; const Sequence: number; const Set: number; const T61String: number; const UTCTime: number; const UniversalString: number; const Utf8String: number; const VideotexString: number; const VisibleString: number; } /* declare enum BerType { EOC = 0, Boolean = 1, Integer = 2, BitString = 3, OctetString = 4, Null = 5, OID = 6, ObjectDescriptor = 7, External = 8, Real = 9, // float Enumeration = 10, PDV = 11, Utf8String = 12, RelativeOID = 13, Sequence = 16, Set = 17, NumericString = 18, PrintableString = 19, T61String = 20, VideotexString = 21, IA5String = 22, UTCTime = 23, GeneralizedTime = 24, GraphicString = 25, VisibleString = 26, GeneralString = 28, UniversalString = 29, CharacterString = 30, BMPString = 31, Constructor = 32, Context = 128, } */ asn1/package.json000644 001751 000177 0000001676 14526766567015773 0ustar00runner000000 000000 1452676733314526766567{ "name": "@types/asn1", "version": "0.2.4", "description": "TypeScript definitions for asn1", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/asn1", "license": "MIT", "contributors": [ { "name": "Jim Geurts", "githubUsername": "jgeurts", "url": "https://github.com/jgeurts" }, { "name": "Graham", "githubUsername": "shortstuffsushi", "url": "https://github.com/shortstuffsushi" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/asn1" }, "scripts": {}, "dependencies": { "@types/node": "*" }, "typesPublisherContentHash": "37d57072277b8a0b8c5ff0a8ecd454a379541fc5bf062f7cad06c95c38ab188a", "typeScriptVersion": "4.5" }