import { CLI, JobStatus } from '../index.js'; import { ux, Command } from '@oclif/core'; export declare enum OutputLevel { silent = 0, interactive = 1, verbose = 2 } /** * A base command that provided common functionality for all Spidergram commands. * Most of these options are possible to wire together with tools in the Oclif library, * but the SpiderCommand class puts the simplest/standard approach within easy reach when * building a command. * * Functionality includes: * - Easy instantiation of spidergram project context * - A growing cluster of support functions * - stylized output (JSON, url, objects, headers) * - Convenience wrappers for prompts and complex status updates * * All implementations of this class need to implement the run() method. */ export declare abstract class SgCommand extends Command { static enableJsonFlag: boolean; ux: typeof ux; format: { error: import("chalk").ChalkInstance; warning: import("chalk").ChalkInstance; info: import("chalk").ChalkInstance; success: import("chalk").ChalkInstance; highlight: import("chalk").ChalkInstance; }; chalk: import("chalk").ChalkInstance; output: OutputLevel; progress: CLI.progress.Bar; protected get statics(): typeof SgCommand; /** * Given a {JobStatus} object, display a status update to the user. * * By default, it will advance the console progress bar and update the ETA. * If the command is running in verbose mode, a line will be logged to stderr. * If the command is running in silent mode, nothing will be displayed. * * @protected * @param {JobStatus} status */ protected updateProgress(status: JobStatus): void; protected stopProgress(msg?: string): void; protected startProgress(msg?: string, total?: number): void; } //# sourceMappingURL=sg-command.d.ts.map