@zlink-systems/framework-codec-msgpack 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ import { type ZLinkCodecExtension, type ZLinkMessageSerializer } from '@zlink-systems/framework';
2
+ import type { ZlinkStreamPayloadCodec } from '@zlink-systems/stream-connector';
3
+ export { ZLINK_MESSAGEPACK_CONTENT_TYPE } from './index';
4
+ export type ZLinkMessagePackCodecExtension = ZLinkCodecExtension & ZlinkStreamPayloadCodec;
5
+ export declare function zlinkMessagePackCodec(): ZLinkMessagePackCodecExtension;
6
+ export declare function createMessagePackSerializer(): ZLinkMessageSerializer;
@@ -0,0 +1,8 @@
1
+ import { type ZlinkStreamEncodedPayload, type ZlinkStreamPayloadCodec } from '@zlink-systems/stream-connector';
2
+ export declare const ZLINK_MESSAGEPACK_CONTENT_TYPE = "application/x-msgpack";
3
+ export declare const zlinkStreamMessagePackCodecName = "messagepack";
4
+ export declare const zlinkStreamMessagePackCodec: ZlinkStreamPayloadCodec;
5
+ export declare function toMsgPack<T>(value: T, messageType?: Function): ZlinkStreamEncodedPayload;
6
+ export declare function fromMsgPack<T>(payload: ZlinkStreamEncodedPayload): T;
7
+ export declare function encodeMessagePack(value: unknown): Uint8Array;
8
+ export declare function decodeMessagePack(value: Uint8Array): unknown;