UNPKG

526 BTypeScriptView Raw
1import type { BackendFactory, DragDropManager } from 'dnd-core';
2import type { FC, ReactNode } from 'react';
3export declare type DndProviderProps<BackendContext, BackendOptions> = {
4 children?: ReactNode;
5 manager: DragDropManager;
6} | {
7 backend: BackendFactory;
8 children?: ReactNode;
9 context?: BackendContext;
10 options?: BackendOptions;
11 debugMode?: boolean;
12};
13/**
14 * A React component that provides the React-DnD context
15 */
16export declare const DndProvider: FC<DndProviderProps<unknown, unknown>>;