/** * Complete TypeScript definitions for Cursor message structure * Inferred from analyzing actual Cursor SQLite database messages */ import { z } from 'zod'; export interface CursorTokenCount { inputTokens: number; outputTokens: number; } export interface CursorTimingInfo { clientStartTime?: number; clientRpcSendTime?: number; clientSettleTime?: number; clientEndTime?: number; } export interface CursorFileSelection { uri: { scheme: string; authority: string; path: string; query: string; fragment: string; fsPath: string; }; range?: { start: { line: number; character: number; }; end: { line: number; character: number; }; }; } export interface CursorContext { notepads: any[]; composers: any[]; quotes: any[]; selectedCommits: any[]; selectedPullRequests: any[]; selectedImages: any[]; usesCodebase?: boolean; folderSelections: any[]; fileSelections: CursorFileSelection[]; terminalFiles: any[]; selections: any[]; terminalSelections: any[]; selectedDocs: any[]; externalLinks: any[]; cursorRules: any[]; cursorCommands?: any[]; uiElementSelections?: any[]; mentions: { [key: string]: any; }; } export interface CursorToolFormerDataError { additionalData: { status: "error"; }; } export interface CursorToolFormerDataComplete { tool: number; toolCallId: string; toolIndex: number; modelCallId: string; status: "completed"; rawArgs: string; name: string; params: string; additionalData: Record; userDecision?: "accepted" | "rejected"; result: string; } export type CursorToolFormerData = CursorToolFormerDataError | CursorToolFormerDataComplete; export interface CursorMessageBase { _v: number; type: 1 | 2; bubbleId: string; approximateLintErrors: any[]; lints: any[]; codebaseContextChunks: any[]; commits: any[]; pullRequests: any[]; attachedCodeChunks: any[]; assistantSuggestedDiffs: any[]; gitDiffs: any[]; interpreterResults: any[]; images: any[]; attachedFolders: any[]; attachedFoldersNew: any[]; userResponsesToSuggestedCodeBlocks: any[]; suggestedCodeBlocks: any[]; diffsForCompressingFiles: any[]; relevantFiles: string[]; toolResults: any[]; notepads: any[]; capabilities: any[]; capabilityStatuses: { [key: string]: any[]; }; multiFileLinterErrors: any[]; diffHistories: any[]; recentLocationsHistory: any[]; recentlyViewedFiles: any[]; fileDiffTrajectories: any[]; docsReferences: any[]; webReferences: any[]; aiWebSearchResults?: any[]; attachedFoldersListDirResults: any[]; humanChanges: any[]; summarizedComposers: any[]; cursorRules: any[]; contextPieces: any[]; editTrailContexts: any[]; allThinkingBlocks: any[]; diffsSinceLastApply: any[]; deletedFiles: any[]; supportedTools: number[]; attachedFileCodeChunksMetadataOnly?: any[]; consoleLogs?: any[]; uiElementPicked?: any[]; knowledgeItems?: any[]; documentationSelections?: any[]; externalLinks?: any[]; projectLayouts?: any[]; capabilityContexts?: any[]; todos?: any[]; codeBlocks?: any[]; isAgentic: boolean; existedSubsequentTerminalCommand: boolean; existedPreviousTerminalCommand: boolean; requestId?: string; attachedHumanChanges?: boolean; isRefunded?: boolean; useWeb?: boolean; unifiedMode?: number; tokenCount: CursorTokenCount; toolFormerData?: CursorToolFormerData; timingInfo?: CursorTimingInfo; serverBubbleId?: string; usageUuid?: string; capabilityType?: number; } export interface CursorUserMessage extends CursorMessageBase { type: 1; text: string; richText?: string; context?: CursorContext; editToolSupportsSearchAndReplace?: boolean; isNudge?: boolean; attachedFileCodeChunksUris?: string[]; capabilitiesRan?: { [key: string]: number[]; }; } export interface CursorAssistantMessage extends CursorMessageBase { type: 2; text: string; } export type CursorMessage = CursorUserMessage | CursorAssistantMessage; export declare const cursorUserMessageSchema: z.ZodObject<{ _v: z.ZodNumber; bubbleId: z.ZodString; approximateLintErrors: z.ZodArray; lints: z.ZodArray; codebaseContextChunks: z.ZodArray; commits: z.ZodArray; pullRequests: z.ZodArray; attachedCodeChunks: z.ZodArray; assistantSuggestedDiffs: z.ZodArray; gitDiffs: z.ZodArray; interpreterResults: z.ZodArray; images: z.ZodArray; attachedFolders: z.ZodArray; attachedFoldersNew: z.ZodArray; userResponsesToSuggestedCodeBlocks: z.ZodArray; suggestedCodeBlocks: z.ZodArray; diffsForCompressingFiles: z.ZodArray; relevantFiles: z.ZodArray; toolResults: z.ZodArray; notepads: z.ZodArray; capabilities: z.ZodArray; capabilityStatuses: z.ZodRecord>; multiFileLinterErrors: z.ZodArray; diffHistories: z.ZodArray; recentLocationsHistory: z.ZodArray; recentlyViewedFiles: z.ZodArray; fileDiffTrajectories: z.ZodArray; docsReferences: z.ZodArray; webReferences: z.ZodArray; aiWebSearchResults: z.ZodOptional>; attachedFoldersListDirResults: z.ZodArray; humanChanges: z.ZodArray; summarizedComposers: z.ZodArray; cursorRules: z.ZodArray; contextPieces: z.ZodArray; editTrailContexts: z.ZodArray; allThinkingBlocks: z.ZodArray; diffsSinceLastApply: z.ZodArray; deletedFiles: z.ZodArray; supportedTools: z.ZodArray; attachedFileCodeChunksMetadataOnly: z.ZodOptional>; consoleLogs: z.ZodOptional>; uiElementPicked: z.ZodOptional>; knowledgeItems: z.ZodOptional>; documentationSelections: z.ZodOptional>; externalLinks: z.ZodOptional>; projectLayouts: z.ZodOptional>; capabilityContexts: z.ZodOptional>; todos: z.ZodOptional>; codeBlocks: z.ZodOptional>; isAgentic: z.ZodBoolean; existedSubsequentTerminalCommand: z.ZodBoolean; existedPreviousTerminalCommand: z.ZodBoolean; requestId: z.ZodOptional; attachedHumanChanges: z.ZodOptional; isRefunded: z.ZodOptional; useWeb: z.ZodOptional; unifiedMode: z.ZodOptional; tokenCount: z.ZodObject<{ inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; }, "strip", z.ZodTypeAny, { inputTokens: number; outputTokens: number; }, { inputTokens: number; outputTokens: number; }>; toolFormerData: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "error"; }, { status: "error"; }>; }, "strip", z.ZodTypeAny, { additionalData: { status: "error"; }; }, { additionalData: { status: "error"; }; }>, z.ZodObject<{ tool: z.ZodNumber; toolCallId: z.ZodString; toolIndex: z.ZodNumber; modelCallId: z.ZodString; status: z.ZodLiteral<"completed">; rawArgs: z.ZodString; name: z.ZodString; params: z.ZodString; additionalData: z.ZodRecord; userDecision: z.ZodOptional>; result: z.ZodString; }, "strip", z.ZodTypeAny, { tool: number; params: string; status: "completed"; additionalData: Record; toolCallId: string; toolIndex: number; modelCallId: string; rawArgs: string; name: string; result: string; userDecision?: "accepted" | "rejected" | undefined; }, { tool: number; params: string; status: "completed"; additionalData: Record; toolCallId: string; toolIndex: number; modelCallId: string; rawArgs: string; name: string; result: string; userDecision?: "accepted" | "rejected" | undefined; }>]>>; timingInfo: z.ZodOptional; clientRpcSendTime: z.ZodOptional; clientSettleTime: z.ZodOptional; clientEndTime: z.ZodOptional; }, "strip", z.ZodTypeAny, { clientStartTime?: number | undefined; clientRpcSendTime?: number | undefined; clientSettleTime?: number | undefined; clientEndTime?: number | undefined; }, { clientStartTime?: number | undefined; clientRpcSendTime?: number | undefined; clientSettleTime?: number | undefined; clientEndTime?: number | undefined; }>>; serverBubbleId: z.ZodOptional; usageUuid: z.ZodOptional; capabilityType: z.ZodOptional; } & { type: z.ZodLiteral<1>; text: z.ZodString; richText: z.ZodOptional; context: z.ZodOptional; editToolSupportsSearchAndReplace: z.ZodOptional; isNudge: z.ZodOptional; attachedFileCodeChunksUris: z.ZodOptional>; capabilitiesRan: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { text: string; type: 1; _v: number; bubbleId: string; approximateLintErrors: any[]; lints: any[]; codebaseContextChunks: any[]; commits: any[]; pullRequests: any[]; attachedCodeChunks: any[]; assistantSuggestedDiffs: any[]; gitDiffs: any[]; interpreterResults: any[]; images: any[]; attachedFolders: any[]; attachedFoldersNew: any[]; userResponsesToSuggestedCodeBlocks: any[]; suggestedCodeBlocks: any[]; diffsForCompressingFiles: any[]; relevantFiles: string[]; toolResults: any[]; notepads: any[]; capabilities: any[]; capabilityStatuses: Record; multiFileLinterErrors: any[]; diffHistories: any[]; recentLocationsHistory: any[]; recentlyViewedFiles: any[]; fileDiffTrajectories: any[]; docsReferences: any[]; webReferences: any[]; attachedFoldersListDirResults: any[]; humanChanges: any[]; summarizedComposers: any[]; cursorRules: any[]; contextPieces: any[]; editTrailContexts: any[]; allThinkingBlocks: any[]; diffsSinceLastApply: any[]; deletedFiles: any[]; supportedTools: number[]; isAgentic: boolean; existedSubsequentTerminalCommand: boolean; existedPreviousTerminalCommand: boolean; tokenCount: { inputTokens: number; outputTokens: number; }; aiWebSearchResults?: any[] | undefined; attachedFileCodeChunksMetadataOnly?: any[] | undefined; consoleLogs?: any[] | undefined; uiElementPicked?: any[] | undefined; knowledgeItems?: any[] | undefined; documentationSelections?: any[] | undefined; externalLinks?: any[] | undefined; projectLayouts?: any[] | undefined; capabilityContexts?: any[] | undefined; todos?: any[] | undefined; codeBlocks?: any[] | undefined; requestId?: string | undefined; attachedHumanChanges?: boolean | undefined; isRefunded?: boolean | undefined; useWeb?: boolean | undefined; unifiedMode?: number | undefined; toolFormerData?: { additionalData: { status: "error"; }; } | { tool: number; params: string; status: "completed"; additionalData: Record; toolCallId: string; toolIndex: number; modelCallId: string; rawArgs: string; name: string; result: string; userDecision?: "accepted" | "rejected" | undefined; } | undefined; timingInfo?: { clientStartTime?: number | undefined; clientRpcSendTime?: number | undefined; clientSettleTime?: number | undefined; clientEndTime?: number | undefined; } | undefined; serverBubbleId?: string | undefined; usageUuid?: string | undefined; capabilityType?: number | undefined; richText?: string | undefined; context?: any; editToolSupportsSearchAndReplace?: boolean | undefined; isNudge?: boolean | undefined; attachedFileCodeChunksUris?: string[] | undefined; capabilitiesRan?: Record | undefined; }, { text: string; type: 1; _v: number; bubbleId: string; approximateLintErrors: any[]; lints: any[]; codebaseContextChunks: any[]; commits: any[]; pullRequests: any[]; attachedCodeChunks: any[]; assistantSuggestedDiffs: any[]; gitDiffs: any[]; interpreterResults: any[]; images: any[]; attachedFolders: any[]; attachedFoldersNew: any[]; userResponsesToSuggestedCodeBlocks: any[]; suggestedCodeBlocks: any[]; diffsForCompressingFiles: any[]; relevantFiles: string[]; toolResults: any[]; notepads: any[]; capabilities: any[]; capabilityStatuses: Record; multiFileLinterErrors: any[]; diffHistories: any[]; recentLocationsHistory: any[]; recentlyViewedFiles: any[]; fileDiffTrajectories: any[]; docsReferences: any[]; webReferences: any[]; attachedFoldersListDirResults: any[]; humanChanges: any[]; summarizedComposers: any[]; cursorRules: any[]; contextPieces: any[]; editTrailContexts: any[]; allThinkingBlocks: any[]; diffsSinceLastApply: any[]; deletedFiles: any[]; supportedTools: number[]; isAgentic: boolean; existedSubsequentTerminalCommand: boolean; existedPreviousTerminalCommand: boolean; tokenCount: { inputTokens: number; outputTokens: number; }; aiWebSearchResults?: any[] | undefined; attachedFileCodeChunksMetadataOnly?: any[] | undefined; consoleLogs?: any[] | undefined; uiElementPicked?: any[] | undefined; knowledgeItems?: any[] | undefined; documentationSelections?: any[] | undefined; externalLinks?: any[] | undefined; projectLayouts?: any[] | undefined; capabilityContexts?: any[] | undefined; todos?: any[] | undefined; codeBlocks?: any[] | undefined; requestId?: string | undefined; attachedHumanChanges?: boolean | undefined; isRefunded?: boolean | undefined; useWeb?: boolean | undefined; unifiedMode?: number | undefined; toolFormerData?: { additionalData: { status: "error"; }; } | { tool: number; params: string; status: "completed"; additionalData: Record; toolCallId: string; toolIndex: number; modelCallId: string; rawArgs: string; name: string; result: string; userDecision?: "accepted" | "rejected" | undefined; } | undefined; timingInfo?: { clientStartTime?: number | undefined; clientRpcSendTime?: number | undefined; clientSettleTime?: number | undefined; clientEndTime?: number | undefined; } | undefined; serverBubbleId?: string | undefined; usageUuid?: string | undefined; capabilityType?: number | undefined; richText?: string | undefined; context?: any; editToolSupportsSearchAndReplace?: boolean | undefined; isNudge?: boolean | undefined; attachedFileCodeChunksUris?: string[] | undefined; capabilitiesRan?: Record | undefined; }>; export declare const cursorAssistantMessageSchema: z.ZodObject<{ _v: z.ZodNumber; bubbleId: z.ZodString; approximateLintErrors: z.ZodArray; lints: z.ZodArray; codebaseContextChunks: z.ZodArray; commits: z.ZodArray; pullRequests: z.ZodArray; attachedCodeChunks: z.ZodArray; assistantSuggestedDiffs: z.ZodArray; gitDiffs: z.ZodArray; interpreterResults: z.ZodArray; images: z.ZodArray; attachedFolders: z.ZodArray; attachedFoldersNew: z.ZodArray; userResponsesToSuggestedCodeBlocks: z.ZodArray; suggestedCodeBlocks: z.ZodArray; diffsForCompressingFiles: z.ZodArray; relevantFiles: z.ZodArray; toolResults: z.ZodArray; notepads: z.ZodArray; capabilities: z.ZodArray; capabilityStatuses: z.ZodRecord>; multiFileLinterErrors: z.ZodArray; diffHistories: z.ZodArray; recentLocationsHistory: z.ZodArray; recentlyViewedFiles: z.ZodArray; fileDiffTrajectories: z.ZodArray; docsReferences: z.ZodArray; webReferences: z.ZodArray; aiWebSearchResults: z.ZodOptional>; attachedFoldersListDirResults: z.ZodArray; humanChanges: z.ZodArray; summarizedComposers: z.ZodArray; cursorRules: z.ZodArray; contextPieces: z.ZodArray; editTrailContexts: z.ZodArray; allThinkingBlocks: z.ZodArray; diffsSinceLastApply: z.ZodArray; deletedFiles: z.ZodArray; supportedTools: z.ZodArray; attachedFileCodeChunksMetadataOnly: z.ZodOptional>; consoleLogs: z.ZodOptional>; uiElementPicked: z.ZodOptional>; knowledgeItems: z.ZodOptional>; documentationSelections: z.ZodOptional>; externalLinks: z.ZodOptional>; projectLayouts: z.ZodOptional>; capabilityContexts: z.ZodOptional>; todos: z.ZodOptional>; codeBlocks: z.ZodOptional>; isAgentic: z.ZodBoolean; existedSubsequentTerminalCommand: z.ZodBoolean; existedPreviousTerminalCommand: z.ZodBoolean; requestId: z.ZodOptional; attachedHumanChanges: z.ZodOptional; isRefunded: z.ZodOptional; useWeb: z.ZodOptional; unifiedMode: z.ZodOptional; tokenCount: z.ZodObject<{ inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; }, "strip", z.ZodTypeAny, { inputTokens: number; outputTokens: number; }, { inputTokens: number; outputTokens: number; }>; toolFormerData: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "error"; }, { status: "error"; }>; }, "strip", z.ZodTypeAny, { additionalData: { status: "error"; }; }, { additionalData: { status: "error"; }; }>, z.ZodObject<{ tool: z.ZodNumber; toolCallId: z.ZodString; toolIndex: z.ZodNumber; modelCallId: z.ZodString; status: z.ZodLiteral<"completed">; rawArgs: z.ZodString; name: z.ZodString; params: z.ZodString; additionalData: z.ZodRecord; userDecision: z.ZodOptional>; result: z.ZodString; }, "strip", z.ZodTypeAny, { tool: number; params: string; status: "completed"; additionalData: Record; toolCallId: string; toolIndex: number; modelCallId: string; rawArgs: string; name: string; result: string; userDecision?: "accepted" | "rejected" | undefined; }, { tool: number; params: string; status: "completed"; additionalData: Record; toolCallId: string; toolIndex: number; modelCallId: string; rawArgs: string; name: string; result: string; userDecision?: "accepted" | "rejected" | undefined; }>]>>; timingInfo: z.ZodOptional; clientRpcSendTime: z.ZodOptional; clientSettleTime: z.ZodOptional; clientEndTime: z.ZodOptional; }, "strip", z.ZodTypeAny, { clientStartTime?: number | undefined; clientRpcSendTime?: number | undefined; clientSettleTime?: number | undefined; clientEndTime?: number | undefined; }, { clientStartTime?: number | undefined; clientRpcSendTime?: number | undefined; clientSettleTime?: number | undefined; clientEndTime?: number | undefined; }>>; serverBubbleId: z.ZodOptional; usageUuid: z.ZodOptional; capabilityType: z.ZodOptional; } & { type: z.ZodLiteral<2>; text: z.ZodString; }, "strip", z.ZodTypeAny, { text: string; type: 2; _v: number; bubbleId: string; approximateLintErrors: any[]; lints: any[]; codebaseContextChunks: any[]; commits: any[]; pullRequests: any[]; attachedCodeChunks: any[]; assistantSuggestedDiffs: any[]; gitDiffs: any[]; interpreterResults: any[]; images: any[]; attachedFolders: any[]; attachedFoldersNew: any[]; userResponsesToSuggestedCodeBlocks: any[]; suggestedCodeBlocks: any[]; diffsForCompressingFiles: any[]; relevantFiles: string[]; toolResults: any[]; notepads: any[]; capabilities: any[]; capabilityStatuses: Record; multiFileLinterErrors: any[]; diffHistories: any[]; recentLocationsHistory: any[]; recentlyViewedFiles: any[]; fileDiffTrajectories: any[]; docsReferences: any[]; webReferences: any[]; attachedFoldersListDirResults: any[]; humanChanges: any[]; summarizedComposers: any[]; cursorRules: any[]; contextPieces: any[]; editTrailContexts: any[]; allThinkingBlocks: any[]; diffsSinceLastApply: any[]; deletedFiles: any[]; supportedTools: number[]; isAgentic: boolean; existedSubsequentTerminalCommand: boolean; existedPreviousTerminalCommand: boolean; tokenCount: { inputTokens: number; outputTokens: number; }; aiWebSearchResults?: any[] | undefined; attachedFileCodeChunksMetadataOnly?: any[] | undefined; consoleLogs?: any[] | undefined; uiElementPicked?: any[] | undefined; knowledgeItems?: any[] | undefined; documentationSelections?: any[] | undefined; externalLinks?: any[] | undefined; projectLayouts?: any[] | undefined; capabilityContexts?: any[] | undefined; todos?: any[] | undefined; codeBlocks?: any[] | undefined; requestId?: string | undefined; attachedHumanChanges?: boolean | undefined; isRefunded?: boolean | undefined; useWeb?: boolean | undefined; unifiedMode?: number | undefined; toolFormerData?: { additionalData: { status: "error"; }; } | { tool: number; params: string; status: "completed"; additionalData: Record; toolCallId: string; toolIndex: number; modelCallId: string; rawArgs: string; name: string; result: string; userDecision?: "accepted" | "rejected" | undefined; } | undefined; timingInfo?: { clientStartTime?: number | undefined; clientRpcSendTime?: number | undefined; clientSettleTime?: number | undefined; clientEndTime?: number | undefined; } | undefined; serverBubbleId?: string | undefined; usageUuid?: string | undefined; capabilityType?: number | undefined; }, { text: string; type: 2; _v: number; bubbleId: string; approximateLintErrors: any[]; lints: any[]; codebaseContextChunks: any[]; commits: any[]; pullRequests: any[]; attachedCodeChunks: any[]; assistantSuggestedDiffs: any[]; gitDiffs: any[]; interpreterResults: any[]; images: any[]; attachedFolders: any[]; attachedFoldersNew: any[]; userResponsesToSuggestedCodeBlocks: any[]; suggestedCodeBlocks: any[]; diffsForCompressingFiles: any[]; relevantFiles: string[]; toolResults: any[]; notepads: any[]; capabilities: any[]; capabilityStatuses: Record; multiFileLinterErrors: any[]; diffHistories: any[]; recentLocationsHistory: any[]; recentlyViewedFiles: any[]; fileDiffTrajectories: any[]; docsReferences: any[]; webReferences: any[]; attachedFoldersListDirResults: any[]; humanChanges: any[]; summarizedComposers: any[]; cursorRules: any[]; contextPieces: any[]; editTrailContexts: any[]; allThinkingBlocks: any[]; diffsSinceLastApply: any[]; deletedFiles: any[]; supportedTools: number[]; isAgentic: boolean; existedSubsequentTerminalCommand: boolean; existedPreviousTerminalCommand: boolean; tokenCount: { inputTokens: number; outputTokens: number; }; aiWebSearchResults?: any[] | undefined; attachedFileCodeChunksMetadataOnly?: any[] | undefined; consoleLogs?: any[] | undefined; uiElementPicked?: any[] | undefined; knowledgeItems?: any[] | undefined; documentationSelections?: any[] | undefined; externalLinks?: any[] | undefined; projectLayouts?: any[] | undefined; capabilityContexts?: any[] | undefined; todos?: any[] | undefined; codeBlocks?: any[] | undefined; requestId?: string | undefined; attachedHumanChanges?: boolean | undefined; isRefunded?: boolean | undefined; useWeb?: boolean | undefined; unifiedMode?: number | undefined; toolFormerData?: { additionalData: { status: "error"; }; } | { tool: number; params: string; status: "completed"; additionalData: Record; toolCallId: string; toolIndex: number; modelCallId: string; rawArgs: string; name: string; result: string; userDecision?: "accepted" | "rejected" | undefined; } | undefined; timingInfo?: { clientStartTime?: number | undefined; clientRpcSendTime?: number | undefined; clientSettleTime?: number | undefined; clientEndTime?: number | undefined; } | undefined; serverBubbleId?: string | undefined; usageUuid?: string | undefined; capabilityType?: number | undefined; }>; export declare const cursorMessageSchema: z.ZodUnion<[z.ZodObject<{ _v: z.ZodNumber; bubbleId: z.ZodString; approximateLintErrors: z.ZodArray; lints: z.ZodArray; codebaseContextChunks: z.ZodArray; commits: z.ZodArray; pullRequests: z.ZodArray; attachedCodeChunks: z.ZodArray; assistantSuggestedDiffs: z.ZodArray; gitDiffs: z.ZodArray; interpreterResults: z.ZodArray; images: z.ZodArray; attachedFolders: z.ZodArray; attachedFoldersNew: z.ZodArray; userResponsesToSuggestedCodeBlocks: z.ZodArray; suggestedCodeBlocks: z.ZodArray; diffsForCompressingFiles: z.ZodArray; relevantFiles: z.ZodArray; toolResults: z.ZodArray; notepads: z.ZodArray; capabilities: z.ZodArray; capabilityStatuses: z.ZodRecord>; multiFileLinterErrors: z.ZodArray; diffHistories: z.ZodArray; recentLocationsHistory: z.ZodArray; recentlyViewedFiles: z.ZodArray; fileDiffTrajectories: z.ZodArray; docsReferences: z.ZodArray; webReferences: z.ZodArray; aiWebSearchResults: z.ZodOptional>; attachedFoldersListDirResults: z.ZodArray; humanChanges: z.ZodArray; summarizedComposers: z.ZodArray; cursorRules: z.ZodArray; contextPieces: z.ZodArray; editTrailContexts: z.ZodArray; allThinkingBlocks: z.ZodArray; diffsSinceLastApply: z.ZodArray; deletedFiles: z.ZodArray; supportedTools: z.ZodArray; attachedFileCodeChunksMetadataOnly: z.ZodOptional>; consoleLogs: z.ZodOptional>; uiElementPicked: z.ZodOptional>; knowledgeItems: z.ZodOptional>; documentationSelections: z.ZodOptional>; externalLinks: z.ZodOptional>; projectLayouts: z.ZodOptional>; capabilityContexts: z.ZodOptional>; todos: z.ZodOptional>; codeBlocks: z.ZodOptional>; isAgentic: z.ZodBoolean; existedSubsequentTerminalCommand: z.ZodBoolean; existedPreviousTerminalCommand: z.ZodBoolean; requestId: z.ZodOptional; attachedHumanChanges: z.ZodOptional; isRefunded: z.ZodOptional; useWeb: z.ZodOptional; unifiedMode: z.ZodOptional; tokenCount: z.ZodObject<{ inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; }, "strip", z.ZodTypeAny, { inputTokens: number; outputTokens: number; }, { inputTokens: number; outputTokens: number; }>; toolFormerData: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "error"; }, { status: "error"; }>; }, "strip", z.ZodTypeAny, { additionalData: { status: "error"; }; }, { additionalData: { status: "error"; }; }>, z.ZodObject<{ tool: z.ZodNumber; toolCallId: z.ZodString; toolIndex: z.ZodNumber; modelCallId: z.ZodString; status: z.ZodLiteral<"completed">; rawArgs: z.ZodString; name: z.ZodString; params: z.ZodString; additionalData: z.ZodRecord; userDecision: z.ZodOptional>; result: z.ZodString; }, "strip", z.ZodTypeAny, { tool: number; params: string; status: "completed"; additionalData: Record; toolCallId: string; toolIndex: number; modelCallId: string; rawArgs: string; name: string; result: string; userDecision?: "accepted" | "rejected" | undefined; }, { tool: number; params: string; status: "completed"; additionalData: Record; toolCallId: string; toolIndex: number; modelCallId: string; rawArgs: string; name: string; result: string; userDecision?: "accepted" | "rejected" | undefined; }>]>>; timingInfo: z.ZodOptional; clientRpcSendTime: z.ZodOptional; clientSettleTime: z.ZodOptional; clientEndTime: z.ZodOptional; }, "strip", z.ZodTypeAny, { clientStartTime?: number | undefined; clientRpcSendTime?: number | undefined; clientSettleTime?: number | undefined; clientEndTime?: number | undefined; }, { clientStartTime?: number | undefined; clientRpcSendTime?: number | undefined; clientSettleTime?: number | undefined; clientEndTime?: number | undefined; }>>; serverBubbleId: z.ZodOptional; usageUuid: z.ZodOptional; capabilityType: z.ZodOptional; } & { type: z.ZodLiteral<1>; text: z.ZodString; richText: z.ZodOptional; context: z.ZodOptional; editToolSupportsSearchAndReplace: z.ZodOptional; isNudge: z.ZodOptional; attachedFileCodeChunksUris: z.ZodOptional>; capabilitiesRan: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { text: string; type: 1; _v: number; bubbleId: string; approximateLintErrors: any[]; lints: any[]; codebaseContextChunks: any[]; commits: any[]; pullRequests: any[]; attachedCodeChunks: any[]; assistantSuggestedDiffs: any[]; gitDiffs: any[]; interpreterResults: any[]; images: any[]; attachedFolders: any[]; attachedFoldersNew: any[]; userResponsesToSuggestedCodeBlocks: any[]; suggestedCodeBlocks: any[]; diffsForCompressingFiles: any[]; relevantFiles: string[]; toolResults: any[]; notepads: any[]; capabilities: any[]; capabilityStatuses: Record; multiFileLinterErrors: any[]; diffHistories: any[]; recentLocationsHistory: any[]; recentlyViewedFiles: any[]; fileDiffTrajectories: any[]; docsReferences: any[]; webReferences: any[]; attachedFoldersListDirResults: any[]; humanChanges: any[]; summarizedComposers: any[]; cursorRules: any[]; contextPieces: any[]; editTrailContexts: any[]; allThinkingBlocks: any[]; diffsSinceLastApply: any[]; deletedFiles: any[]; supportedTools: number[]; isAgentic: boolean; existedSubsequentTerminalCommand: boolean; existedPreviousTerminalCommand: boolean; tokenCount: { inputTokens: number; outputTokens: number; }; aiWebSearchResults?: any[] | undefined; attachedFileCodeChunksMetadataOnly?: any[] | undefined; consoleLogs?: any[] | undefined; uiElementPicked?: any[] | undefined; knowledgeItems?: any[] | undefined; documentationSelections?: any[] | undefined; externalLinks?: any[] | undefined; projectLayouts?: any[] | undefined; capabilityContexts?: any[] | undefined; todos?: any[] | undefined; codeBlocks?: any[] | undefined; requestId?: string | undefined; attachedHumanChanges?: boolean | undefined; isRefunded?: boolean | undefined; useWeb?: boolean | undefined; unifiedMode?: number | undefined; toolFormerData?: { additionalData: { status: "error"; }; } | { tool: number; params: string; status: "completed"; additionalData: Record; toolCallId: string; toolIndex: number; modelCallId: string; rawArgs: string; name: string; result: string; userDecision?: "accepted" | "rejected" | undefined; } | undefined; timingInfo?: { clientStartTime?: number | undefined; clientRpcSendTime?: number | undefined; clientSettleTime?: number | undefined; clientEndTime?: number | undefined; } | undefined; serverBubbleId?: string | undefined; usageUuid?: string | undefined; capabilityType?: number | undefined; richText?: string | undefined; context?: any; editToolSupportsSearchAndReplace?: boolean | undefined; isNudge?: boolean | undefined; attachedFileCodeChunksUris?: string[] | undefined; capabilitiesRan?: Record | undefined; }, { text: string; type: 1; _v: number; bubbleId: string; approximateLintErrors: any[]; lints: any[]; codebaseContextChunks: any[]; commits: any[]; pullRequests: any[]; attachedCodeChunks: any[]; assistantSuggestedDiffs: any[]; gitDiffs: any[]; interpreterResults: any[]; images: any[]; attachedFolders: any[]; attachedFoldersNew: any[]; userResponsesToSuggestedCodeBlocks: any[]; suggestedCodeBlocks: any[]; diffsForCompressingFiles: any[]; relevantFiles: string[]; toolResults: any[]; notepads: any[]; capabilities: any[]; capabilityStatuses: Record; multiFileLinterErrors: any[]; diffHistories: any[]; recentLocationsHistory: any[]; recentlyViewedFiles: any[]; fileDiffTrajectories: any[]; docsReferences: any[]; webReferences: any[]; attachedFoldersListDirResults: any[]; humanChanges: any[]; summarizedComposers: any[]; cursorRules: any[]; contextPieces: any[]; editTrailContexts: any[]; allThinkingBlocks: any[]; diffsSinceLastApply: any[]; deletedFiles: any[]; supportedTools: number[]; isAgentic: boolean; existedSubsequentTerminalCommand: boolean; existedPreviousTerminalCommand: boolean; tokenCount: { inputTokens: number; outputTokens: number; }; aiWebSearchResults?: any[] | undefined; attachedFileCodeChunksMetadataOnly?: any[] | undefined; consoleLogs?: any[] | undefined; uiElementPicked?: any[] | undefined; knowledgeItems?: any[] | undefined; documentationSelections?: any[] | undefined; externalLinks?: any[] | undefined; projectLayouts?: any[] | undefined; capabilityContexts?: any[] | undefined; todos?: any[] | undefined; codeBlocks?: any[] | undefined; requestId?: string | undefined; attachedHumanChanges?: boolean | undefined; isRefunded?: boolean | undefined; useWeb?: boolean | undefined; unifiedMode?: number | undefined; toolFormerData?: { additionalData: { status: "error"; }; } | { tool: number; params: string; status: "completed"; additionalData: Record; toolCallId: string; toolIndex: number; modelCallId: string; rawArgs: string; name: string; result: string; userDecision?: "accepted" | "rejected" | undefined; } | undefined; timingInfo?: { clientStartTime?: number | undefined; clientRpcSendTime?: number | undefined; clientSettleTime?: number | undefined; clientEndTime?: number | undefined; } | undefined; serverBubbleId?: string | undefined; usageUuid?: string | undefined; capabilityType?: number | undefined; richText?: string | undefined; context?: any; editToolSupportsSearchAndReplace?: boolean | undefined; isNudge?: boolean | undefined; attachedFileCodeChunksUris?: string[] | undefined; capabilitiesRan?: Record | undefined; }>, z.ZodObject<{ _v: z.ZodNumber; bubbleId: z.ZodString; approximateLintErrors: z.ZodArray; lints: z.ZodArray; codebaseContextChunks: z.ZodArray; commits: z.ZodArray; pullRequests: z.ZodArray; attachedCodeChunks: z.ZodArray; assistantSuggestedDiffs: z.ZodArray; gitDiffs: z.ZodArray; interpreterResults: z.ZodArray; images: z.ZodArray; attachedFolders: z.ZodArray; attachedFoldersNew: z.ZodArray; userResponsesToSuggestedCodeBlocks: z.ZodArray; suggestedCodeBlocks: z.ZodArray; diffsForCompressingFiles: z.ZodArray; relevantFiles: z.ZodArray; toolResults: z.ZodArray; notepads: z.ZodArray; capabilities: z.ZodArray; capabilityStatuses: z.ZodRecord>; multiFileLinterErrors: z.ZodArray; diffHistories: z.ZodArray; recentLocationsHistory: z.ZodArray; recentlyViewedFiles: z.ZodArray; fileDiffTrajectories: z.ZodArray; docsReferences: z.ZodArray; webReferences: z.ZodArray; aiWebSearchResults: z.ZodOptional>; attachedFoldersListDirResults: z.ZodArray; humanChanges: z.ZodArray; summarizedComposers: z.ZodArray; cursorRules: z.ZodArray; contextPieces: z.ZodArray; editTrailContexts: z.ZodArray; allThinkingBlocks: z.ZodArray; diffsSinceLastApply: z.ZodArray; deletedFiles: z.ZodArray; supportedTools: z.ZodArray; attachedFileCodeChunksMetadataOnly: z.ZodOptional>; consoleLogs: z.ZodOptional>; uiElementPicked: z.ZodOptional>; knowledgeItems: z.ZodOptional>; documentationSelections: z.ZodOptional>; externalLinks: z.ZodOptional>; projectLayouts: z.ZodOptional>; capabilityContexts: z.ZodOptional>; todos: z.ZodOptional>; codeBlocks: z.ZodOptional>; isAgentic: z.ZodBoolean; existedSubsequentTerminalCommand: z.ZodBoolean; existedPreviousTerminalCommand: z.ZodBoolean; requestId: z.ZodOptional; attachedHumanChanges: z.ZodOptional; isRefunded: z.ZodOptional; useWeb: z.ZodOptional; unifiedMode: z.ZodOptional; tokenCount: z.ZodObject<{ inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; }, "strip", z.ZodTypeAny, { inputTokens: number; outputTokens: number; }, { inputTokens: number; outputTokens: number; }>; toolFormerData: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "error"; }, { status: "error"; }>; }, "strip", z.ZodTypeAny, { additionalData: { status: "error"; }; }, { additionalData: { status: "error"; }; }>, z.ZodObject<{ tool: z.ZodNumber; toolCallId: z.ZodString; toolIndex: z.ZodNumber; modelCallId: z.ZodString; status: z.ZodLiteral<"completed">; rawArgs: z.ZodString; name: z.ZodString; params: z.ZodString; additionalData: z.ZodRecord; userDecision: z.ZodOptional>; result: z.ZodString; }, "strip", z.ZodTypeAny, { tool: number; params: string; status: "completed"; additionalData: Record; toolCallId: string; toolIndex: number; modelCallId: string; rawArgs: string; name: string; result: string; userDecision?: "accepted" | "rejected" | undefined; }, { tool: number; params: string; status: "completed"; additionalData: Record; toolCallId: string; toolIndex: number; modelCallId: string; rawArgs: string; name: string; result: string; userDecision?: "accepted" | "rejected" | undefined; }>]>>; timingInfo: z.ZodOptional; clientRpcSendTime: z.ZodOptional; clientSettleTime: z.ZodOptional; clientEndTime: z.ZodOptional; }, "strip", z.ZodTypeAny, { clientStartTime?: number | undefined; clientRpcSendTime?: number | undefined; clientSettleTime?: number | undefined; clientEndTime?: number | undefined; }, { clientStartTime?: number | undefined; clientRpcSendTime?: number | undefined; clientSettleTime?: number | undefined; clientEndTime?: number | undefined; }>>; serverBubbleId: z.ZodOptional; usageUuid: z.ZodOptional; capabilityType: z.ZodOptional; } & { type: z.ZodLiteral<2>; text: z.ZodString; }, "strip", z.ZodTypeAny, { text: string; type: 2; _v: number; bubbleId: string; approximateLintErrors: any[]; lints: any[]; codebaseContextChunks: any[]; commits: any[]; pullRequests: any[]; attachedCodeChunks: any[]; assistantSuggestedDiffs: any[]; gitDiffs: any[]; interpreterResults: any[]; images: any[]; attachedFolders: any[]; attachedFoldersNew: any[]; userResponsesToSuggestedCodeBlocks: any[]; suggestedCodeBlocks: any[]; diffsForCompressingFiles: any[]; relevantFiles: string[]; toolResults: any[]; notepads: any[]; capabilities: any[]; capabilityStatuses: Record; multiFileLinterErrors: any[]; diffHistories: any[]; recentLocationsHistory: any[]; recentlyViewedFiles: any[]; fileDiffTrajectories: any[]; docsReferences: any[]; webReferences: any[]; attachedFoldersListDirResults: any[]; humanChanges: any[]; summarizedComposers: any[]; cursorRules: any[]; contextPieces: any[]; editTrailContexts: any[]; allThinkingBlocks: any[]; diffsSinceLastApply: any[]; deletedFiles: any[]; supportedTools: number[]; isAgentic: boolean; existedSubsequentTerminalCommand: boolean; existedPreviousTerminalCommand: boolean; tokenCount: { inputTokens: number; outputTokens: number; }; aiWebSearchResults?: any[] | undefined; attachedFileCodeChunksMetadataOnly?: any[] | undefined; consoleLogs?: any[] | undefined; uiElementPicked?: any[] | undefined; knowledgeItems?: any[] | undefined; documentationSelections?: any[] | undefined; externalLinks?: any[] | undefined; projectLayouts?: any[] | undefined; capabilityContexts?: any[] | undefined; todos?: any[] | undefined; codeBlocks?: any[] | undefined; requestId?: string | undefined; attachedHumanChanges?: boolean | undefined; isRefunded?: boolean | undefined; useWeb?: boolean | undefined; unifiedMode?: number | undefined; toolFormerData?: { additionalData: { status: "error"; }; } | { tool: number; params: string; status: "completed"; additionalData: Record; toolCallId: string; toolIndex: number; modelCallId: string; rawArgs: string; name: string; result: string; userDecision?: "accepted" | "rejected" | undefined; } | undefined; timingInfo?: { clientStartTime?: number | undefined; clientRpcSendTime?: number | undefined; clientSettleTime?: number | undefined; clientEndTime?: number | undefined; } | undefined; serverBubbleId?: string | undefined; usageUuid?: string | undefined; capabilityType?: number | undefined; }, { text: string; type: 2; _v: number; bubbleId: string; approximateLintErrors: any[]; lints: any[]; codebaseContextChunks: any[]; commits: any[]; pullRequests: any[]; attachedCodeChunks: any[]; assistantSuggestedDiffs: any[]; gitDiffs: any[]; interpreterResults: any[]; images: any[]; attachedFolders: any[]; attachedFoldersNew: any[]; userResponsesToSuggestedCodeBlocks: any[]; suggestedCodeBlocks: any[]; diffsForCompressingFiles: any[]; relevantFiles: string[]; toolResults: any[]; notepads: any[]; capabilities: any[]; capabilityStatuses: Record; multiFileLinterErrors: any[]; diffHistories: any[]; recentLocationsHistory: any[]; recentlyViewedFiles: any[]; fileDiffTrajectories: any[]; docsReferences: any[]; webReferences: any[]; attachedFoldersListDirResults: any[]; humanChanges: any[]; summarizedComposers: any[]; cursorRules: any[]; contextPieces: any[]; editTrailContexts: any[]; allThinkingBlocks: any[]; diffsSinceLastApply: any[]; deletedFiles: any[]; supportedTools: number[]; isAgentic: boolean; existedSubsequentTerminalCommand: boolean; existedPreviousTerminalCommand: boolean; tokenCount: { inputTokens: number; outputTokens: number; }; aiWebSearchResults?: any[] | undefined; attachedFileCodeChunksMetadataOnly?: any[] | undefined; consoleLogs?: any[] | undefined; uiElementPicked?: any[] | undefined; knowledgeItems?: any[] | undefined; documentationSelections?: any[] | undefined; externalLinks?: any[] | undefined; projectLayouts?: any[] | undefined; capabilityContexts?: any[] | undefined; todos?: any[] | undefined; codeBlocks?: any[] | undefined; requestId?: string | undefined; attachedHumanChanges?: boolean | undefined; isRefunded?: boolean | undefined; useWeb?: boolean | undefined; unifiedMode?: number | undefined; toolFormerData?: { additionalData: { status: "error"; }; } | { tool: number; params: string; status: "completed"; additionalData: Record; toolCallId: string; toolIndex: number; modelCallId: string; rawArgs: string; name: string; result: string; userDecision?: "accepted" | "rejected" | undefined; } | undefined; timingInfo?: { clientStartTime?: number | undefined; clientRpcSendTime?: number | undefined; clientSettleTime?: number | undefined; clientEndTime?: number | undefined; } | undefined; serverBubbleId?: string | undefined; usageUuid?: string | undefined; capabilityType?: number | undefined; }>]>; export declare function isCursorToolComplete(toolData: CursorToolFormerData): toolData is CursorToolFormerDataComplete; export declare function isCursorToolError(toolData: CursorToolFormerData): toolData is CursorToolFormerDataError; export declare function isCursorUserMessage(message: CursorMessage): message is CursorUserMessage; export declare function isCursorAssistantMessage(message: CursorMessage): message is CursorAssistantMessage; //# sourceMappingURL=cursor-types.d.ts.map