/** * BOM quality — report generation. * * Analyses BOM entries against supplier data to surface issues: * 1. **Unavailable** — part not found or discontinued at any supplier. * 2. **Single-source** — part found at exactly one supplier. * 3. **Missing MPN** — no manufacturer part number. * 4. **Missing footprint** — no package / footprint. * 5. **Low stock** — stock below threshold at every supplier. * * @module */ import type { BomEntry, BomQualityReport, BomQualityConfig } from './types.js'; import type { AdapterMap } from './adapter.js'; /** * Generate a BOM quality report for the given entries. * * For each entry the function: * 1. Queries every available supplier that can handle the entry. * 2. Collects supplier results (with error resilience). * 3. Runs the five quality checks. * 4. Returns a structured report with a summary. * * Supplier failures are caught gracefully — the report always succeeds * (non-null), with `hasSupplierErrors` set to `true` and any affected * entries marked via their issues. */ export declare function generateBomQualityReport(bomId: string, entries: BomEntry[], adapters: AdapterMap, config?: BomQualityConfig): Promise;