import type { FC } from "react";
import type { DepartmentSelectTreeProps } from "../../../SelectTree/Department/Gwj";
import type { BasicLeftTreeProps } from "../../Basic";

export interface DepartmentLeftTreeItem {
  id: string;
  name: string;
  childrenList: DepartmentLeftTreeItem[];
  [key: string]: any;
}

/**
 * 组件属性
 */
export interface DepartmentLeftTreeProps extends Omit<BasicLeftTreeProps, "treeData" | "nameKey" | "idKey" | "childrenKey" | "onGetNodePaths" | "onGetData"> {
  /** 请求参数 */
  params?: DepartmentSelectTreeProps["params"];
  /** 查询的企业类型 */
  searchType?: DepartmentSelectTreeProps["searchType"];
  /** 获取父级节点 */
  onGetNodePaths?: (nodes: DepartmentLeftTreeItem[]) => void;
  /** 获取数据 */
  onGetData?: (data: DepartmentLeftTreeItem[], processedData: DepartmentLeftTreeItem[]) => void;
}

/**
 * 部门左侧树组件（港务局版本）
 */
declare const DepartmentLeftTree: FC<DepartmentLeftTreeProps>;

export default DepartmentLeftTree;
