import { MathNode } from "mathjs"; /** * This represents the current (sub)expression we're simplifying. * As we move step by step, a node might be updated. Functions return this * status object to pass on the updated node and information on if/how it was * changed. * Status(node) creates a Status object that signals no change * */ export declare class NodeStatus { changeType: any; private oldNode; newNode: any; substeps: any[]; get hasChanged(): boolean; constructor(changeType: any, oldNode: any, newNode: any, substeps?: any[]); static resetChangeGroups(node: any): any; /** * A wrapper around the Status constructor for the case where node hasn't * been changed. * */ static noChange(node: MathNode): NodeStatus; /** * A wrapper around the Status constructor for the case of a change * that is happening at the level of oldNode + newNode * e.g. 2 + 2 --> 4 (an addition node becomes a constant node) * */ static nodeChanged(changeType: any, oldNode: any, newNode: any, defaultChangeGroup?: boolean, steps?: any[]): NodeStatus; /** * A wrapper around the Status constructor for the case where there was * a change that happened deeper `node`'s tree, and `node`'s children must be * updated to have the newNode/oldNode metadata (changeGroups) * e.g. (2 + 2) + x --> 4 + x has to update the left argument * */ static childChanged(node: any, childStatus: any, childArgIndex?: any): NodeStatus; }