import type { draggable, dropTargetForElements, ElementDropTargetGetFeedbackArgs, ElementMonitorGetFeedbackArgs, monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter'; import type { DragLocation, DropTargetRecord, ElementDragType } from '@atlaskit/pragmatic-drag-and-drop/types'; import type { autoScrollForElements } from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element'; export type ElementDragEventBaseArgs = { /** * {@link DragLocationHistory} of the drag */ location: { /** * {@link DragLocationHistory.initial} */ initial: DragLocationWithPayload; /** * {@link DragLocationHistory.current} */ current: DragLocationWithPayload; /** * {@link DragLocationHistory.previous} */ previous: Pick, 'dropTargets'>; }; source: Omit & { data: Payload; }; }; export type DragLocationWithPayload = Omit & { dropTargets: DropTargetRecordWithPayload[]; }; export type DropTargetRecordWithPayload = Omit & { data: Payload; }; export type ElementDragEventMap = { onDragStart?: (data: ElementDragEventBaseArgs) => void; onDrag?: (data: ElementDragEventBaseArgs) => void; onDrop?: (data: ElementDragEventBaseArgs) => void; onDropTargetChange?: (data: ElementDragEventBaseArgs) => void; }; type DropTargetLocalizedData = { self: DropTargetRecord; }; export type ElementDropTargetFeedbackArgs = Omit & { source: Omit & { data: Payload; }; }; export type ElementDropEventMap = { onDragStart?: (data: ElementDragEventBaseArgs & DropTargetLocalizedData) => void; onDrag?: (data: ElementDragEventBaseArgs & DropTargetLocalizedData) => void; onDrop?: (data: ElementDragEventBaseArgs & DropTargetLocalizedData) => void; onDropTargetChange?: (data: ElementDragEventBaseArgs & DropTargetLocalizedData) => void; onDragEnter?: (data: ElementDragEventBaseArgs & DropTargetLocalizedData) => void; onDragLeave?: (data: ElementDragEventBaseArgs & DropTargetLocalizedData) => void; }; export type ElementMonitorFeedbackArgs = Omit & { source: Omit & { data: Payload; }; }; export type OriginalDraggableOption = Parameters[0]; export type OriginalDropTargetOption = Parameters[0]; export type OriginalMonitorOption = Parameters[0]; export type OriginalAutoScrollOption = Parameters[0]; export {}; //# sourceMappingURL=types.d.ts.map