import * as React from 'react';
import { TreeProps } from 'antd/lib/tree';

export interface BaseTreeProps<T> extends TreeProps {
  checkable?: boolean;
  className?: string;
  treeData?: Array<T>;
  showIcon?: boolean;
  treeNodeProps?: {
    treeNodeClass?: (node: T) => string;
    prefix?: (node: T) => JSX.Element;
    suffix?: (node: T) => JSX.Element;
    treeNodeIcon?: (node: T) => JSX.Element;
    keyword?: string;
    disableCheckbox?: (node: T) => boolean;
    key?: string;
    nameKey?: string;
    RenderTreeTitle?: React.ReactNode;
  };
}

declare const BaseTree: React.ClassicComponent<BaseTreeProps<T>>;

export default BaseTree;
