import * as react_jsx_runtime from 'react/jsx-runtime';
import { TextareaHTMLAttributes } from 'react';
import { UseDelayOptions } from '../../hooks/useDelay.js';
import { LabelProps } from './Label.js';

type TextareaProps = {
    /** Outside the area */
    label?: Omit<LabelProps, 'id'>;
    /** Inside the area */
    headline?: string;
    value?: string;
    resizable?: boolean;
    onChangeText?: (text: string) => void;
    disclaimer?: string;
    onEditCompleted?: (text: string) => void;
    saveDelayOptions?: UseDelayOptions;
    defaultStyle?: boolean;
} & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'value'>;
/**
 * A Textarea component for inputting longer texts
 *
 * The State is managed by the parent
 */
declare const Textarea: ({ label, headline, id, resizable, onChange, onChangeText, disclaimer, onBlur, onEditCompleted, saveDelayOptions, defaultStyle, className, ...props }: TextareaProps) => react_jsx_runtime.JSX.Element;
/**
 * A Textarea component that is not controlled by its parent
 */
declare const TextareaUncontrolled: ({ value, onChangeText, ...props }: TextareaProps) => react_jsx_runtime.JSX.Element;

export { Textarea, type TextareaProps, TextareaUncontrolled };
