import * as React from "react"; import { Tree as BlueprintTree, TreeNode as BlueprintTreeNode, TreeNodeInfo as BlueprintTreeNodeInfo, TreeProps as BlueprintTreeProps } from "@blueprintjs/core"; import { IconProps } from "./../Icon/Icon"; import { TestIconProps } from "./../Icon/TestIcon"; export interface TreeNodeInfo extends Omit, "childNodes" | "icon"> { /** * Child tree nodes of this node. */ childNodes?: Array>; /** * `` element to render next to the node's label. */ icon?: React.ReactElement | React.ReactElement; } export interface TreeNodeProps extends TreeNodeInfo { children?: React.ReactNode; contentRef?: (node: TreeNode, element: HTMLDivElement | null) => void; depth: number; key?: string | number; onClick?: (node: TreeNode, e: React.MouseEvent) => void; onCollapse?: (node: TreeNode, e: React.MouseEvent) => void; onContextMenu?: (node: TreeNode, e: React.MouseEvent) => void; onDoubleClick?: (node: TreeNode, e: React.MouseEvent) => void; onExpand?: (node: TreeNode, e: React.MouseEvent) => void; onMouseEnter?: (node: TreeNode, e: React.MouseEvent) => void; onMouseLeave?: (node: TreeNode, e: React.MouseEvent) => void; path: number[]; } export declare class TreeNode extends BlueprintTreeNode> { } export declare class TreeNodeShadow extends React.Component> { } export interface TreeProps extends Omit, "contents"> { /** * Tree contents. */ contents: ReadonlyArray>; } /** * Tree component to display a tree structure. * Have a look to the underlaying [BlueprintJS Tree](https://blueprintjs.com/docs/#core/components/tree) component for examples how to use handlers. * Use only our `` elements in the tree nodes! */ export declare const Tree: typeof BlueprintTree;