/** * Queue adapter for native array */ export default class Queue { private container; /** * Make a queue with initial elements (ordered as supplied) * @param elements initial elements * @returns A newly initialized queue */ static make(...elements: Array): Queue; /** * Enqueue one or more elements to the queue, processed left to right * @param elements the elements to enqueue in sequence */ enqueue(...elements: Array): void; /** * Dequeue an element from the queue. Returns undefined if queue is empty * @returns the first deleted element or undefined */ dequeue(): T | undefined; /** * Returns the first element in queue without deleting, undefined if queue is empty * @returns the first element or undefined */ first(): T | undefined; /** * Returns the size of the queue. * @returns number */ size(): number; /** * Check if the queue is first * @returns boolean true if the size is 0 */ isEmpty(): boolean; } //# sourceMappingURL=queue.d.ts.map