/** * Mnemonist Stack Typings * ======================== */ export default class Stack implements Iterable { // Members size: number; // Constructor constructor(); // Methods clear(): void; push(item: T): number; pop(): T | undefined; peek(): T | undefined; forEach(callback: (item: T, index: number, stack: this) => void, scope?: any): void; toArray(): Array; values(): IterableIterator; entries(): IterableIterator<[number, T]>; [Symbol.iterator](): IterableIterator; toString(): string; toJSON(): Array; inspect(): any; // Statics static from(iterable: Iterable | {[key: string]: I}): Stack; static of(...items: Array): Stack; }