import React from 'react'; import { Props as InputProps } from '../input/input-props'; import { ExcludedInputProps } from '../utils/prop-types'; import { CSS } from '../theme/stitches.config'; export declare type TextareaHeightChangeMeta = { rowHeight: number; }; interface Props { rows?: number; maxRows?: number; minRows?: number; onHeightChange?: (height: number, meta: TextareaHeightChangeMeta) => void; cacheMeasurements?: boolean; onChange?: (e: React.ChangeEvent) => void; onFocus?: (e: React.FocusEvent) => void; onBlur?: (e: React.FocusEvent) => void; } declare const defaultProps: { minRows: number; maxRows: number; cacheMeasurements: boolean; initialValue: string; }; declare type NativeAttrs = Omit, keyof Props | keyof InputProps>; declare type BaseAttrs = Omit; export declare type TextareaProps = Props & typeof defaultProps & NativeAttrs & BaseAttrs & { css?: CSS; }; declare const _default: React.ComponentType & Omit, "maxRows" | "minRows" | "cacheMeasurements" | "initialValue">>; export default _default;