UNPKG

358 BTypeScriptView Raw
1import * as KernelMessage from './messages';
2/**
3 * Serialize a kernel message for transport.
4 */
5export declare function serialize(msg: KernelMessage.IMessage, protocol?: string): string | ArrayBuffer;
6/**
7 * Deserialize and return the unpacked message.
8 */
9export declare function deserialize(data: ArrayBuffer, protocol?: string): KernelMessage.IMessage;