import type { FloatingInputReferenceImages } from "./types"; export type { FloatingInputReferenceImage, FloatingInputReferenceImages } from "./types"; export type FloatingInputProps = { /** Current input value (controlled) */ value: string; /** Called when value changes */ onChange: (value: string) => void; /** Called when the user submits (button click or Enter key). Shift+Enter inserts a newline. */ onSubmit: () => void; /** Label for the submit button */ submitLabel: string; /** Placeholder text shown when value is empty */ placeholder?: string; /** Whether the textarea should focus on mount */ autoFocus?: boolean; /** When true, submit is disabled and the button shows its loading spinner */ pending?: boolean; /** * When true, the user can submit even with an empty value. Useful when the * prompt is optional in a given context. Defaults to false. */ allowEmptySubmit?: boolean; /** * Called when the user presses Escape — caller can use this to close the floating layer. * `clearValue` is `true` for destructive dismissals (Escape) and `false` when the consumer * should keep the typed value (e.g. a blur-based dismiss). */ onDismiss?: (clearValue: boolean) => void; /** * Optional reference-image picker shown as a footer below the input. When * provided, the input row collapses to a single line (textarea inline with * the submit button) and the textarea grows up to 3 lines before scrolling. */ referenceImages?: FloatingInputReferenceImages; /** Additional className for the root container */ className?: string; } & React.RefAttributes; export declare function FloatingInput({ value, onChange, onSubmit, submitLabel, placeholder, autoFocus, pending, allowEmptySubmit, onDismiss, referenceImages, className, ref, }: FloatingInputProps): import("react").JSX.Element; export declare namespace FloatingInput { var displayName: string; } //# sourceMappingURL=FloatingInput.d.ts.map