import type { TreeProps } from "antd/es/tree";
import type { FC } from "react";

/**
 * 组件属性
 */
export interface BasicLeftTreeProps extends Omit<TreeProps, "fieldNames"> {
  /** 树形数据 title 字段，默认 name */
  nameKey?: string;
  /** 树形数据 key 字段，默认 id */
  idKey?: string;
  /** 树形数据 children 字段，默认 children */
  childrenKey?: string;
  /** @deprecated 已弃用，请使用 getNodePathsIsIncludeOneself */
  onGetNodePathsIsIncludeOneself?: boolean;
  /** 决定 onGetNodePaths 是否包含自身节点，默认 true */
  getNodePathsIsIncludeOneself?: boolean;
  /** 获取父级节点 */
  onGetNodePaths?: (nodes: Record<string, any>[]) => void;
  /** 获取数据 */
  onGetData?: (data: Record<string, any>[]) => void;
}

/**
 * 基础左侧树组件
 */
declare const BasicLeftTree: FC<BasicLeftTreeProps>;

export default BasicLeftTree;
