export type ChatAttachmentState = "preparing" | "indexing" | "ready" | "failed"; export type ChatMessageRole = "user" | "agent" | "system"; export type ChatLaunchStatus = "requested" | "queued" | "running" | "blocked" | "completed" | "failed"; export type ChatThreadStatus = "message_only" | "queued" | "running" | "blocked" | "completed" | "failed"; export type ChatAttachmentRecord = { id: string; name: string; mimeType: string | null; sizeBytes: number | null; status: ChatAttachmentState; error: string | null; masked: boolean; createdAt: string; updatedAt: string; }; export type ChatMessageRecord = { id: string; threadId: string; role: ChatMessageRole; body: string; senderId: string | null; senderName: string | null; createdAt: string; updatedAt: string; attachments: ChatAttachmentRecord[]; metadata: Record; }; export type ChatLaunchAttemptRecord = { id: string; threadId: string; messageId: string; assigneeId: string | null; assigneeName: string | null; watcherIds: string[]; watcherNames: string[]; executionMode: "local_queue" | "cloud" | "hybrid"; provider: string | null; runId: string | null; status: ChatLaunchStatus; blockedReason: string | null; warnings: string[]; requestedAt: string; updatedAt: string; metadata: Record; }; export type ChatThreadRecord = { id: string; commandCenterId: string | null; initiativeId: string | null; initiativeTitle: string | null; workstreamId: string | null; taskId: string | null; title: string; summary: string | null; status: ChatThreadStatus; assigneeId: string | null; assigneeName: string | null; watcherIds: string[]; watcherNames: string[]; messageCount: number; launchCount: number; lastMessageAt: string | null; lastLaunchAt: string | null; lastActivityAt: string; lastSnippet: string | null; createdAt: string; updatedAt: string; messages: ChatMessageRecord[]; launches: ChatLaunchAttemptRecord[]; metadata: Record; }; export type ChatThreadSummary = Omit & { latestMessage: ChatMessageRecord | null; latestLaunch: ChatLaunchAttemptRecord | null; }; export declare function listChatThreads(input?: { commandCenterId?: string | null; initiativeId?: string | null; query?: string | null; status?: string | null; limit?: number; offset?: number; }): { threads: ChatThreadSummary[]; total: number; updatedAt: string; }; export declare function getChatThread(threadId: string): ChatThreadRecord | null; export declare function sendChatMessage(input: { threadId?: string | null; commandCenterId?: string | null; initiativeId?: string | null; initiativeTitle?: string | null; workstreamId?: string | null; taskId?: string | null; title?: string | null; body: string; role?: ChatMessageRole; senderId?: string | null; senderName?: string | null; assigneeId?: string | null; assigneeName?: string | null; watcherIds?: string[]; watcherNames?: string[]; attachments?: Array & { name?: string | null; }>; metadata?: Record; }): { thread: ChatThreadRecord; message: ChatMessageRecord; createdThread: boolean; updatedAt: string; }; export declare function recordChatLaunch(input: { threadId: string; messageId: string; assigneeId?: string | null; assigneeName?: string | null; watcherIds?: string[]; watcherNames?: string[]; executionMode?: "local_queue" | "cloud" | "hybrid"; provider?: string | null; runId?: string | null; status?: ChatLaunchStatus; blockedReason?: string | null; warnings?: string[]; metadata?: Record; }): { thread: ChatThreadRecord; launch: ChatLaunchAttemptRecord; updatedAt: string; }; export declare function updateChatLaunchStatus(input: { threadId: string; launchId: string; status: ChatLaunchStatus; runId?: string | null; blockedReason?: string | null; warnings?: string[]; }): { thread: ChatThreadRecord; launch: ChatLaunchAttemptRecord; updatedAt: string; }; export declare function linkChatThreadScope(input: { threadId: string; commandCenterId?: string | null; initiativeId?: string | null; initiativeTitle?: string | null; workstreamId?: string | null; taskId?: string | null; }): { thread: ChatThreadRecord; eventMessage: ChatMessageRecord; updatedAt: string; };