import { TreeActions, TreeAppearance, TreeIcon } from "../../type/tree"; import { TypographyTruncateType } from "../../type/text"; import { ButtonIconPositionType } from "../../type/button"; /** * @slot - Add `mds-tree-item` element/s. * @category navigation */ export declare class MdsTree { private host; private elements; private childrenElements; private readonly syncedItems; /** * Specifies if the branches depth decorations are visible. */ readonly appearance: TreeAppearance; /** * Has no effect on the tree: `async` is read on each `mds-tree-item`. * @deprecated Set `async` on the items that load their children on demand. Goes in the next * major. */ readonly async?: boolean; /** * Names the tree for assistive technologies: the tree is a list of its items, and the label * is what that list is called */ readonly label: string; /** * Specifies the toggle icon of the element */ readonly toggle: TreeIcon; /** * Specifies the toggle icon position of the element */ readonly togglePosition: ButtonIconPositionType; /** * Specifies if the tree is expanded. */ expanded?: boolean; /** * Truncate the text of the element on one single line. */ readonly truncate: TypographyTruncateType; /** * Show actions on the every tree item on hover or by default. */ readonly actions?: TreeActions; private updateChildrenExpanded; handleExpandedChange(newValue: boolean): void; private updateChildrenToggle; handleToggleChange(newValue: TreeIcon): void; private updateChildrenTogglePosition; handleTogglePositionChange(newValue: ButtonIconPositionType): void; private updateChildrenAppearance; handleAppearanceChange(newValue: TreeAppearance): void; handleActionsChange(): void; private updateChildrenTruncate; handleTruncateChange(newValue: TypographyTruncateType): void; private updateElements; private updateZIndex; /** * Hands the props of the tree to its items, on load and to the items that arrive later, a branch * loaded on demand: the items already there keep the state the user gave them. The items were * read once, on load, and the `expanded` of load opened nothing (#826). */ private syncItems; componentWillLoad(): void; render(): any; }