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

export interface AreaSelectTreeItem {
  value: string;
  label: string;
  children: AreaSelectTreeItem[];
}

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

/**
 * 属地下拉树组件
 */
declare const AreaSelectTree: FC<AreaSelectTreeProps>;

export default AreaSelectTree;
