import type { ChatMessage } from './types.js'; export declare const CHAT_HISTORY_QUERY_KEY = "chatHistory"; /** * Hook that calls the clear history API and updates the cache. * * @internal */ export declare const useClearChatHistory: (chatId: string | undefined) => import("@tanstack/react-query").UseMutationResult; /** * Hook that calls the get chat API and handles errors by clearing the history. * * @internal */ export declare const useChatHistory: (chatId: string | undefined) => { history: ChatMessage[] | undefined; isLoading: boolean; isError: boolean; };