import * as React from "react";
export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
    /** When true, renders red error border & ring */
    invalid?: boolean;
    /** Label text displayed above the textarea */
    label?: string;
    /** Error message displayed below the textarea */
    error?: string;
    /** Element rendered at the right edge of the field (e.g. send icon). */
    endIcon?: React.ReactNode;
    /**
     * When true, `endIcon` is wrapped in a real `<button>` with hover / active
     * / focus-visible styling matching the rest of the design system. Pass any
     * extra button attributes (`onClick`, `disabled`, `aria-label`, …) via
     * `endIconButtonProps`.
     */
    endIconAsButton?: boolean;
    /** Extra attributes for the end-icon button. */
    endIconButtonProps?: Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>;
}
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
export { Textarea };
//# sourceMappingURL=textarea.d.ts.map