import * as React from 'react'; import { IInputLabelProps } from '../../input'; import { IFormControlProps } from '../form-control'; import { IFormHelperTextProps } from '../form-helper-text'; import { FormFieldClasses } from './form-field-classes'; export interface IFormControlRenderProps { controlId: string; helperTextId?: string; errorTextId?: string; } export type FormControlRenderer = (props: IFormControlRenderProps) => React.ReactNode; export interface IFormFieldProps extends Omit { name?: string; /** Props applied to the [`FormHelperText`](/api/form-helper-text/) element. */ FormHelperTextProps?: IFormHelperTextProps; /** Props applied to the [`FormHelperText`](/api/form-helper-text/) element used for the error */ ErrorHelperTextProps?: IFormHelperTextProps; /** The helper text content. */ helperText?: React.ReactNode; /** Props applied to the [`InputLabel`](/api/input-label/) element. */ InputLabelProps?: IInputLabelProps; /** The label content. */ label?: React.ReactNode; /** error message content */ error?: React.ReactNode; /** readOnly applied to formfields to make them read only */ readOnly?: boolean; /** disabled applied to formControl to make the form disabled */ disabled?: boolean; /** the control. Supports a render function for non-standard controls. */ children?: React.ReactNode | FormControlRenderer; classes?: Partial; } export declare const FormField: React.ForwardRefExoticComponent & React.RefAttributes>;