import { draggable } from "@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter"; //#region src/kanban/drag-interactions.d.ts type AtlaskitDraggableOptions = Parameters[0]; /** * Marks a card drag on the native `DataTransfer` so the board's native * `dragover`/`dragenter`/`dragleave` listeners (which also see reorders, * file drops, and any other native drag passing over the board) can tell a * kanban card drag from everything else. Pragmatic's `getInitialData` never * reaches those native events; only data attached this way does. */ export declare const KANBAN_CARD_DRAG_MIME: "application/x-stella-kanban-card"; export type RegisterKanbanCardDragOptions = { /** The drag wrapper rendered by `KanbanCardShell`. */ element: AtlaskitDraggableOptions["element"]; /** Domain data read by the board's drop monitor. */ getInitialData: NonNullable; /** Omit when every rendered card may move. */ canDrag?: AtlaskitDraggableOptions["canDrag"]; onDragStart?: AtlaskitDraggableOptions["onDragStart"]; onDrop?: AtlaskitDraggableOptions["onDrop"]; }; /** * Register the standard kanban card drag source and native preview. * * Movement remains with the caller: the package does not inspect the drag data * or persist a drop. It owns the interaction every card shares, including a * pointer-centred preview cloned from the styled card inside the shell. */ export declare const registerKanbanCardDrag: ({ element, getInitialData, canDrag, onDragStart, onDrop }: RegisterKanbanCardDragOptions) => (() => void); export declare const KANBAN_BOARD_AUTO_SCROLL_SOURCES: { readonly elements: "elements"; readonly elementsAndExternal: "elements-and-external"; }; type KanbanBoardAutoScrollSource = (typeof KANBAN_BOARD_AUTO_SCROLL_SOURCES)[keyof typeof KANBAN_BOARD_AUTO_SCROLL_SOURCES]; export type RegisterKanbanBoardAutoScrollOptions = { element: HTMLElement; /** External sources include files dragged in from outside the page. */ sources: KanbanBoardAutoScrollSource; }; /** Register horizontal auto-scroll at the board's overflow boundary. */ export declare const registerKanbanBoardAutoScroll: ({ element, sources }: RegisterKanbanBoardAutoScrollOptions) => (() => void); //#endregion