import fsExtra from 'fs-extra';
import { syncCatalogs as _syncCatalogs } from '../catalog/sync.js';
import { getStatePath } from '../lib/paths.js';
export { searchCatalog } from '../catalog/search.js';
export { loadCatalogItems, loadCatalogItemById } from '../catalog/repository.js';
export { loadSecurityPolicy } from '../config/runtime.js';
export { detectProjectSignals } from '../recommendation/project-analysis.js';
export { recommend } from '../recommendation/engine.js';
export { assessRisk, buildAssessment, isBlockedTier, mapRiskTier } from '../security/assessment.js';
export { PlugScoutError } from './errors.js';
export async function syncCatalogs(options) {
    return _syncCatalogs(undefined, options);
}
export async function isSetUp() {
    const itemsPath = getStatePath('data/catalog/items.json');
    return fsExtra.pathExists(itemsPath);
}
