/** * ## Usage * * ```jsx * const App () => { * const { inputRef, labelRef, files, isDragActive } = useFileDrop(); * * return ( *
* * *
* ) * }; * ``` * * ## Options * * You can set input file attributes by `options`: * * ```jsx * const { inputRef, files } = useFileDrop({ multiple: true, accept: 'image/*' }); * ``` * **/ export type FileDrop = { ref: React.RefObject; loaded: Record; isDragActive: boolean; _files: Record; }; export type LoadHandler = (files: Record, clearCache: () => void) => void; export declare function useFileDrop(onLoad?: LoadHandler, accept?: string, exclude?: string): FileDrop;