import { ReactNode, Ref, TextareaHTMLAttributes } from 'react';
import { FieldError, FieldPath, FieldValues, UseFormRegister } from 'react-hook-form';
import { ComponentColor, IComponentBaseProps, Size } from '../types';
export declare const TEXTAREA = "textarea";
export declare const COLOR_MAP: {
primary: string;
secondary: string;
error: string;
info: string;
success: string;
warning: string;
accent: string;
ghost: string;
};
export declare const SIZE_MAP: Record;
export declare const TEXT_MAP: {
primary: string;
secondary: string;
error: string;
info: string;
success: string;
warning: string;
accent: string;
ghost: string;
xs: string;
sm: string;
md: string;
lg: string;
xl: string;
};
export interface TextareaProps extends Omit, "size" | "color" | "id" | "prefix">, IComponentBaseProps {
ref?: Ref;
size?: Size;
placeholder?: string;
name: FieldPath;
color?: Exclude;
register?: UseFormRegister;
label?: ReactNode;
labelFloating?: boolean;
classes?: {
textarea?: string;
label?: string;
labelText?: string;
helper?: string;
helperText?: string;
};
error?: FieldError;
helper?: string;
}