import React from 'react'; import { Breakpoints } from '../Utils/responsiveness'; import { Box, PropsBox } from './Textarea.styles'; import { BoxStyled } from '../Utils/styled'; import { OnChangeHandler, Pretty } from '../Utils'; import { WithViewOnly } from '../ViewOnly'; export declare const defaultTextareaTestId: TextareaProps['testId']; export type TextareaEvent = (event: T, data: { name?: string; value?: string; }) => void; export type TextareaPropsWithRef = TextareaProps & React.RefAttributes; export interface TextareaProps extends Omit, 'onChange' | 'onClick' | 'onFocus' | 'onBlur' | 'ref'>, WithViewOnly { design?: PropsBox['$design']; size?: PropsBox['$size']; invalid?: PropsBox['$invalid']; value?: string; maxRows?: number; resize?: boolean; maxCounter?: number; showCounter?: boolean; testId?: { counter?: string; maxCounter?: string; }; onChange?: OnChangeHandler>; onClick?: TextareaEvent>; onFocus?: TextareaEvent>; onBlur?: TextareaEvent>; onKeyDown?: React.KeyboardEventHandler; onKeyPress?: React.KeyboardEventHandler; onKeyUp?: React.KeyboardEventHandler; } declare const TextareaInternal: (props: TextareaProps, ref: React.Ref) => React.JSX.Element; export declare namespace Textarea { type OnChange = Pretty.Func>>; type OnClick = Pretty.Func>>; type OnFocus = Pretty.Func>>; type OnBlur = Pretty.Func>>; } export declare const Textarea: ((props: TextareaPropsWithRef) => ReturnType) & { displayName?: string; }; export {};