import type { Component } from '@earendil-works/pi-tui'; import type { MastraDBMessage } from '@mastra/core/agent-controller'; import type { TaskItemSnapshot } from '@mastra/core/signals'; import { formatToolResult } from './handlers/tool.js'; import type { TUIState } from './state.js'; export { formatToolResult }; /** * Render inline display when tasks are cleared. */ export declare function renderClearedTasksInline(state: TUIState, clearedTasks: TaskItemSnapshot[], insertIndex?: number): void; export declare function renderCompletedTasksInline(state: TUIState, completedTasks: TaskItemSnapshot[], insertIndex?: number): void; export declare function renderTaskDeltaInline(state: TUIState, previousTasks: TaskItemSnapshot[], nextTasks: TaskItemSnapshot[], insertIndex?: number): boolean; export declare function addChildBeforeMessageOrFollowUps(state: TUIState, child: Component, precedesMessageId?: string): void; /** * Add a user message to the chat container. */ export declare function addPendingUserMessage(state: TUIState, messageId: string, text: string, images?: Array<{ data: string; mimeType: string; }>, options?: { isInterjection?: boolean; }): void; export declare function confirmPendingUserMessage(state: TUIState, messageId: string, text: string, attachments?: { imageCount: number; fileCount: number; }): void; export declare function removePendingUserMessage(state: TUIState, messageId: string): void; export declare function removeUserMessage(state: TUIState, messageId: string): void; export declare function clearPendingUserMessages(state: TUIState): void; /** * Render a `role: 'signal'` message into its dedicated TUI component (reminder, * judge, state, reactive, notification, notification-summary). Returns true when * the signal was fully handled; returns false for `user`-kind signals so the * caller renders it through the shared user-message component path. */ export declare function renderSignalMessage(state: TUIState, message: MastraDBMessage): boolean; export declare function addUserMessage(state: TUIState, message: MastraDBMessage, options?: { label?: string; }): void; /** * Re-render all existing messages from the controller thread into the chat container. * Called on thread switch and initial load. */ export declare function renderExistingMessages(state: TUIState): Promise; //# sourceMappingURL=render-messages.d.ts.map