/// <reference types="react" />
import { IFilter, TreeData } from '../../typings';
import { EventDataNode } from 'bonree-design/lib/tree';
export interface TreePanelProps {
    /** 树形结构的数据 */
    data: TreeData[];
    /** @description 节点前添加 Checkbox 复选框,默认是没有复选框 @default false */
    checkable?: boolean;
    /** 键盘上按下删除 */
    onDelete: () => void;
    /** 删除最后一个选项 */
    onDeleteWithContent?: () => void;
    onOk: (value: IFilter[]) => void;
    defaultExpandAll?: boolean;
    /** 默认展开指定的树节点 */
    defaultExpandedKeys?: string[];
    loadData?: (treeNode: EventDataNode) => Promise<void>;
    value?: string;
    showPanel: boolean;
    isAll?: boolean;
    /** @description 是否展示loading @default false */
    loading?: boolean;
    /** @description 树形结构面板显示隐藏触发的回调 */
    onVisibleChange?: (value: boolean) => void;
    /** @description 自定义全部文案 */
    allText?: string;
    /** @description 自定义渲染节点 */
    titleRender?: (node: TreeData) => React.ReactNode;
    width?: number;
    listHeight?: number;
}
export interface TreePanelRef {
    handleDeleteLastItem: () => void;
}
declare const TreePanel: import("react").ForwardRefExoticComponent<TreePanelProps & import("react").RefAttributes<TreePanelRef>>;
export default TreePanel;
