/** * Mnemonist Queue Typings * ======================== */ export default class Queue implements Iterable { // Members size: number; // Constructor constructor(); // Methods clear(): void; enqueue(item: T): number; dequeue(): T | undefined; peek(): T | undefined; forEach(callback: (item: T, index: number, queue: 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}): Queue; static of(...items: Array): Queue; }