/** * Manages a stack of objects */ export declare class Stack { stack: any[]; constructor(); /** * Clears the stack */ clear(): void; /** * Returns the top of the stack or null if the stack is empty */ peek(): any; /** * Pushes a new object to the top of the stack * @param obj the node to push * @param appendItem whether the item is also appended as a child to * the item at the top of the stack */ push(obj: any, appendItem?: boolean): void; /** * Appends an object to the 'nodes' array of the item at the top of the stack */ append(obj: any): void; /** * Pops the top of the stack. */ pop(): any; } export default Stack;