export declare class Stack { private linkedList; /** * Creates new stack */ constructor(); /** * Pushes element to the top of stack * @param {T} element */ push(element: T): void; /** * Returns the element on top of the stack * @returns {T} element on top of the stack */ top(): T; /** * Removes element from top of stack and returns it * @returns {T} removed element */ pop(): T; /** * Returns true if stack is empty, false otherwise * @returns {boolean} true if stack is empty */ isEmpty(): boolean; /** * Returns size of the stack * @returns {number} size of the stack */ getSize(): number; }