import React from 'react'; export declare const queueToFiles: (fileQueue: FileQueueShape[], removeItem: (queueId: any) => any, deleteRemoteFile: (queueId: any, fileId?: any) => any) => { name: string; url: string | undefined; onDelete: () => any; queueId: string; id?: string | undefined; loading?: boolean | undefined; message?: string | undefined; canRemove?: boolean | undefined; }[]; interface FileQueueShape { queueId: string; id?: string; name: string; url?: string; loading?: boolean; message?: string; onDelete?: () => void; canRemove?: boolean; } export declare type InitialFileQueueShape = FileQueueShape; declare type FileUploaderContainerProps = { /** The text displayed on the button. */ buttonText: string; /** List of valid file types for the html accept property. */ validTypes?: string[]; /** Limit how many files can be uploaded. */ maximumAmountOfFiles?: number; /** A function for creating the file. It is given a single file object from the html element. It should return a promise. A resolving promise should return an object with the properties {name, id, url}. A failing promise should return a new Error() object. */ createFile: (file: File) => Promise; /** A function for deleting the file. It is given the id received from the createFile function. It should return a promise. A resolving promise does not have to return anything. A failing promise should return a new Error() object. */ deleteFile: (id: string) => Promise; /** A function which is called every time the file queue changes with the latest queue state. Useful for figuring out if a required upload element is valid. */ onFileQueueChange: (files: FileQueueShape[]) => void; /** The initial queue which is shown before user selects any files.It is a list of File objects accepted by . */ initialFileQueue?: FileQueueShape[]; }; declare const FileUploaderContainer: React.FunctionComponent; export default FileUploaderContainer;