/** Type of a message exchanged within the Otter Framework */ export declare const otterMessageType = "otter"; /** Target of a message that should be handled by the application */ export declare const applicationMessageTarget = "app"; export interface OtterMessageContent { /** Type of data */ dataType: DataType; } export interface OtterMessage { /** Type of the message */ type: typeof otterMessageType; /** Version of the message (default to the `@o3r/core` version ) */ version?: string; /** Target of the message */ to: Target; /** Message content */ content: Content; } /** Type helper to retrieve the data types of a union of MessageContent */ export type MessageDataTypes = T['dataType']; /** Type helper to filter the message that can be received by the application */ export type FilterMessageToApplication = T extends { to: infer U; } ? U extends (typeof applicationMessageTarget | undefined) ? T : never : never; export type ContentMessageData = T extends any ? Omit : never; //# sourceMappingURL=message-interfaces.d.ts.map