{"_id":"@types/bser","_rev":"2930823","name":"@types/bser","description":"TypeScript definitions for bser","dist-tags":{"latest":"2.0.1","ts2.7":"2.0.0","ts2.8":"2.0.0","ts2.9":"2.0.0","ts3.0":"2.0.0","ts3.1":"2.0.0","ts3.2":"2.0.0","ts3.3":"2.0.0","ts3.4":"2.0.0","ts3.5":"2.0.0","ts3.6":"2.0.1","ts3.7":"2.0.1","ts3.8":"2.0.1","ts3.9":"2.0.1","ts4.0":"2.0.1","ts4.1":"2.0.1","ts4.2":"2.0.1","ts4.3":"2.0.1","ts4.4":"2.0.1","ts4.5":"2.0.1","ts4.6":"2.0.1","ts4.7":"2.0.1","ts4.8":"2.0.1","ts4.9":"2.0.1","ts5.0":"2.0.1","ts5.1":"2.0.1"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2023-03-14T06:28:04.000Z","created":"2019-03-18T16:36:23.227Z","2.0.1":"2021-07-06T18:20:50.223Z","2.0.0":"2019-03-18T16:36:23.227Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/bser"},"versions":{"2.0.1":{"name":"@types/bser","version":"2.0.1","description":"TypeScript definitions for bser","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bser","license":"MIT","contributors":[{"name":"Claas Ahlrichs","url":"https://github.com/claasahl","githubUsername":"claasahl"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/bser"},"scripts":{},"dependencies":{"@types/node":"*","@types/node-int64":"*"},"typesPublisherContentHash":"dd5ee78ca139cf43b91688c38e5a86a43e9f7a91b24d84c7aefc3ef8f782efc2","typeScriptVersion":"3.6","_id":"@types/bser@2.0.1","dist":{"shasum":"f9d28a2f46e73e2c4e3a1cfce28dbd6e2b34c166","size":2249,"noattachment":false,"key":"/@types/bser/-/@types/bser-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/bser/download/@types/bser-2.0.1.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bser_2.0.1_1625595650123_0.516459869441455"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:32:31.249Z","publish_time":1625595650223,"_cnpm_publish_time":1625595650223},"2.0.0":{"name":"@types/bser","version":"2.0.0","description":"TypeScript definitions for bser","license":"MIT","contributors":[{"name":"Claas Ahlrichs","url":"https://github.com/claasahl","githubUsername":"claasahl"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/bser"},"scripts":{},"dependencies":{"@types/node":"*","@types/node-int64":"*"},"typesPublisherContentHash":"c01a83f8aa45298b1d2cfefcb985a00345bafcfb10a82b9b543229ee8d96a762","typeScriptVersion":"2.7","_id":"@types/bser@2.0.0","dist":{"shasum":"a3f535993ab4651a9a70f915a80b787469b82c47","size":2164,"noattachment":false,"key":"/@types/bser/-/@types/bser-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/bser/download/@types/bser-2.0.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bser_2.0.0_1552926983081_0.31235823381161887"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:32:31.150Z","publish_time":1552926983227,"_cnpm_publish_time":1552926983227}},"readme":"# Installation\r\n> `npm install --save @types/bser`\r\n\r\n# Summary\r\nThis package contains type definitions for bser (https://facebook.github.io/watchman/docs/bser.html).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bser.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bser/index.d.ts)\r\n````ts\r\n// Type definitions for bser 2.0\n// Project: https://facebook.github.io/watchman/docs/bser.html\n// Definitions by: Claas Ahlrichs <https://github.com/claasahl>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 2.7\n\n/// <reference types=\"node\" />\n\nimport { EventEmitter } from \"events\";\nimport Int64 = require(\"node-int64\");\n\nexport type InputWrapper =\n    | Buffer\n    | string\n    | NodeJS.TypedArray\n    | DataView\n    | ArrayBuffer\n    | SharedArrayBuffer;\nexport type IntWrapper = number | Int64;\nexport type AnyWrapper = boolean | IntWrapper | null | string | object;\n\nexport class Accumulator {\n    buf: Buffer;\n    readOffset: number;\n    writeOffset: number;\n\n    constructor(initsize?: number);\n\n    append(buf: InputWrapper): void;\n\n    assertReadableSize(size: number): void;\n\n    peekDouble(): number;\n\n    peekInt(size: number): IntWrapper;\n\n    peekString(size: number): string;\n\n    readAdvance(size: number): void;\n\n    readAvail(): number;\n\n    readDouble(): number;\n\n    // replace \"IntWrapper\" with \"number\"?\n    readInt(bytes: number): IntWrapper;\n\n    readString(size: number): string;\n\n    reserve(size: number): void;\n\n    writeAvail(): number;\n\n    writeByte(value: number): void;\n\n    writeDouble(value: number): void;\n\n    writeInt(value: number, size: number): void;\n}\n\nexport class BunserBuf extends EventEmitter {\n    buf: Accumulator;\n    state: 0 | 1;\n    // replace \"IntWrapper\" with \"number\"?\n    pduLen?: false | IntWrapper | undefined;\n\n    constructor();\n\n    append(\n        buf: InputWrapper,\n        synchronous?: false\n    ): AnyWrapper | AnyWrapper[] | undefined;\n    append(buf: InputWrapper, synchronous: true): void;\n\n    decodeAny(): AnyWrapper | AnyWrapper[];\n\n    decodeArray(): AnyWrapper[];\n\n    // replace \"IntWrapper\" with \"number\"?\n    decodeInt(relaxSizeAsserts?: boolean): false | IntWrapper;\n\n    decodeObject(): object;\n\n    decodeString(): string;\n\n    decodeTemplate(): AnyWrapper[];\n\n    expectCode(expected: number): void;\n\n    process(synchronous?: false): AnyWrapper | AnyWrapper[] | undefined;\n    process(synchronous: true): void;\n\n    processLater(): void;\n\n    raise(reason: string): void;\n}\n\nexport function dumpToBuffer(val: any): Buffer;\n\nexport function loadFromBuffer(input: InputWrapper): AnyWrapper | AnyWrapper[];\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Tue, 06 Jul 2021 18:05:46 GMT\r\n * Dependencies: [@types/node-int64](https://npmjs.com/package/@types/node-int64), [@types/node](https://npmjs.com/package/@types/node)\r\n * Global values: none\r\n\r\n# Credits\r\nThese definitions were written by [Claas Ahlrichs](https://github.com/claasahl).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bser","license":"MIT"}