import { type VariantProps } from "class-variance-authority"; import * as React from "react"; /** * CSS variants for the message input container * @typedef {Object} MessageInputVariants * @property {string} default - Default styling * @property {string} solid - Solid styling with shadow effects * @property {string} bordered - Bordered styling with border emphasis */ declare const messageInputVariants: (props?: ({ variant?: "default" | "solid" | "bordered" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined) => string; /** * Props for the MessageInput component. * Extends standard HTMLFormElement attributes. */ export interface MessageInputProps extends React.HTMLAttributes { /** The context key identifying which thread to send messages to. */ contextKey?: string; /** Optional styling variant for the input container. */ variant?: VariantProps["variant"]; /** The child elements to render within the form container. */ children?: React.ReactNode; } /** * The root container for a message input component. * It establishes the context for its children and handles the form submission. * @component MessageInput * @example * ```tsx * * * * * * ``` */ declare const MessageInput: React.ForwardRefExoticComponent>; /** * Props for the MessageInputTextarea component. * Extends standard TextareaHTMLAttributes. */ export interface MessageInputTextareaProps extends React.TextareaHTMLAttributes { /** Custom placeholder text. */ placeholder?: string; } /** * Textarea component for entering message text. * Automatically connects to the context to handle value changes and key presses. * @component MessageInput.Textarea * @example * ```tsx * * * * ``` */ declare const MessageInputTextarea: { ({ className, placeholder, ...props }: MessageInputTextareaProps): React.JSX.Element; displayName: string; }; /** * Props for the MessageInputSubmitButton component. * Extends standard ButtonHTMLAttributes. */ export interface MessageInputSubmitButtonProps extends React.ButtonHTMLAttributes { /** Optional content to display inside the button. */ children?: React.ReactNode; } /** * Submit button component for sending messages. * Automatically connects to the context to handle submission state. * @component MessageInput.SubmitButton * @example * ```tsx * * *
* *
*
* ``` */ declare const MessageInputSubmitButton: React.ForwardRefExoticComponent>; /** * MCP Config Button component for opening the MCP configuration modal. * @component MessageInput.McpConfigButton * @example * ```tsx * * * * * * * * ``` */ declare const MessageInputMcpConfigButton: React.ForwardRefExoticComponent & React.RefAttributes>; /** * Props for the MessageInputError component. * Extends standard HTMLParagraphElement attributes. */ export type MessageInputErrorProps = React.HTMLAttributes; /** * Error message component for displaying submission errors. * Automatically connects to the context to display any errors. * @component MessageInput.Error * @example * ```tsx * * * * * * ``` */ declare const MessageInputError: React.ForwardRefExoticComponent>; /** * Container for the toolbar components (like submit button and MCP config button). * Provides correct spacing and alignment. * @component MessageInput.Toolbar * @example * ```tsx * * * * * * * ``` */ declare const MessageInputToolbar: React.ForwardRefExoticComponent & React.RefAttributes>; export { MessageInput, MessageInputError, MessageInputMcpConfigButton, MessageInputSubmitButton, MessageInputTextarea, MessageInputToolbar, messageInputVariants, }; //# sourceMappingURL=message-input.d.ts.map