/** * Mnemonist FixedDeque Typings * ============================= */ import {IArrayLikeConstructor, TypedArray} from './utils/types'; export default class FixedDeque implements Iterable { // Members capacity: number; size: number; // Constructor constructor(ArrayClass: IArrayLikeConstructor, capacity: number); // Methods clear(): void; push(item: T): number; unshift(item: T): number; pop(): T | undefined; shift(): T | undefined; peekFirst(): T | undefined; peekLast(): T | undefined; get(index: number): T | undefined; forEach(callback: (item: T, index: number, buffer: this) => void, scope?: any): void; toArray(): Array | TypedArray; values(): IterableIterator; entries(): IterableIterator<[number, T]>; [Symbol.iterator](): IterableIterator; inspect(): any; // Statics static from(iterable: Iterable | {[key: string]: I}, ArrayClass: IArrayLikeConstructor, capacity?: number): FixedDeque; }