import type { FC } from "react";
import type { BasicSelectTreeProps } from "../../Basic";

export interface HiddenPartSelectTreeItem {
  hiddenregionId: string;
  hiddenregion: string;
  children: HiddenPartSelectTreeItem[];
  [key: string]: any;
}

/**
 * 请求参数
 */
export interface Params {
  /** 企业id */
  eqCorpinfoId?: string;
}

/**
 * 组件属性
 */
export interface HiddenPartSelectTreeProps extends Omit<BasicSelectTreeProps, "treeData" | "nameKey" | "idKey" | "childrenKey" | "onGetNodePaths" | "onGetData"> {
  /** 请求参数 */
  params?: Params;
  /** 是否需要企业id，默认 false */
  isNeedCorpInfoId?: boolean;
  /** 获取父级节点 */
  onGetNodePaths?: (nodes: HiddenPartSelectTreeItem[]) => void;
  /** 获取数据 */
  onGetData?: (data: HiddenPartSelectTreeItem[], processedData: HiddenPartSelectTreeItem[]) => void;
}

/**
 * 隐患部位下拉树组件（港务局版本）
 */
declare const HiddenPartSelectTree: FC<HiddenPartSelectTreeProps>;

export default HiddenPartSelectTree;
