import type { ImageContent, Message, Tool } from "@earendil-works/pi-ai"; export interface KiroImage { format: string; source: { bytes: string; }; } export interface KiroToolUse { name: string; toolUseId: string; input: Record; } export interface KiroToolResult { content: Array<{ text: string; }>; status: "success" | "error"; toolUseId: string; } export interface KiroToolSpec { toolSpecification: { name: string; description: string; inputSchema: { json: Record; }; }; } export interface KiroUserInputMessage { content: string; modelId: string; origin: "KIRO_CLI"; images?: KiroImage[]; userInputMessageContext?: { toolResults?: KiroToolResult[]; tools?: KiroToolSpec[]; }; } export interface KiroAssistantResponseMessage { content: string; toolUses?: KiroToolUse[]; } export interface KiroHistoryEntry { userInputMessage?: KiroUserInputMessage; assistantResponseMessage?: KiroAssistantResponseMessage; } export declare const TOOL_RESULT_LIMIT = 250000; export declare function normalizeToolUseId(toolUseId: string): string; export declare function sanitizeSurrogates(text: string): string; export declare function truncate(text: string, limit: number): string; export declare function normalizeMessages(messages: Message[]): Message[]; export declare function extractImages(msg: Message): ImageContent[]; export declare function getContentText(msg: Message): string; export declare function convertToolsToKiro(tools: Tool[]): KiroToolSpec[]; export declare function convertImagesToKiro(images: Array<{ mimeType: string; data: string; }>): KiroImage[]; export declare function buildHistory(messages: Message[], modelId: string, systemPrompt?: string): { history: KiroHistoryEntry[]; systemPrepended: boolean; currentMsgStartIdx: number; }; //# sourceMappingURL=transform.d.ts.map