import type { DragMoveEvent, DragOverEvent } from "@dnd-kit/react"; import type { MapLayerDroppableId } from "../widget/MapLayerDragModel"; import type { MapLayerState } from "../hooks/map-layer/types"; /** * Pure projection helpers for in-progress map-layer dragging. * * This module decides how React should optimistically render hover state while a * drag is active. The final display-style mutation stays in MapLayerDragModel. */ export type MapLayerDragProjection = { kind: "restore"; } | { kind: "unchanged"; targetId: MapLayerDroppableId; } | { kind: "project"; targetId: MapLayerDroppableId; mapLayers: MapLayerState; }; export declare function getMapLayerDragMoveTarget(event: DragMoveEvent): MapLayerDroppableId | undefined; export declare function projectMapLayerDragOver(mapLayers: MapLayerState, event: DragOverEvent): MapLayerDragProjection; export declare function refreshCommittedMapLayerIndices(mapLayers: MapLayerState): MapLayerState; //# sourceMappingURL=MapLayerDragProjection.d.ts.map