/** A queue of events that can be named. */ export default interface NamedEventQueue { length: number; name: string; /** Add element(s) to the end of the array */ push(...events: T[]): void; [Symbol.iterator](): IterableIterator; /** changes the contents of an array by removing count elements from the start of the queue */ splice(count: number): T[]; /** Returns true if the queue is empty */ isEmpty(): boolean; }