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

export interface HiddenLevelSelectTreeItem {
  dictValue: string;
  dictLabel: string;
  children: HiddenLevelSelectTreeItem[];
  [key: string]: any;
}

/**
 * 组件属性
 */
export interface HiddenLevelSelectTreeProps extends Omit<BasicSelectTreeProps, "treeData" | "nameKey" | "idKey" | "childrenKey" | "level" | "onGetNodePaths" | "onGetData"> {
  /** 是否显示忽略隐患，默认 true */
  isShowNeglect?: boolean;
  /** 是否显示较大隐患，默认 true */
  isShowLarger?: boolean;
  /** 是否显示重大隐患，默认 true */
  isShowMajor?: boolean;
  /** 获取父级节点 */
  onGetNodePaths?: (nodes: HiddenLevelSelectTreeItem[]) => void;
  /** 获取数据 */
  onGetData?: (data: HiddenLevelSelectTreeItem[], processedData: HiddenLevelSelectTreeItem[]) => void;
}

/**
 * 隐患级别下拉树组件（港务局版本）
 */
declare const HiddenLevelSelectTree: FC<HiddenLevelSelectTreeProps>;

export default HiddenLevelSelectTree;
