import { SpecifyDesignToken } from '../../definitions/index.js'; import { TreeNodeDescription, TreeNodeExtensions } from '../../definitions/internals/designTokenTree.js'; import { TreeState } from './TreeState.js'; import { JSONObject, JSONValue } from '../../utils/JSONDefinitions.js'; import { AnalyzedSDTFNode } from '../parser/internals/AnalyzedSDTFNode.js'; import { TreePath } from './path/TreePath.js'; export interface TreeNodeInterface { readonly isToken: boolean; readonly isGroup: boolean; readonly isCollection: boolean; getJSONProperties(): JSONValue | SpecifyDesignToken; toJSON(): JSONValue | SpecifyDesignToken; move(newPath: TreePath): void; } export type TreeNodeStateParams = AnalyzedSDTFNode & { $description: string | undefined; $extensions: TreeNodeExtensions | undefined; }; export declare class TreeNodeState { #private; protected treeState: TreeState; constructor(treeState: TreeState, params: TreeNodeStateParams); get name(): string; get path(): TreePath; /** * @deprecated Use `path.toString()` instead. */ get stringPath(): string; get description(): string | undefined; get extensions(): Record | null> | undefined; get parentPath(): TreePath; get parentStringPath(): string; rename(newName: string): boolean; setPath(newPath: TreePath): void; updatePathItem(atIndex: number, replacer: string): void; updateDescription(description: TreeNodeDescription): void; updateExtensions(extensions: TreeNodeExtensions): void; getAllChildren(): import("./TreeState.js").SDTFNodeState[]; getParent(): import("./TreeState.js").SDTFNodeState; /** * @internal */ getCommonJSON(): JSONObject; }