import type { Component } from '@mariozechner/pi-tui'; import type { HarnessMessage, TaskItemSnapshot } from '@mastra/core/harness'; import { formatToolResult } from './handlers/tool.js'; import type { TUIState } from './state.js'; export { formatToolResult }; /** * Render a completed task list inline in the chat history. */ export declare function renderCompletedTasksInline(state: TUIState, tasks: TaskItemSnapshot[], insertIndex?: number, collapsed?: boolean): void; /** * Render inline display when tasks are cleared. */ export declare function renderClearedTasksInline(state: TUIState, clearedTasks: TaskItemSnapshot[], insertIndex?: number): void; 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): void; export declare function removePendingUserMessage(state: TUIState, messageId: string): void; export declare function clearPendingUserMessages(state: TUIState): void; export declare function addUserMessage(state: TUIState, message: HarnessMessage, options?: { label?: string; }): void; /** * Re-render all existing messages from the harness 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