import { type Dispatch } from "react"; import type { FeedbackDetail } from "../cruise-canvas/interfaces"; import type { ActiveDetail, ActiveImages, ActivityWithFlow, ConversationError, ConversationState, ExampleProject, ExtraChatPayload, FileInfo, GeneratedView, Job, ServiceFlowRun, ShowCaseType, Task, UploadOptions } from "./interfaces"; import type { AIEmployee, Command } from "./ChatCompletions/useChatCompletions"; export interface TaskContextValue { conversationId?: string; conversationState?: ConversationState; tasks: Task[]; errors: ConversationError[]; finished?: boolean; earlyFinished?: boolean; jobMap?: Map; flowMap?: Map; activityMap?: Map; workspace?: string; previewUrlTemplate?: string; replay?: boolean; showCases?: ShowCaseType[]; exampleProjects?: ExampleProject[]; aiEmployees?: AIEmployee[]; commands?: Command[]; uploadOptions?: UploadOptions; humanInput: (input: string | null, action?: string, extra?: ExtraChatPayload) => void; onShare: () => void; onTerminate: () => void; supports?: Record; activeExpandedViewJobId: string | null; setActiveExpandedViewJobId: Dispatch>; activeDetail: ActiveDetail | null; setActiveDetail: Dispatch>; subActiveDetail: ActiveDetail | null; setSubActiveDetail: Dispatch>; submittingFeedback: boolean; submittedFeedback: boolean; onSubmitFeedback: (detail: FeedbackDetail) => void; setShowFeedback: Dispatch>; showJsxEditor?: boolean; activeJsxEditorJob?: Job; setActiveJsxEditorJob?: Dispatch>; manuallyUpdatedViews?: Map; updateView?: (jobId: string, view: GeneratedView) => void; showFeedbackOnView?: boolean; onFeedbackOnView?: (viewId: string) => void; feedbackDoneViews?: Set; skipToResults?: () => void; watchAgain?: () => void; tryItOut?: () => void; separateInstructions?: boolean; activeFile: FileInfo | null; setActiveFile: Dispatch>; activeImages: ActiveImages | null; setActiveImages: Dispatch>; } export declare const TaskContext: React.Context;