import React from "react"; import { Chunk } from "../types"; type Messages = { queryId: string | null; type: string; text: string; additional: Chunk[] | null; }[][]; declare function ChatProvider({ children }: { children: React.ReactNode; }): React.JSX.Element; declare function useChatState(): { askQuestion: (question?: string) => Promise; isLoading: boolean; messages: Messages; currentQuestion: string; setCurrentQuestion: React.Dispatch>; stopGeneratingMessage: () => void; clearConversation: () => void; switchToChatAndAskQuestion: (query: string) => Promise; isDoneReading?: React.MutableRefObject; rateChatCompletion: (isPositive: boolean, queryId: string | null) => void; }; export { ChatProvider, useChatState }; //# sourceMappingURL=chat-context.d.ts.map