import { SpecifyDesignTokenGroupProperties } from '../../definitions/internals/designTokenGroup.js'; import { TreeNodeInterface, TreeNodeState } from './TreeNodeState.js'; import { TreeState } from './TreeState.js'; import { TokenState } from './TokenState.js'; import { CollectionState } from './CollectionState.js'; import { AnalyzedSDTFNode } from '../parser/internals/AnalyzedSDTFNode.js'; import { AnalyzedGroup } from '../parser/internals/parseRawGroup.js'; import { TreePath } from './path/TreePath.js'; export type GroupStateParams = AnalyzedSDTFNode & SpecifyDesignTokenGroupProperties; export declare class GroupState extends TreeNodeState implements TreeNodeInterface { readonly isToken = false; readonly isGroup = true; readonly isCollection = false; constructor(treeState: TreeState, { path, name, $description, $extensions }: GroupStateParams); /** * Returns all direct group children of the Group */ getGroupChildren(): GroupState[]; /** * Returns all direct token children of the Group */ getTokenChildren(): TokenState<"string" | "number" | "boolean" | "object" | "null" | "array" | "integerNumber" | "zeroToOneNumber" | "arcDegreeNumber" | "rgbColorNumber" | "positiveNumber" | "positiveIntegerNumber" | "percentageNumber" | "hexadecimalColorString" | "bitmap" | "bitmaps" | "bitmapFormat" | "blur" | "border" | "borderStyle" | "borderStyleLineCap" | "breakpoint" | "color" | "cubicBezier" | "dimension" | "dimensionUnit" | "duration" | "durationUnit" | "font" | "fontFamily" | "fontFeature" | "fontFeatures" | "fontFormat" | "fontStyle" | "fontWeight" | "gradient" | "gradients" | "opacity" | "radius" | "radii" | "shadow" | "shadows" | "shadowType" | "spacing" | "spacings" | "stepsTimingFunction" | "textAlignHorizontal" | "textAlignVertical" | "textDecoration" | "textStyle" | "textTransform" | "transition" | "vector" | "vectors" | "vectorFormat" | "zIndex", unknown, string>[]; /** * Returns all direct collection children of the Group */ getCollectionChildren(): CollectionState[]; /** * Returns all token children of the Group */ getAllTokenChildren(): TokenState<"string" | "number" | "boolean" | "object" | "null" | "array" | "integerNumber" | "zeroToOneNumber" | "arcDegreeNumber" | "rgbColorNumber" | "positiveNumber" | "positiveIntegerNumber" | "percentageNumber" | "hexadecimalColorString" | "bitmap" | "bitmaps" | "bitmapFormat" | "blur" | "border" | "borderStyle" | "borderStyleLineCap" | "breakpoint" | "color" | "cubicBezier" | "dimension" | "dimensionUnit" | "duration" | "durationUnit" | "font" | "fontFamily" | "fontFeature" | "fontFeatures" | "fontFormat" | "fontStyle" | "fontWeight" | "gradient" | "gradients" | "opacity" | "radius" | "radii" | "shadow" | "shadows" | "shadowType" | "spacing" | "spacings" | "stepsTimingFunction" | "textAlignHorizontal" | "textAlignVertical" | "textDecoration" | "textStyle" | "textTransform" | "transition" | "vector" | "vectors" | "vectorFormat" | "zIndex", unknown, string>[]; /** * Returns all group children of the Group */ getAllGroupChildren(): GroupState[]; /** * Returns all collection children of the Group */ getAllCollectionChildren(): CollectionState[]; /** * Rename the Group * @param newName */ rename(newName: string): boolean; /** * Get serializable JSON representation of the Group * @internal */ getJSONProperties(): import("../../index.js").JSONObject; /** * Get serializable JSON representation of the Group with its children * @internal */ toJSON(): import("../../index.js").JSONObject; move(toPath: TreePath): void; toGroupStateParams(): GroupStateParams; toAnalyzedGroup(): AnalyzedGroup; }