import { z } from 'zod'; declare const CHAT_ALLOWED_MIME_TYPES: readonly ["image/png", "image/jpeg", "image/gif", "image/webp", "text/plain", "text/csv", "text/markdown", "application/json", "application/pdf"]; export declare enum PersistedChatPartType { TEXT = "text", REASONING = "reasoning", TOOL_CALL = "tool-call", THINKING_STATUS = "thinking-status", BATCH_PROGRESS = "batch-progress", ACTION_RECEIPT = "action-receipt" } export declare enum PersistedToolCallStatus { COMPLETED = "completed", ERROR = "error" } export declare enum PersistedChatRole { USER = "user", ASSISTANT = "assistant" } declare const PersistedTextPartSchema: z.ZodObject<{ type: z.ZodLiteral; text: z.ZodString; }, z.core.$strip>; declare const PersistedReasoningPartSchema: z.ZodObject<{ type: z.ZodLiteral; text: z.ZodString; }, z.core.$strip>; declare const PersistedToolCallPartSchema: z.ZodObject<{ type: z.ZodLiteral; toolCallId: z.ZodString; toolName: z.ZodString; title: z.ZodOptional; description: z.ZodOptional; input: z.ZodRecord; output: z.ZodOptional; status: z.ZodEnum<{ completed: PersistedToolCallStatus.COMPLETED; error: PersistedToolCallStatus.ERROR; }>; errorText: z.ZodOptional; }, z.core.$strip>; declare const PersistedThinkingStatusPartSchema: z.ZodObject<{ type: z.ZodLiteral; text: z.ZodString; }, z.core.$strip>; declare const PersistedActionReceiptPartSchema: z.ZodObject<{ type: z.ZodLiteral; toolCallId: z.ZodString; actionDisplayName: z.ZodString; pieceName: z.ZodString; connectionLabel: z.ZodOptional; status: z.ZodEnum<{ success: "success"; failed: "failed"; }>; output: z.ZodOptional; errorMessage: z.ZodOptional; timestamp: z.ZodString; }, z.core.$strip>; declare const PersistedChatPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; toolCallId: z.ZodString; toolName: z.ZodString; title: z.ZodOptional; description: z.ZodOptional; input: z.ZodRecord; output: z.ZodOptional; status: z.ZodEnum<{ completed: PersistedToolCallStatus.COMPLETED; error: PersistedToolCallStatus.ERROR; }>; errorText: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; data: z.ZodRecord; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; toolCallId: z.ZodString; actionDisplayName: z.ZodString; pieceName: z.ZodString; connectionLabel: z.ZodOptional; status: z.ZodEnum<{ success: "success"; failed: "failed"; }>; output: z.ZodOptional; errorMessage: z.ZodOptional; timestamp: z.ZodString; }, z.core.$strip>], "type">; export declare const PersistedChatMessageSchema: z.ZodObject<{ role: z.ZodEnum<{ user: PersistedChatRole.USER; assistant: PersistedChatRole.ASSISTANT; }>; parts: z.ZodArray; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; toolCallId: z.ZodString; toolName: z.ZodString; title: z.ZodOptional; description: z.ZodOptional; input: z.ZodRecord; output: z.ZodOptional; status: z.ZodEnum<{ completed: PersistedToolCallStatus.COMPLETED; error: PersistedToolCallStatus.ERROR; }>; errorText: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; data: z.ZodRecord; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; toolCallId: z.ZodString; actionDisplayName: z.ZodString; pieceName: z.ZodString; connectionLabel: z.ZodOptional; status: z.ZodEnum<{ success: "success"; failed: "failed"; }>; output: z.ZodOptional; errorMessage: z.ZodOptional; timestamp: z.ZodString; }, z.core.$strip>], "type">>; thinkingDurationMs: z.ZodOptional; }, z.core.$strip>; export type PersistedTextPart = z.infer; export type PersistedReasoningPart = z.infer; export type PersistedToolCallPart = z.infer; export type PersistedThinkingStatusPart = z.infer; export type PersistedActionReceiptPart = z.infer; export type PersistedChatPart = z.infer; export type PersistedChatMessage = z.infer; export declare enum ChatConversationStatus { IDLE = "IDLE", STREAMING = "STREAMING", ERROR = "ERROR" } export declare const ChatConversation: z.ZodObject<{ platformId: z.ZodString; projectId: z.ZodOptional>; userId: z.ZodString; title: z.ZodOptional>; modelName: z.ZodOptional>; status: z.ZodDefault>; messages: z.ZodDefault>>; uiMessages: z.ZodDefault; parts: z.ZodArray; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; toolCallId: z.ZodString; toolName: z.ZodString; title: z.ZodOptional; description: z.ZodOptional; input: z.ZodRecord; output: z.ZodOptional; status: z.ZodEnum<{ completed: PersistedToolCallStatus.COMPLETED; error: PersistedToolCallStatus.ERROR; }>; errorText: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; data: z.ZodRecord; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; toolCallId: z.ZodString; actionDisplayName: z.ZodString; pieceName: z.ZodString; connectionLabel: z.ZodOptional; status: z.ZodEnum<{ success: "success"; failed: "failed"; }>; output: z.ZodOptional; errorMessage: z.ZodOptional; timestamp: z.ZodString; }, z.core.$strip>], "type">>; thinkingDurationMs: z.ZodOptional; }, z.core.$strip>>>>; summary: z.ZodOptional>; summarizedUpToIndex: z.ZodOptional>; id: z.ZodString; created: z.ZodPipe, z.ZodString>; updated: z.ZodPipe, z.ZodString>; }, z.core.$strip>; export type ChatConversation = z.infer; export declare const CreateChatConversationRequest: z.ZodObject<{ title: z.ZodOptional>>; modelName: z.ZodOptional>>; }, z.core.$strip>; export type CreateChatConversationRequest = z.infer; export declare const UpdateChatConversationRequest: z.ZodObject<{ title: z.ZodOptional>>; modelName: z.ZodOptional>>; }, z.core.$strip>; export type UpdateChatConversationRequest = z.infer; export declare const SendChatMessageRequest: z.ZodObject<{ content: z.ZodString; runId: z.ZodOptional; files: z.ZodOptional; data: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>; export type SendChatMessageRequest = z.infer; export declare const SimulateChatRequest: z.ZodObject<{ platformId: z.ZodString; userMessage: z.ZodOptional; userMessages: z.ZodOptional>; promptOverride: z.ZodOptional; projectSelected: z.ZodOptional; noProject: z.ZodOptional; guides: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; export type SimulateChatRequest = z.infer; export type ChatHistoryToolCall = { toolCallId: string; title: string; status: string; input?: Record; output?: string; }; export type ChatHistoryMessage = { role: 'user' | 'assistant'; content: string; toolCalls?: ChatHistoryToolCall[]; thoughts?: string; }; export type ChatToolOutputs = { ap_set_session_title: { success: boolean; }; ap_select_project: { success: boolean; message?: string; error?: string; }; ap_list_across_projects: { content: { type: string; text: string; }[]; }; ap_execute_action: { noAuthRequired: true; piece: string; } | { needsConnection: true; piece: string; displayName: string; } | { pickConnection: true; piece: string; displayName: string; connections: ConnectionOption[]; } | { success: boolean; error?: string; output?: unknown; }; ap_show_connection_required: { displayed: boolean; }; ap_show_connection_picker: { displayed: boolean; }; ap_show_project_picker: { displayed: boolean; }; ap_show_questions: { displayed: boolean; }; ap_show_quick_replies: { displayed: boolean; }; ap_update_thinking_status: { success: boolean; }; }; export type ConnectionOption = { label: string; project: string; externalId: string; projectId: string; status: string; }; export type ChatToolName = keyof ChatToolOutputs; declare function unwrapToolOutput(output: unknown): unknown; export declare const chatPersistenceUtils: { unwrapToolOutput: typeof unwrapToolOutput; }; export type BatchItemResult = { index: number; success: boolean; output?: unknown; error?: string; }; export type BatchProgressData = { label: string; total: number; completed: number; succeeded: number; failed: number; done: boolean; results: BatchItemResult[]; }; export type ChatAllowedMimeType = typeof CHAT_ALLOWED_MIME_TYPES[number]; export { CHAT_ALLOWED_MIME_TYPES }; export { chatToolClassification } from './tool-classification'; export { chatToolPhases, type ChatPhase } from './tool-phases'; //# sourceMappingURL=index.d.ts.map