/** * Progress indicators for openlore CLI * Uses ora for spinners with meaningful status messages */ /** * Render a tqdm-style progress bar: [=====> ] 45% (9/20) */ export declare function renderBar(current: number, total: number, width?: number): string; export interface ProgressOptions { /** Whether to show the spinner (false for non-TTY) */ enabled?: boolean; /** Prefix for log messages */ prefix?: string; } export interface FileDiscoveryProgress { found: number; directories: number; currentFile?: string; } export interface AnalysisProgress { phase: 'imports' | 'scoring' | 'graph' | 'clustering'; current?: string; processed?: number; total?: number; } export interface GenerationProgress { stage: number; totalStages: number; stageName: string; tokensUsed?: number; } export interface WritingProgress { current: number; total: number; currentFile?: string; } /** * Progress manager for CLI operations */ export declare class ProgressIndicator { private spinner; private enabled; private prefix; private verbose; private logs; constructor(options?: ProgressOptions & { verbose?: boolean; }); /** * Start a new spinner with a message */ start(message: string): void; /** * Update the spinner text */ update(message: string): void; /** * Mark the current task as successful */ succeed(message?: string): void; /** * Mark the current task as failed */ fail(message?: string): void; /** * Show a warning */ warn(message: string): void; /** * Show an info message (pauses spinner) */ info(message: string): void; /** * Stop the spinner without a status */ stop(): void; /** * Update file discovery progress */ updateFileDiscovery(progress: FileDiscoveryProgress): void; /** * Update analysis progress */ updateAnalysis(progress: AnalysisProgress): void; /** * Update generation progress */ updateGeneration(progress: GenerationProgress): void; /** * Update file writing progress */ updateWriting(progress: WritingProgress): void; /** * Log a verbose message (only shown in verbose mode) */ verboseLog(message: string): void; /** * Get all logs for saving */ getLogs(): string[]; private formatMessage; private log; } /** * Create a progress indicator for CLI operations */ export declare function createProgress(options?: ProgressOptions & { verbose?: boolean; }): ProgressIndicator; /** * Show post-run suggestions for next steps */ export declare function showNextSteps(options: { generated?: boolean; verified?: boolean; analyzed?: boolean; }): void; /** * Show success message after generation */ export declare function showGenerationSuccess(options: { specsCount: number; outputPath: string; tokensUsed?: number; }): void; /** * Show success message after analysis */ export declare function showAnalysisSuccess(options: { filesAnalyzed: number; outputPath: string; domains?: number; }): void; /** * Show success message after verification */ export declare function showVerificationSuccess(options: { score: number; filesVerified: number; passed: boolean; }): void; //# sourceMappingURL=progress.d.ts.map