1 | import type { Backend, BeginDragOptions, DragDropManager, HoverOptions, Identifier, Unsubscribe } from 'dnd-core';
|
2 | import type { ITestBackend, TestBackendContext } from './types.js';
|
3 | export declare class TestBackendImpl implements Backend, ITestBackend {
|
4 | didCallSetup: boolean;
|
5 | didCallTeardown: boolean;
|
6 | manager: DragDropManager;
|
7 | context: TestBackendContext;
|
8 | private actions;
|
9 | constructor(manager: DragDropManager, context: TestBackendContext);
|
10 | profile(): Record<string, number>;
|
11 | setup(): void;
|
12 | teardown(): void;
|
13 | connectDragSource(): Unsubscribe;
|
14 | connectDragPreview(): Unsubscribe;
|
15 | connectDropTarget(): Unsubscribe;
|
16 | simulateBeginDrag(sourceIds: Identifier[], options: BeginDragOptions): void;
|
17 | simulatePublishDragSource(): void;
|
18 | simulateHover(targetIds: Identifier[], options: HoverOptions): void;
|
19 | simulateDrop(): void;
|
20 | simulateEndDrag(): void;
|
21 | }
|