1 | export declare class Queue<T> {
|
2 | private _items;
|
3 | private _limit;
|
4 | private _evictListeners;
|
5 | onEvict: (val: (item: T) => void) => (item: T) => void;
|
6 | constructor(_items?: T[], _limit?: number);
|
7 | enqueue(item: T): T;
|
8 | evict(): T;
|
9 | dequeue(): T;
|
10 | clear(): Array<T>;
|
11 | size(): number;
|
12 | remove(item: T): T;
|
13 | peekTail(): T;
|
14 | peekHead(): T;
|
15 | }
|