import Command from './BaseCommand.mjs'; /** * Represents a queue of commands with timestamp-based sorting. */ declare class CommandQueue { private queue; /** * @returns The number of commands in the queue. */ get size(): number; /** * Adds a command to the queue and sorts it based on timestamp. * @param command - The command to be added to the queue. */ enqueue(command: Command): void; /** * Removes and returns the first command from the queue. * @returns The first command in the queue, or undefined if the queue is empty. * @throws {FavaLibError} If the queue is empty. */ dequeue(): Command | undefined; /** * Checks if the queue is empty. * @returns True if the queue is empty, false otherwise. */ isEmpty(): boolean; } export default CommandQueue;