import type { TextareaHTMLAttributes } from 'react';
import type { SxProp } from '../Layout/sx.cjs';
export type TextareaColor = 'primary' | 'danger' | 'warning' | 'success';
export type TextareaSize = 'sm' | 'md' | 'lg';
export interface TextareaProps extends Omit, 'size'> {
color?: TextareaColor;
size?: TextareaSize;
/** Grow the textarea with content. Max-height is capped via CSS / max-rows. */
autoGrow?: boolean;
/** With autoGrow, limits how tall the textarea can get. Default 12. */
maxRows?: number;
/** Show a live character counter below the textarea (`n/max` when `maxLength` is set). */
showCount?: boolean;
/**
* One-off CSS, same as `Box`'s `sx`: each value may be a scalar or a
* responsive breakpoint map (`{ base, sm, md, lg, xl }`). Scalar-only sx
* merges into inline style; responsive sx injects a scoped class.
*/
sx?: SxProp;
}
/** Auto-growing textarea. Measures scrollHeight on every change to set height. */
export declare const Textarea: import("react").ForwardRefExoticComponent>;