import { StandardProps } from "../@types/common"; import { TreeProps } from 'antd'; import { DataNode } from 'antd/es/tree'; import React, { CSSProperties } from 'react'; type TreeSelectPanelValidKey = React.Key; interface ITreeSelectPanelDataProps { id: string | number; name: string; children?: ITreeSelectPanelDataProps[]; [key: string]: any; } interface ITreeSelectPanelTreeSelectProps extends Omit { a?: number; } interface ITreeSelectPanelProps extends StandardProps { popupClassName?: string; inputPlaceholder?: string; placeholder?: string; onPopupVisibleChange?: (val: boolean) => void; disabled?: boolean; highlightStyle?: CSSProperties; searchOnEnter?: boolean; isSingle?: boolean; popupWidth?: CSSProperties['width']; popupSameWidth?: boolean; data: ITreeSelectPanelDataProps[]; open?: boolean; value?: TreeSelectPanelValidKey[]; onCancel?: () => void; onSuccess?: (val: TreeSelectPanelValidKey[], nodes: ITreeSelectPanelDataProps[]) => void; onChange?: (val?: TreeSelectPanelValidKey[]) => void; onExpand?: (val: TreeSelectPanelValidKey[], nodes: ITreeSelectPanelDataProps[]) => void; treeProps?: ITreeSelectPanelTreeSelectProps; emptyIcon?: React.ReactNode; emptyText?: React.ReactNode; } export declare const renderTree: (treeData: DataNode[], highlightTitle: (title: string) => React.ReactNode) => DataNode[]; declare const TreeSelectPanel: React.ForwardRefExoticComponent>; export default TreeSelectPanel;