1 | import * as React from 'react';
|
2 | interface DraggableItemPosition {
|
3 |
|
4 | droppableId: string;
|
5 |
|
6 | index: number;
|
7 | }
|
8 | export declare const DragDropContext: React.Context<{
|
9 | onDrag: (_source: DraggableItemPosition) => boolean;
|
10 | onDragMove: (_source: DraggableItemPosition, _dest?: DraggableItemPosition) => void;
|
11 | onDrop: (_source: DraggableItemPosition, _dest?: DraggableItemPosition) => boolean;
|
12 | }>;
|
13 | interface DragDropProps {
|
14 |
|
15 | children?: React.ReactNode;
|
16 |
|
17 | onDrag?: (source: DraggableItemPosition) => boolean;
|
18 |
|
19 | onDragMove?: (source: DraggableItemPosition, dest?: DraggableItemPosition) => void;
|
20 |
|
21 | onDrop?: (source: DraggableItemPosition, dest?: DraggableItemPosition) => boolean;
|
22 | }
|
23 | export declare const DragDrop: React.FunctionComponent<DragDropProps>;
|
24 | export {};
|
25 |
|
\ | No newline at end of file |