import { DragEvent as ReactDragEvent } from '../../../../node_modules/react'; /** * De-namespaced from CJO's `application/x-cjo-node-palette` (`NodePalette.tsx:20`). * The design system owns no CJO vocabulary, so the MIME string carries the DS's * own prefix instead. */ export declare const FLOW_NODE_DRAG_MIME = "application/x-flow-node-palette"; export interface FlowNodeDragData { /** `FlowNodeKindDef.kind` — the lookup key into the receiving app's own registry. */ kind: string; label: string; } /** * Reads back the payload written by `NodePalette`'s internal drag handler. * * Returns `null` for a missing or malformed payload instead of throwing. CJO's own * drop handler (`JourneyBuilderPage.tsx:627-635`) calls `JSON.parse` on the raw * string with no `try/catch` — this is a deliberate improvement over that gap, not * a change to the payload shape itself (still exactly `{ kind, label }`, nothing * richer; the drop side is expected to re-resolve the full item from its own * registry by `kind`). */ export declare function readFlowNodeDragData(event: DragEvent | ReactDragEvent): FlowNodeDragData | null;