import { SlotValue, WithSlots } from "../../lib/slots.cjs"; import { CopilotChatInput, CopilotChatInputMode } from "./CopilotChatInput.cjs"; import { CopilotChatSuggestionView } from "./CopilotChatSuggestionView.cjs"; import { CopilotChatMessageView } from "./CopilotChatMessageView.cjs"; import * as react_jsx_runtime0 from "react/jsx-runtime"; import React from "react"; import { Message } from "@ag-ui/core"; import { Suggestion } from "@copilotkitnext/core"; //#region src/components/chat/CopilotChatView.d.ts type WelcomeScreenProps = WithSlots<{ welcomeMessage: React.FC>; }, { input: React.ReactElement; suggestionView: React.ReactElement; } & React.HTMLAttributes>; type CopilotChatViewProps = WithSlots<{ messageView: typeof CopilotChatMessageView; scrollView: typeof CopilotChatView.ScrollView; input: typeof CopilotChatInput; suggestionView: typeof CopilotChatSuggestionView; }, { messages?: Message[]; autoScroll?: boolean; isRunning?: boolean; suggestions?: Suggestion[]; suggestionLoadingIndexes?: ReadonlyArray; onSelectSuggestion?: (suggestion: Suggestion, index: number) => void; welcomeScreen?: SlotValue> | boolean; onSubmitMessage?: (value: string) => void; onStop?: () => void; inputMode?: CopilotChatInputMode; inputValue?: string; onInputChange?: (value: string) => void; onStartTranscribe?: () => void; onCancelTranscribe?: () => void; onFinishTranscribe?: () => void; onFinishTranscribeWithAudio?: (audioBlob: Blob) => Promise; /** * @deprecated Use the `input` slot's `disclaimer` prop instead: * ```tsx * * ``` */ disclaimer?: SlotValue>>; } & React.HTMLAttributes>; declare function CopilotChatView({ messageView, input, scrollView, suggestionView, welcomeScreen, messages, autoScroll, isRunning, suggestions, suggestionLoadingIndexes, onSelectSuggestion, onSubmitMessage, onStop, inputMode, inputValue, onInputChange, onStartTranscribe, onCancelTranscribe, onFinishTranscribe, onFinishTranscribeWithAudio, disclaimer, children, className, ...props }: CopilotChatViewProps): react_jsx_runtime0.JSX.Element; declare namespace CopilotChatView { const ScrollView: React.FC & { autoScroll?: boolean; scrollToBottomButton?: SlotValue>>; feather?: SlotValue>>; inputContainerHeight?: number; isResizing?: boolean; }>; const ScrollToBottomButton: React.FC>; const Feather: React.FC>; const WelcomeMessage: React.FC>; const WelcomeScreen: React.FC; } //#endregion export { CopilotChatView, CopilotChatViewProps, WelcomeScreenProps }; //# sourceMappingURL=CopilotChatView.d.cts.map