15 lines
674 B
TypeScript
15 lines
674 B
TypeScript
import type { DragDropMonitor, DragSource, Identifier } from 'dnd-core';
|
|
import type { Connector } from '../../internals/index.js';
|
|
import type { DragSourceMonitor } from '../../types/index.js';
|
|
import type { DragSourceHookSpec } from '../types.js';
|
|
export declare class DragSourceImpl<O, R, P> implements DragSource {
|
|
spec: DragSourceHookSpec<O, R, P>;
|
|
private monitor;
|
|
private connector;
|
|
constructor(spec: DragSourceHookSpec<O, R, P>, monitor: DragSourceMonitor<O, R>, connector: Connector);
|
|
beginDrag(): NonNullable<O> | null;
|
|
canDrag(): boolean;
|
|
isDragging(globalMonitor: DragDropMonitor, target: Identifier): boolean;
|
|
endDrag(): void;
|
|
}
|