import { ImagineChat } from '../hooks/imagine-resumable-chat/imagine-chat'; import { ImagineUIMessage } from '@imagine/ai-service/shared-types'; import { GetProjectResponseBody } from '@imagine/ai-service/shared-types/route-types'; export type SendMessageResult = { success: boolean; projectId: string; newProject: GetProjectResponseBody | null; }; interface ImagineChatContextValue { _sendMessage: ({ projectId, message, }: { projectId: string; message: ImagineUIMessage; }) => Promise; setHistory: (history: Array) => void; isGenerating: boolean; status: ImagineChatType["status"]; error: ImagineChatType["error"]; messages: Array; stop: () => void; resumeStream: ({ projectId }: { projectId: string; }) => Promise; clearError: () => void; regenerate: ({ projectId }: { projectId: string; }) => Promise; reset: () => void; } type ImagineChatType = ImagineChat; export declare function ImagineChatProvider({ children, }: { children: React.ReactNode; }): import("react/jsx-runtime").JSX.Element; export declare const useImagineChat: () => ImagineChatContextValue; export {}; //# sourceMappingURL=imagine-chat-provider.d.ts.map