import { ChatbotTriggerProps } from "./ChatbotTrigger"; export type UseTextInputTriggerArgs = { placeholder?: string; fatalErrorMessage?: string; }; /** The base props for a Chatbot trigger component that allows the user to input text. */ export type ChatbotTextInputTriggerProps = ChatbotTriggerProps & UseTextInputTriggerArgs; /** * A hook that provides the necessary props to create a Chatbot trigger component that allows the user to input text. * @param args - The arguments to configure the trigger. * @returns The props to create a Chatbot trigger component that allows the user to input text. * @example * ```tsx * const textInputTrigger = useTextInputTrigger({ * placeholder: "Type something...", * fatalErrorMessage: "An error occurred. Please try again.", * }); * return textInputTrigger.setInputText(newText)} * onSubmit={() => { * textInputTrigger.handleSubmit(textInputTrigger.inputText); * }} * />; * ``` */ export declare function useTextInputTrigger({ placeholder, fatalErrorMessage, }: UseTextInputTriggerArgs): { conversation: { conversationId: string | undefined; conversationName: string | undefined; messages: import("./services").MessageData[]; error: string | undefined; streamingMessageId: string | undefined; createConversation: (args?: { name?: string; }) => Promise; submit: (content: string) => Promise; getMessage: (messageId: string) => import("./services").MessageData | undefined; rateMessage: (messageId: string, rating: boolean) => Promise; commentMessage: (messageId: string, comment: string) => Promise; switchConversation: (conversationId: string, options?: { from?: "history"; }) => Promise; getConversationHistoryInfo: () => Promise; getHistoryVersion: () => number; }; inputText: string; setInputText: import("react").Dispatch>; inputTextError: string; inputPlaceholder: string; setInputTextError: import("react").Dispatch>; canSubmit: boolean; awaitingReply: boolean; openChat: () => void; focused: boolean; setFocused: import("react").Dispatch>; handleSubmit: (text: string) => void | Promise; hasError: boolean; showError: false; onSuggestedPromptClick: ((prompt: string) => void) | undefined; };