import * as React from 'react'; import { WithStyles } from '../withStyles'; import styles from './FileField.styles'; interface FileFieldProps extends WithStyles { /** The label of the text field */ label: string; /** The label of the text field */ value?: FileList; /** File types to allow */ accept?: string[]; /** Set to true to allow multiple files to be selected */ multiple?: boolean; /** Set to true to display input with error */ error?: boolean; /** Set to true to disable in the input */ disabled?: boolean; /** Optional helper text */ helperText?: React.ReactNode; /** Called when the value changes */ onChange?: (value: FileList) => any; /** Called when the user clears the file. If provided, an 'x' will be displayed. */ onClear?: () => any; /** Called when the input loses focus */ onBlur?: React.FocusEventHandler; } export declare const FileField: React.SFC; declare const _default: React.ComponentType & import("@material-ui/core/styles/withStyles").StyledComponentProps>; export default _default;