import React from 'react'; import './index.less'; interface BaseProps { filterKey?: string; onClickNode?: (nodeProps: T) => any; dataSource?: T[]; typeFn: (nodeProps: T) => any; titleKey?: string | ((nodeProps: T) => string); codeKey?: string | ((nodeProps: T) => string); childrenKey?: string | ((nodeProps: T) => any); idKey?: string | ((nodeProps: T) => string); nodeExtra?: (nodeProps: T) => React.ReactNode | null; selectedId?: string; } interface ListProps extends BaseProps { } interface NodeTreeProps extends BaseProps { iconFn?: (nodeProps: S) => React.ReactNode | null; switcherIcon?: any; } declare const NodeTree: (props: NodeTreeProps) => JSX.Element; declare const List: (props: ListProps) => JSX.Element; export { List, NodeTree, };