import { ContainerBase, StyledContainerConfig } from "../../ui/Container"; import { BooleanProp, NumberProp, StringProp } from "../../ui/Prop"; import { Instance } from "../../ui/Instance"; import { RenderingContext } from "../../ui/RenderingContext"; export interface TreeNodeConfig extends StyledContainerConfig { /** Indentation level of the node. */ level?: NumberProp; /** Set to `true` if the node is expanded. */ expanded?: BooleanProp; /** Set to `true` if the node is a leaf (has no children). */ leaf?: BooleanProp; /** Text to be displayed. */ text?: StringProp; /** Set to `true` if the node is loading. */ loading?: BooleanProp; /** Icon to be displayed. */ icon?: StringProp; /** Icon for items (sets leafIcon). */ itemIcon?: StringProp; /** Icon for leaf nodes. */ leafIcon?: StringProp; /** Icon displayed when the node is loading. */ loadingIcon?: string; /** Icon for open folder. */ openFolderIcon?: StringProp; /** Icon for folder. */ folderIcon?: StringProp; /** Set to `true` to hide the icon. */ hideIcon?: boolean; /** Set to `true` to hide the arrow. */ hideArrow?: BooleanProp; } export declare class TreeNode extends ContainerBase { baseClass: string; itemIcon: string; leafIcon: string; loadingIcon: string; folderIcon: string; openFolderIcon: string; arrowIcon: string; hideIcon: boolean; constructor(config?: TreeNodeConfig); init(): void; declareData(): void; prepareData(context: RenderingContext, instance: Instance): void; render(context: RenderingContext, instance: Instance, key: string): import("react/jsx-runtime").JSX.Element; toggle(e: React.MouseEvent, instance: Instance): void; } //# sourceMappingURL=TreeNode.d.ts.map