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

export interface AreaLeftTreeItem {
  value: string;
  label: string;
  children: AreaLeftTreeItem[];
  [key: string]: any;
}

/**
 * 组件属性
 */
export interface AreaLeftTreeProps extends Omit<BasicLeftTreeProps, "treeData" | "nameKey" | "idKey" | "childrenKey" | "onGetNodePaths" | "onGetData"> {
  /** 获取父级节点 */
  onGetNodePaths?: (nodes: AreaLeftTreeItem[]) => void;
  /** 获取数据 */
  onGetData?: (data: AreaLeftTreeItem[], processedData: AreaLeftTreeItem[]) => void;
}

/**
 * 属地左侧树组件
 */
declare const AreaLeftTree: FC<AreaLeftTreeProps>;

export default AreaLeftTree;
