import React from 'react'; export declare type FileItemShape = { /** Name of the file like example.pdf */ name: string; /** URL for downloading the file */ url?: string; /** An action which initiates deleting the file */ onDelete?: (event: React.MouseEvent) => void; /** State for when we are processing an api call */ loading?: boolean; /** Error message to display on the screen */ message?: string; }; export declare const limitItems: (list: any, quota: any, used: any) => any; declare type FileUploaderProps = { /** The text displayed on the button */ buttonText: string; /** An action handler which is given the list of selected files from the html component */ onChange: (event: React.ChangeEvent, files: FileItemShape[]) => void; /** List of valid file types for the html accept property */ validTypes?: string[]; /** Limit how many files can be uploaded. */ maximumAmountOfFiles?: number; /** A queue of files to show in the ui */ files: FileItemShape[]; } & Omit, HTMLInputElement>, 'onChange'>; declare const FileUploader: React.FunctionComponent; export default FileUploader;