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