/**
* Provides OWOX style message envelope format.
* {
* "version": "1.0",
* "body": { ... },
* "order": 123456, // timestamp with millis
* "producer": { "name": "owox-data-mats" }
* }
*/
declare const MESSAGE_VERSION: "1.0";
export interface ProducerInfo {
name: string;
}
export interface OwoxMessage
= Record> {
version: typeof MESSAGE_VERSION;
body: TBody;
/** Timestamp with milliseconds since epoch */
order: number;
producer: ProducerInfo;
}
/**
* Build an OWOX message envelope around provided body.
*/
export declare function buildOwoxMessage>(body: TBody): OwoxMessage;
export {};
//# sourceMappingURL=message-format.d.ts.map