1 | import type { Backend, Identifier } from 'dnd-core';
|
2 | export interface TestBackendContext {
|
3 | window?: Window;
|
4 | document?: Document;
|
5 | }
|
6 | export interface TestBackendOptions {
|
7 | onCreate?: (be: ITestBackend) => void;
|
8 | }
|
9 | export interface ITestBackend extends Backend {
|
10 | didCallSetup: boolean;
|
11 | didCallTeardown: boolean;
|
12 | simulateBeginDrag(sourceIds: Identifier[], options?: any): void;
|
13 | simulatePublishDragSource(): void;
|
14 | simulateHover(targetIds: Identifier[], options?: any): void;
|
15 | simulateDrop(): void;
|
16 | simulateEndDrag(): void;
|
17 | }
|