import { IReadonlyQueue } from "./IReadonlyQueue"; /** * Defines a complete interface describing a queue data structure */ export interface IQueue extends IReadonlyQueue { /** * Clears the entire queue all at once */ clear(): void; /** * Pops the next value, if any, off the queue * @returns The next value in the queue, if any */ pop(): T | undefined; /** * Pushes the given value onto the queue * @param value The value to put onto the queue */ push(value: T): void; /** * Pushes the given values onto the queue such that the last * value in the array is the last value in the queue * @param valuesArray The array of values to put onto the queue */ pushArray(valuesArray: ReadonlyArray): void; }