/** * @fileoverview React Provider component for the chat system. * Orchestrates all chat functionality including state management, * message loading, sending, and persistence. * @module components/ResearchAgent/state/chat/ChatProvider */ /** * Provider component that manages the chat system state and side effects. * * This component: * - Initializes chat configuration (model provider selection) * - Loads existing messages for a chat ID from URL params * - Creates new chat sessions when needed * - Persists guest chats to localStorage * - Handles initial messages from URL query params * - Provides the chat context to child components * * @param props - Component props * @param props.children - Child components that will have access to chat context * * @example * ```tsx * // In app layout * export default function RootLayout({ children }) { * return ( * * {children} * * ); * } * ``` */ export declare function ChatProvider({ children }: { children: React.ReactNode; }): import("react").JSX.Element;