import * as React from 'react'; import { FileImagePreview } from '../../quarks'; import { InputChangeEvent, InputProps } from '../../common'; export declare type FileSelectChangeEvent = InputChangeEvent>; export interface FileSelectOpenEvent { preventDefault(): void; } export interface FileSelectProps extends InputProps> { /** * Show preview instead of file list. */ preview?: boolean; /** * Allow selecting multiple files. */ multiple?: boolean; /** * The content of the fileselect. */ children?: React.ReactNode; /** * Event fired when the file picker should be opened. */ onOpen?(e: FileSelectOpenEvent): void; } export interface FileSelectState { value: Array; error?: React.ReactChild; controlled: boolean; previews: Array; } /** * A custom field for handling file selection. */ export declare const FileSelect: React.SFC;