/** * Event handlers for message streaming events: * message_start, message_update, message_end. * * The harness streams the canonical `MastraDBMessage` shape: assistant text / * reasoning / tool calls live as nested `content.parts`, and signals arrive as * their own `role: 'signal'` messages (their own `message_start`/`message_end` * pair) rather than inline parts of an assistant message. Signal rendering is * therefore delegated to `addUserMessage` / `renderSignalMessage`; this file * only drives the streaming assistant component and its tool boundaries. */ import type { MastraDBMessage } from '@mastra/core/agent-controller'; import type { EventHandlerContext } from './types.js'; export declare function handleMessageStart(ctx: EventHandlerContext, message: MastraDBMessage): void; export declare function handleMessageUpdate(ctx: EventHandlerContext, message: MastraDBMessage): void; export declare function handleMessageEnd(ctx: EventHandlerContext, message: MastraDBMessage): void; //# sourceMappingURL=message.d.ts.map