import { Workspace, Repository } from './types.js';
import { ConfigManager } from '../../config/config-manager.js';
import { FileSystemAdapter } from './file-system-adapter.js';
export declare class WorkspaceDataStore {
    private store;
    private configManager;
    private readonly MODULE_NAME;
    private readonly DATA_FILE;
    private fs;
    constructor(configManager?: ConfigManager, fs?: FileSystemAdapter);
    init(): Promise<void>;
    save(): Promise<void>;
    createWorkspace(name: string, rootPath: string, description?: string): Workspace;
    getWorkspace(nameOrId: string): Workspace | undefined;
    getActiveWorkspace(): Workspace | undefined;
    setActiveWorkspace(workspaceNameOrId: string): boolean;
    addRepository(workspaceNameOrId: string, repo: Omit<Repository, 'id' | 'lastSync'>): Repository | null;
    detectRepositories(rootPath: string): Promise<Repository[]>;
    getRepositoriesForWorkspace(workspaceNameOrId: string): Repository[];
    updateRepository(workspaceNameOrId: string, repoId: string, updates: Partial<Omit<Repository, 'id'>>): boolean;
    getWorkspaces(): Workspace[];
    findRepository(name: string): Repository | undefined;
    findRepositoryByPath(repoPath: string): Repository | undefined;
    getPrimaryRepository(): Repository | undefined;
    private generateId;
}
//# sourceMappingURL=store.d.ts.map