/** * ProjectRegistry - Centralized Project Management * * Single source of truth for all projects in SpecWeave. * Provides CRUD operations with file persistence and event emission. * * Storage: .specweave/state/projects.json */ import { Logger } from '../../utils/logger.js'; import { Project, ProjectValidationResult, AddProjectOptions, UpdateProjectOptions, RemoveProjectOptions, ProjectSyncStatus } from './types/project-types.js'; import { ProjectEventBus } from './project-event-bus.js'; export declare class ProjectRegistry { private projectRoot; private registryPath; private projects; private defaultProjectId?; private eventBus; private logger; private initialized; private isValid; constructor(projectRoot: string, options?: { logger?: Logger; eventBus?: ProjectEventBus; }); /** * Checks if this registry instance is valid (project has .specweave dir) */ isValidProject(): boolean; /** * Initialize the registry (lazy loading) */ private ensureInitialized; /** * Load registry from disk */ load(): Promise; /** * Save registry to disk */ save(): Promise; /** * Migrate projects from config.json to registry */ private migrateFromConfig; /** * Add a new project to the registry */ addProject(project: Project, options?: AddProjectOptions): Promise; /** * Update an existing project */ updateProject(id: string, updates: Partial, options?: UpdateProjectOptions): Promise; /** * Remove a project from the registry */ removeProject(id: string, options?: RemoveProjectOptions): Promise; /** * Get a project by ID */ getProject(id: string): Promise; /** * List all projects */ listProjects(): Promise; /** * Get the default project */ getDefaultProject(): Promise; /** * Set the default project */ setDefaultProject(id: string): Promise; /** * Check if a project exists */ hasProject(id: string): Promise; /** * Get project count */ count(): Promise; /** * Validate project data */ validateProject(project: Partial): ProjectValidationResult; /** * Get sync status for a project */ getSyncStatus(id: string): Promise; /** * Calculate overall sync status from individual tool statuses */ private calculateOverallStatus; /** * Request sync for a project or all projects */ requestSync(projectId?: string, targets?: ('github' | 'ado' | 'jira')[]): Promise; /** * Get the event bus for subscribing to events */ getEventBus(): ProjectEventBus; } //# sourceMappingURL=project-registry.d.ts.map