import * as react from 'react'; import { ComponentProps } from 'react'; interface PromptInputProps extends Omit, "onSubmit"> { /** Placeholder text for the textarea */ placeholder?: string; /** Current value of the textarea */ value?: string; /** Callback when value changes */ onValueChange?: (value: string) => void; /** Callback when form is submitted */ onSubmit?: (value: string) => void; /** Whether the input is disabled */ disabled?: boolean; /** Whether submission is in progress */ isLoading?: boolean; /** Label for the submit button (for accessibility) */ submitLabel?: string; /** * Callback to stop an in-progress response. When provided together with * `isLoading`, the submit button turns into a stop button (ChatGPT-style) * instead of a disabled spinner. */ onStop?: () => void; /** Label for the stop button (for accessibility) */ stopLabel?: string; } declare const PromptInput: react.ForwardRefExoticComponent & react.RefAttributes>; export { PromptInput, type PromptInputProps };