1 | import type { BasicTarget } from '../utils/domTarget';
|
2 | export interface Options {
|
3 | onFiles?: (files: File[], event?: React.DragEvent) => void;
|
4 | onUri?: (url: string, event?: React.DragEvent) => void;
|
5 | onDom?: (content: any, event?: React.DragEvent) => void;
|
6 | onText?: (text: string, event?: React.ClipboardEvent) => void;
|
7 | onDragEnter?: (event?: React.DragEvent) => void;
|
8 | onDragOver?: (event?: React.DragEvent) => void;
|
9 | onDragLeave?: (event?: React.DragEvent) => void;
|
10 | onDrop?: (event?: React.DragEvent) => void;
|
11 | onPaste?: (event?: React.ClipboardEvent) => void;
|
12 | }
|
13 | declare const useDrop: (target: BasicTarget, options?: Options) => void;
|
14 | export default useDrop;
|