import { Sensor } from '@chamn/layout';
import { CPage } from '@chamn/model';
import { default as React } from 'react';
import { TreeNodeData } from './dataStruct';
import { DesignerExport } from '../../../Designer/type';
export declare enum DragState {
    DRAGGING = "DRAGGING",
    NORMAL = "NORMAL"
}
export type ContextState = {
    treeData: TreeNodeData[];
    currentSelectNodeKeys: string[];
    expandKeys: string[];
    multiSelect: boolean;
    dragState: DragState;
    pageModel: CPage | null;
};
export type CTreeContextData = {
    sensor?: Sensor;
    state: ContextState;
    updateState: (state: Partial<ContextState>) => void;
    onSelectNode: (params: {
        keys: string[];
        node: TreeNodeData;
    }) => void;
    onDeleteNode: (id: string) => void;
    onCopyNode: (id: string) => void;
    getDesignerHandler?: () => Promise<DesignerExport>;
};
export declare const CTreeContext: React.Context<CTreeContextData>;
