import { ChatTurn } from "types"; /** * A hook that exposes a data fetcher, message history, loading state, and error state. */ export declare const useChat: (customerId: string, corpusIds: string[], apiKey: string, summarizer: string, promptText: string) => { sendMessage: ({ query, isRetry }: { query: string; isRetry?: boolean | undefined; }) => Promise; startNewConversation: () => void; messageHistory: ChatTurn[]; isLoading: boolean; hasError: boolean; };