import * as React from 'react'

import { StrictTextAreaProps } from '../../addons/TextArea'
import { StrictFormFieldProps } from './FormField'

export interface FormTextAreaProps extends StrictFormTextAreaProps {
  [key: string]: any
}

export interface StrictFormTextAreaProps extends StrictFormFieldProps, StrictTextAreaProps {
  /** An element type to render as (string or function). */
  as?: any

  /** A FormField control prop. */
  control?: any
}

declare const FormTextArea: React.FC<FormTextAreaProps>

export default FormTextArea
