import { FilledInputProps } from '@material-ui/core/FilledInput'; import { InputProps as StandardInputProps } from '@material-ui/core/Input'; import { OutlinedInputProps } from '@material-ui/core/OutlinedInput'; import { BaseTextFieldProps as MUITextFieldProps } from '@material-ui/core/TextField'; import React, { ReactNode } from 'react'; import { Omit } from '../types'; import { FormFieldProps } from './helpers'; export declare type BaseTextFieldProps = Omit & FormFieldProps & { value?: string; onChange?: (value: string) => void; label?: ReactNode; id?: string; startAdornment?: StandardInputProps['startAdornment']; endAdornment?: StandardInputProps['endAdornment']; containerProps?: FormFieldProps; }; export interface StandardTextFieldProps extends BaseTextFieldProps { variant?: 'standard'; InputProps?: Partial; inputProps?: StandardInputProps['inputProps']; } export interface FilledTextFieldProps extends BaseTextFieldProps { variant: 'filled'; InputProps?: Partial; inputProps?: FilledInputProps['inputProps']; } export interface OutlinedTextFieldProps extends BaseTextFieldProps { variant: 'outlined'; InputProps?: Partial; inputProps?: OutlinedInputProps['inputProps']; } export declare type TextFieldProps = StandardTextFieldProps | FilledTextFieldProps | OutlinedTextFieldProps; export declare const TextField: React.MemoExoticComponent<({ value, onChange, label, error, description, disabled, required, id, startAdornment, endAdornment, fullWidth, margin, onBlur, onFocus, containerProps, variant, ...props }: TextFieldProps) => JSX.Element>;