/** * Example: Using CopilotInterface with Vercel AI SDK * * This example shows how to integrate the CopilotInterface component * with the Vercel AI SDK's useChat hook for real AI conversations. */ /** * Simplest usage - AI is enabled by default */ export declare function SimpleAICopilot(): import("react/jsx-runtime").JSX.Element; /** * With custom AI configuration */ export declare function CustomAICopilot(): import("react/jsx-runtime").JSX.Element; /** * Disable AI for demo/testing */ export declare function DemoCopilot(): import("react/jsx-runtime").JSX.Element; /** * Advanced: Custom chat hook management */ export declare function AdvancedAICopilot(): import("react/jsx-runtime").JSX.Element; /** * Focused chat experience with sidebar initially closed */ export declare function FocusedChatCopilot(): import("react/jsx-runtime").JSX.Element; /** * With file upload capabilities */ export declare function FileUploadAICopilot(): import("react/jsx-runtime").JSX.Element; /** * Required API Route Example * * Create this file at: app/api/chat/route.ts (App Router) or pages/api/chat.ts (Pages Router) * * ```typescript * import { openai } from '@ai-sdk/openai' * import { streamText } from 'ai' * * export async function POST(req: Request) { * const { messages } = await req.json() * * const result = await streamText({ * model: openai('gpt-4-turbo'), * messages, * }) * * return result.toDataStreamResponse() * } * ``` */