UNPKG

@devgrid/messagepack

Version:
10 lines (9 loc) 449 B
import { SmartBuffer } from '@devgrid/smartbuffer'; import { BufferType } from './types'; import Serializer from './serializer'; export declare const registerCommonTypesFor: (s: Serializer) => void; export { Serializer }; export declare const serializer: Serializer; export declare const encode: (obj: any) => Buffer<ArrayBufferLike>; export declare const decode: (buf: BufferType) => any; export declare const tryDecode: (buf: SmartBuffer) => any;