import { BoardItem } from "./board_types"; export interface PlaceDroppedCardParams { /** * The destination column as it stands at the moment of the drop. When the * card came from another column it is normally already in here: * `handleDragOver` moves it while the pointer is still down, which is what * opens the gap under the cursor. */ targetItems: BoardItem[]; /** The card being dropped. */ movedItem: BoardItem; /** What the pointer was over — a card id, or the column's own droppable id. */ overId: string; /** Whether the card was picked up in a different column than it landed in. */ changedColumn: boolean; } /** * Where a dropped card ends up in its destination column. * * Pulled out of the drop handler because it is the part that was wrong twice: * once appending a card that had been dropped into the middle of a column, and * once refusing to place a card at all when it was released over an empty * column rather than over another card. It is pure, so it can be checked * without driving a pointer. */ export declare function placeDroppedCard({ targetItems, movedItem, overId, changedColumn }: PlaceDroppedCardParams): BoardItem[];