1 | import { Store } from 'redux';
|
2 | import { State } from '../reducers';
|
3 | import { DragDropMonitor, Listener, Unsubscribe, XYCoord, HandlerRegistry, Identifier } from '../interfaces';
|
4 | export declare class DragDropMonitorImpl implements DragDropMonitor {
|
5 | private store;
|
6 | readonly registry: HandlerRegistry;
|
7 | constructor(store: Store<State>, registry: HandlerRegistry);
|
8 | subscribeToStateChange(listener: Listener, options?: {
|
9 | handlerIds: string[] | undefined;
|
10 | }): Unsubscribe;
|
11 | subscribeToOffsetChange(listener: Listener): Unsubscribe;
|
12 | canDragSource(sourceId: string | undefined): boolean;
|
13 | canDropOnTarget(targetId: string | undefined): boolean;
|
14 | isDragging(): boolean;
|
15 | isDraggingSource(sourceId: string | undefined): boolean;
|
16 | isOverTarget(targetId: string | undefined, options?: {
|
17 | shallow: boolean;
|
18 | }): boolean;
|
19 | getItemType(): Identifier;
|
20 | getItem(): any;
|
21 | getSourceId(): string | null;
|
22 | getTargetIds(): string[];
|
23 | getDropResult(): any;
|
24 | didDrop(): boolean;
|
25 | isSourcePublic(): boolean;
|
26 | getInitialClientOffset(): XYCoord | null;
|
27 | getInitialSourceClientOffset(): XYCoord | null;
|
28 | getClientOffset(): XYCoord | null;
|
29 | getSourceClientOffset(): XYCoord | null;
|
30 | getDifferenceFromInitialOffset(): XYCoord | null;
|
31 | }
|