/** * Main status manager */ import type { Storage } from '../storage/index.js'; import type { CompleteStatus, ErrorInfo, StatsInfo, StatusDisplay } from './types.js'; import type { IndexingStatus } from '../types/models.js'; export interface StatusManagerConfig { storage: Storage; collectionName: string; } /** * Main status manager */ export declare class StatusManager { private config; private stateMachine; private progressTracker; private errors; private isWatching; private currentBranch?; private queueSize; private stats; constructor(config: StatusManagerConfig); /** * Start indexing */ startIndexing(totalFiles: number): void; /** * Update progress */ updateProgress(currentFile?: string): void; /** * Complete indexing */ completeIndexing(): Promise; /** * Set error status */ setError(error: string): void; /** * Set standby status */ setStandby(): void; /** * Add error */ addError(file: string, error: string, retries?: number): void; /** * Set watching status */ setWatching(watching: boolean): void; /** * Set current branch */ setCurrentBranch(branch?: string): void; /** * Set queue size */ setQueueSize(size: number): void; /** * Update statistics from storage */ updateStats(): Promise; /** * Update language statistics */ updateLanguageStats(language: string, count?: number): void; /** * Update file type statistics */ updateFileTypeStats(fileType: string, count?: number): void; /** * Get complete status */ getCompleteStatus(detailed?: boolean): Promise; /** * Get status display */ getStatusDisplay(): StatusDisplay; /** * Get status icon */ private getStatusIcon; /** * Get current status */ getStatus(): IndexingStatus; /** * Get progress */ getProgress(): import("./types.js").ProgressInfo; /** * Get statistics */ getStats(): StatsInfo; /** * Get errors */ getErrors(limit?: number): ErrorInfo[]; /** * Clear errors */ clearErrors(): void; /** * Reset status */ reset(): void; } export type { CompleteStatus, StatusDisplay, ProgressInfo, StatsInfo, ErrorInfo } from './types.js'; export { StatusStateMachine } from './state-machine.js'; export { ProgressTracker } from './progress-tracker.js'; //# sourceMappingURL=index.d.ts.map