import { CreateMessage, Message, processStreamedMessage, ResponseTemplate, Thread, ThreadListManager, ThreadManager } from "@crayonai/react-core"; import { ScrollVariant } from "../../hooks/useScrollToBottom"; import { ThemeProps } from "../ThemeProvider"; import { ConversationStartersConfig, WelcomeMessageConfig } from "./types"; type BaseCrayonChatProps = { processMessage?: (params: { threadId: string; messages: Message[]; abortController: AbortController; }) => Promise; onUpdateMessage?: (props: { message: Message; }) => void; processStreamedMessage?: typeof processStreamedMessage; responseTemplates?: ResponseTemplate[]; theme?: ThemeProps; createThread?: (message: CreateMessage) => Promise; threadManager?: ThreadManager; threadListManager?: ThreadListManager; logoUrl?: string; agentName?: string; scrollVariant?: ScrollVariant; messageLoadingComponent?: () => React.ReactNode; disableThemeProvider?: boolean; isArtifactActive?: boolean; renderArtifact?: () => React.ReactNode; /** Welcome message shown when thread is empty */ welcomeMessage?: WelcomeMessageConfig; /** Conversation starters shown when thread is empty */ conversationStarters?: ConversationStartersConfig; }; type BottomTrayProps = { type: "bottom-tray"; /** Control the open state of the bottom tray */ isOpen?: boolean; /** Callback when bottom tray open state changes */ onOpenChange?: (isOpen: boolean) => void; /** Default open state for bottom tray (uncontrolled) */ defaultOpen?: boolean; }; type OtherTypeProps = { type?: "copilot" | "standalone"; }; type CrayonChatProps = BaseCrayonChatProps & (BottomTrayProps | OtherTypeProps); export declare const CrayonChat: (props: CrayonChatProps) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=CrayonChat.d.ts.map