import { NestedTableKeyedItem, NestedTableNestedModeState } from '../../state'; import { NestedTableNodeState } from '../../state/NestedTableState/NestedTableNodeState'; import { DragAndDropState, IndexedItem } from '../DragAndDrop'; import { ActionMove, CollectionState, ComputedQuery, FiltersMap } from '@wix/bex-core'; export interface NestedTableDragAndDropStateParams { readonly nestedState: NestedTableNestedModeState; } export interface NestedDragEndEvent { from: IndexedItem; after: IndexedItem<{}> | null; over: IndexedItem<{}>; parentId: string | undefined; filters: ComputedQuery['filters']; node: NestedTableNodeState; } export interface DragAndDropDisabledParams { from: IndexedItem; over: IndexedItem<{}>; } export declare class NestedTableDragAndDropState { readonly tableState: import("../../state").TableState; readonly dnd: DragAndDropState; readonly nestedState: NestedTableNestedModeState; _isExpandedBeforeDrag?: boolean; constructor(params: NestedTableDragAndDropStateParams); _onCancel: () => Promise; private _createNewParentData; _createDragEndEvent({ setNewParent, }?: { setNewParent?: boolean; }): ActionMove | null; _createSimpleDragEndEvent(dragEndEvent: ActionMove, node: NestedTableNodeState): { parentId: string | undefined; node: NestedTableNodeState; from: IndexedItem; after: IndexedItem | null; over: IndexedItem; filters: Partial<{ [x: string]: unknown; }>; }; _move(): void; getStickyColumnsCount({ stickyColumns, horizontalScroll, }: { stickyColumns: number; showSelection?: boolean; horizontalScroll?: boolean; }): number; get dragEventItems(): { overItem: NestedTableKeyedItem; activeItem: NestedTableKeyedItem; } | null; get dragEventDirectionItems(): { nextItem: NestedTableKeyedItem; previousItem: NestedTableKeyedItem; overItem: NestedTableKeyedItem; activeItem: NestedTableKeyedItem; } | null; get dragEventDepth(): { depth: number; nextItem: NestedTableKeyedItem; previousItem: NestedTableKeyedItem; activeItem: NestedTableKeyedItem; overItem: NestedTableKeyedItem; } | null; get activeNode(): NestedTableNodeState | null | undefined; get dragEventParentAndAfter(): { node?: undefined; after?: undefined; activeItem?: undefined; overItem?: undefined; } | { node: NestedTableNodeState; after: NestedTableKeyedItem; activeItem: NestedTableKeyedItem; overItem: NestedTableKeyedItem; } | { node: NestedTableNodeState | undefined; after: null; activeItem: NestedTableKeyedItem; overItem: NestedTableKeyedItem; } | { activeItem: NestedTableKeyedItem; overItem: NestedTableKeyedItem; node?: undefined; after?: undefined; }; get reachedMaxDepth(): boolean; get dragAndDropDisabled(): { errorMessage: string; } | null | undefined; get isSameEntityAsOtherLevels(): boolean | undefined; initCollection(collection: CollectionState): import("mobx").IReactionDisposer; init(): () => void; } //# sourceMappingURL=NestedTableDragAndDropState.d.ts.map