/** * UI display types and helpers. */ import type { Message } from "@earendil-works/pi-ai"; /** A display-friendly representation of a message part. */ export type DisplayItem = { type: "text"; text: string; } | { type: "toolCall"; name: string; args: Record; }; /** Extract all display-worthy items from a message history. */ export declare function getFlowDisplayItems(messages: Message[]): DisplayItem[]; /** Extract the last tool call from message history. */ export declare function getLastToolCall(messages: Message[]): { type: "toolCall"; name: string; args: Record; } | undefined; /** Extract the last assistant text from message history. */ export declare function getLastAssistantText(messages: Message[]): string; //# sourceMappingURL=ui.d.ts.map