import { type ReactNode } from "react"; import { type GeistdocsChatSession } from "./session"; type ChatSessionState = { status: "loading"; } | { error: Error; /** * Try again after a transient failure, such as an unreadable history * store. Absent for configuration errors, which retrying can't fix. */ retry?: () => void; status: "error"; } | { /** Clear the stored and displayed conversation. */ clearConversation: () => Promise; session: GeistdocsChatSession; status: "ready"; }; /** * The shared chat session. `"error"` must be thrown by the consumer so it * fails inside that shell's chat error boundary instead of the page. */ export declare const useChatSession: () => ChatSessionState; /** * Provides the single chat shared by the desktop panel and the mobile * drawer. An invalid `ai.endpoint` is caught here and handed to the shells * as an `"error"` state, so it fails inside their error boundaries. */ export declare const GeistdocsChatSessionProvider: ({ children, }: { children: ReactNode; }) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=session-provider.d.ts.map