/** * Export manifest — error codes, structured issues, and factories. * * Follows the same pattern as `net-validation/errors.ts`: * a const-object error code enum, a structured issue interface * (re-exported from types.ts), and factory helpers. * * @module */ import type { ExportManifestIssue } from './types.js'; export declare const ExportManifestCode: { /** A required artifact file was not found in the export output. */ readonly MISSING_REQUIRED_FILE: "MISSING_REQUIRED_FILE"; /** An artifact file exists but has zero bytes. */ readonly EMPTY_FILE: "EMPTY_FILE"; /** An artifact is flagged as stale (outdated). */ readonly STALE_FILE: "STALE_FILE"; /** An artifact appears in the output but was not in the expected set. */ readonly UNEXPECTED_FILE: "UNEXPECTED_FILE"; /** Artifact checksum does not match the expected value. */ readonly CHECKSUM_MISMATCH: "CHECKSUM_MISMATCH"; /** Artifact's declared file type does not match its content/name. */ readonly WRONG_FILE_TYPE: "WRONG_FILE_TYPE"; /** Required artifact is missing checksum metadata. */ readonly MISSING_CHECKSUM: "MISSING_CHECKSUM"; /** Required artifact is missing file size metadata. */ readonly MISSING_FILE_SIZE: "MISSING_FILE_SIZE"; /** Required artifact is missing generation metadata. */ readonly MISSING_GENERATION_METADATA: "MISSING_GENERATION_METADATA"; /** Required manufacturing artifact role is missing from the package. */ readonly MISSING_REQUIRED_ROLE: "MISSING_REQUIRED_ROLE"; /** Board outline artifact is missing or invalid. */ readonly MISSING_BOARD_OUTLINE: "MISSING_BOARD_OUTLINE"; /** Drill artifact is missing or invalid. */ readonly MISSING_DRILL_FILE: "MISSING_DRILL_FILE"; /** BOM and pick-and-place designators are inconsistent. */ readonly BOM_PNP_MISMATCH: "BOM_PNP_MISMATCH"; /** Manifest lacks required project / EasyEDA metadata. */ readonly MISSING_PROJECT_METADATA: "MISSING_PROJECT_METADATA"; /** Artifact is missing a human-readable purpose description. */ readonly MISSING_PURPOSE: "MISSING_PURPOSE"; /** Artifact is missing a generation timestamp. */ readonly MISSING_GENERATED_TIMESTAMP: "MISSING_GENERATED_TIMESTAMP"; /** Artifact is missing a source project reference. */ readonly MISSING_SOURCE_PROJECT: "MISSING_SOURCE_PROJECT"; /** Manifest version string is not valid semver. */ readonly INVALID_MANIFEST_VERSION: "INVALID_MANIFEST_VERSION"; /** Validation could not be completed due to an internal error. */ readonly MANIFEST_INTERNAL: "MANIFEST_INTERNAL"; }; export type ExportManifestCode = (typeof ExportManifestCode)[keyof typeof ExportManifestCode]; /** * Create a single export manifest issue. */ export declare function manifestIssue(code: ExportManifestCode, message: string, opts?: { severity?: 'error' | 'warning'; path?: string; artifactPath?: string; artifactType?: string; purpose?: string; remediationHint?: string; details?: Record; }): ExportManifestIssue; /** * Convenience: create an error-severity issue. */ export declare function manifestError(code: ExportManifestCode, message: string, opts?: Omit[2], 'severity'>): ExportManifestIssue; /** * Convenience: create a warning-severity issue. */ export declare function manifestWarning(code: ExportManifestCode, message: string, opts?: Omit[2], 'severity'>): ExportManifestIssue;