khodkar-cli
Version:
A TypeScript CLI application that extracts business rules and logic from codebases for customer support knowledge bases
31 lines • 1.13 kB
TypeScript
import { ProgressInfo } from '@/types';
export interface ProgressTrackerOptions {
verbose?: boolean;
showETA?: boolean;
updateInterval?: number;
}
export declare class ProgressTracker {
private options;
private spinner;
private startTime;
private verbose;
private showETA;
private updateInterval;
constructor(options?: ProgressTrackerOptions);
start(message?: string): void;
update(progress: ProgressInfo): void;
updatePhase(phase: ProgressInfo['currentPhase'], message?: string): void;
succeed(message?: string): void;
fail(message?: string): void;
warn(message: string): void;
info(message: string): void;
stop(): void;
private calculateETA;
private formatDuration;
private isComplete;
static createFileProgressBar(current: number, total: number, width?: number): string;
static formatFileSize(bytes: number): string;
static formatProcessingRate(filesProcessed: number, timeElapsed: number): string;
createSummary(totalFiles: number, rulesExtracted: number, errors: string[]): void;
}
//# sourceMappingURL=progress-tracker.d.ts.map