import * as KernelMessage from './messages'; /** * Serialize a kernel message for transport. */ export declare function serialize(msg: KernelMessage.IMessage, protocol?: string): string | ArrayBuffer; /** * Deserialize and return the unpacked message. */ export declare function deserialize(data: ArrayBuffer, protocol?: string): KernelMessage.IMessage;