import { type TabsProps, type TreeProps } from 'antd'; import type { ReactNode } from 'react'; import type { TreeData, OperationType } from './typings'; interface Props extends Omit { data?: TreeData[]; showSearch?: boolean; placeholder?: string; header?: ReactNode; footer?: ReactNode; operation?: OperationType; onSelect?: (node: TreeData, info: Parameters>[1]) => void; filterNode?: (keywords: string, node: TreeData) => boolean; selectedKeys?: KeyType[]; defaultSelectedKeys?: KeyType[]; defaultExpandAll?: boolean; defaultExpandedKeys?: KeyType[]; active?: boolean; height?: number | 'auto'; /** * @description 是否在搜索时保留父节点 */ filterKeepParents?: boolean; /** * @description 是否在搜索时保留子孙节点 */ filterKeepDescendants?: boolean; /** * @description 是否高亮关键词 */ highlightKeywords?: boolean; } declare function SiderTreeTabs(props: { tabs: { title: string; key?: string; }[]; children?: ReactNode; } & Pick): JSX.Element; declare function SiderTree(props: Props): JSX.Element; declare namespace SiderTree { var Tabs: typeof SiderTreeTabs; } export default SiderTree;