/// /// import { EventEmitter } from 'node:events'; import type { Widgets } from './service'; export declare class Command extends EventEmitter { private readonly root; private readonly tasks; private readonly officialRegistry; private readonly npmmirrorRegistry; private readonly logs; private readonly maxLogsSize; constructor(root: Widgets); get status(): boolean; get history(): (string | Buffer)[]; log(buf: string | Buffer, label?: string): void; info(buf: string | Buffer): void; warn(buf: string | Buffer): void; error(buf: string | Buffer): void; success(buf: string | Buffer): void; logBuffer(buf: string | Buffer): void; private getRegistry; add(name: string, auto?: boolean): Promise; private checkInQueue; del(name: string): Promise; cancel(): void; private checkPJBlogPackageVaild; private createCommandRunner; getRunningCommander(): string; private dispatch; }