woaru
Version:
Universal Project Setup Autopilot - Analyze and automatically configure development tools for ANY programming language
30 lines • 1.07 kB
TypeScript
import { EventEmitter } from 'events';
import { ProjectState, FileChange, CodeIssue } from './types';
export declare class StateManager extends EventEmitter {
private state;
private stateFile;
private saveInProgress;
private autoSaveInterval?;
private readonly stateLock;
constructor(projectPath: string);
private initializeState;
load(): Promise<void>;
save(): Promise<void>;
getState(): ProjectState;
updateLanguage(language: string): void;
updateFrameworks(frameworks: string[]): void;
addDetectedTool(tool: string): void;
addMissingTool(tool: string): void;
updateCodeIssues(file: string, issues: CodeIssue[]): void;
addWatchedFile(filePath: string): void;
removeWatchedFile(filePath: string): void;
applyFileChange(change: FileChange): void;
private updateHealthScore;
private calculateToolCoverage;
private calculateIssueScore;
startAutoSave(): void;
stopAutoSave(): void;
private markDirty;
destroy(): Promise<void>;
}
//# sourceMappingURL=StateManager.d.ts.map