//#region src/compat/vendor/pi-types.d.ts interface TextContent { type: 'text'; text: string; [key: string]: unknown; } interface ImageContent { type: 'image'; data: string; mimeType: string; [key: string]: unknown; } interface ThinkingContent { type: 'thinking'; thinking: string; [key: string]: unknown; } interface ToolCallContent { type: 'toolCall'; id: string; name: string; arguments: unknown; [key: string]: unknown; } interface Usage { input?: number; output?: number; cacheRead?: number; cacheWrite?: number; [key: string]: unknown; } interface UserMessage { role: 'user'; content: string | (TextContent | ImageContent)[]; timestamp?: number; [key: string]: unknown; } interface AssistantMessage { role: 'assistant'; content: (TextContent | ThinkingContent | ToolCallContent)[]; usage?: Usage; timestamp?: number; [key: string]: unknown; } interface ToolResultMessage { role: 'toolResult'; toolCallId?: string; content: (TextContent | ImageContent)[]; isError?: boolean; timestamp?: number; [key: string]: unknown; } type Message = UserMessage | AssistantMessage | ToolResultMessage; type AgentMessage = Message | { role: string; timestamp?: number; [key: string]: unknown; }; //#endregion export { TextContent as a, ToolResultMessage as c, Message as i, Usage as l, AssistantMessage as n, ThinkingContent as o, ImageContent as r, ToolCallContent as s, AgentMessage as t, UserMessage as u }; //# sourceMappingURL=pi-types-KazmR2O5.d.mts.map