import type * as DragAndDrop from '@hello-pangea/dnd'; export type DragAndDropModule = typeof DragAndDrop; /** The subset of `@hello-pangea/dnd` components consumers use through `useDragAndDrop`. */ export interface DragAndDropComponents { DragDropContext: DragAndDropModule['DragDropContext']; Droppable: DragAndDropModule['Droppable']; Draggable: DragAndDropModule['Draggable']; } /** * Loads `@hello-pangea/dnd` on demand. Until the module arrives (or while `enabled` is false) * it returns inert passthrough components, so callers can render the same JSX unconditionally * without pulling the library into their initial chunk. Consumers that cannot tolerate a * remount can wait for `isReady` before rendering stateful children. * * @internal Exported through `@grafana/ui/internal` for Grafana core only. */ export declare function useDragAndDrop(enabled?: boolean): DragAndDropComponents & { isReady: boolean; };