export declare class Stack { private store; constructor(); count(): number; push(val: T): void; pop(): T | undefined; /** * Peek returns the element (n) far in the stack beginning from * the top of the stack. * n = 0 => will return the element on top of the stack. */ peek(n: number): T | undefined; /** * TODO: check if properly implemented. * @param index * @param t */ insert(index: number, t: T | undefined): void; remove(index: number): T | undefined; /** * Beware the index is from the end * @param index * @param t */ set(index: number, t: T): void; swap(i: number, j: number): void; copyTo(stack: Stack): void; }