import { ReactElement, ReactNode } from 'react'; import { InputProps } from '../typings'; export interface ControlFileProps extends Omit { id: string; onChange: (files: Array, id: string) => void; value?: '' | Array<{ name: string; }>; optional?: boolean; disabled?: boolean; validationError?: ReactNode; displayValue?: ReactNode; children?: ReactNode; themeControlFile?: string; themeControlWrapper?: string; } declare function ControlFile({ id, optional, disabled, validationError, displayValue, themeControlFile, themeControlWrapper, children, ...props }: ControlFileProps): ReactElement; declare namespace ControlFile { var propTypes: { /** Identifying value for input element. */ id: any; /** Called during changes to the input element. Invoked with the array of selected files and the id of the input. */ onChange: any; /** Input value */ value: any; /** If provided the text, "(optional)" is appended to the value of the label element. */ optional: any; /** Pass disabled attribute */ disabled: any; /** If provided, the value of this propery displays as an error message. */ validationError: any; /** Overrides the "Select a file" label. */ displayValue: any; /** Optional child element to trigger file selection. */ children: any; /** Assembly classes to apply to the button trigger element */ themeControlFile: any; /** Assembly classes to apply to the control wrapper */ themeControlWrapper: any; }; } export default ControlFile;