/** * Export manifest — validation rules and entry point. * * Implements 10 validation rules that operate on {@link ExportManifestInput} * and produce structured {@link ExportManifestIssue}s. * * Rules: * 1. Invalid manifest version — error if version is not valid semver * 2. Missing source project — error if sourceProjectId is empty * 3. Missing generated timestamp — error if generatedAt is empty * 4. Missing purpose — warning for each artifact without purpose * 5. Empty file — error for each artifact with fileSize === 0 * 6. Stale file — warning for each artifact flagged stale * 7. Checksum mismatch — error when expected checksum != actual * 8. Missing required file — error when expected artifact not found in output * 9. Unexpected file — warning when output file not in expected set * 10. Wrong file type — error when artifact type doesn't match expected * 11. Missing artifact metadata — error/warning for missing checksum, size, or generator data * 12. Manufacturing roles — error when required board outline, drill, or layer roles are missing * 13. Project metadata — error when EasyEDA/project metadata is required but absent * 14. BOM/PNP consistency — error when pick-and-place designators are not represented in BOM * * @module */ import type { ExportManifestInput, ExportManifestReport } from './types.js'; /** * Run all export manifest validation rules against an input manifest. * * Orchestrates 10 rules: * 1. Invalid manifest version — error if version is not valid semver * 2. Missing source project — error if sourceProjectId is empty * — warning per artifact without sourceProject * 3. Missing generated timestamp— error if generatedAt is empty * — warning per artifact without timestamp * 4. Missing purpose — warning per artifact without purpose * 5. Empty file — error per artifact with fileSize === 0 * 6. Stale file — warning per artifact with stale === true * 7. Checksum mismatch — error when checksum "expected:actual" differs * 8. Missing required file — error when expected artifact not in output * 9. Unexpected file — warning when output file not in expected set * 10. Wrong file type — error when artifact type !== expected type * 11. Required metadata — error when manufacturing policy requires missing checksums, sizes, or generation metadata * 12. Manufacturing roles — error when required board outline, drill, layer, BOM, or pick-place roles are missing * 13. Project metadata — error when EasyEDA/project metadata required by policy is absent * 14. BOM/PNP consistency — error when assembly designator data is inconsistent */ export declare function validateExportManifest(input: ExportManifestInput): ExportManifestReport;