import { type Command } from "./command.js"; /** * Represents the action to run when calling `visitCommands` on a @see CommandBuffer. */ export type CommandsVisitor = (command: Command) => void; /** * A command buffer is a list of commands to execute. * This is used to store the list of tasks the current smart filter needs to execute. */ export declare class CommandBuffer { private readonly _commands; /** * Creates a new command buffer. * @param args - the list of commands to add to the command buffer */ constructor(...args: Command[]); /** * Adds a command to the command buffer. * @param command - the command to add */ push(command: Command): void; /** * Clears the command buffer and empty the list of commands. */ clear(): void; /** * Visits all the commands in the command buffer. * @param commandVisitor - The action to execute on each command */ visitCommands(commandVisitor: CommandsVisitor): void; /** * Execute all the commands in the command buffer. */ execute(): void; /** * Dispose the resources associated to the command buffer. */ dispose(): void; } //# sourceMappingURL=commandBuffer.d.ts.map