/**
 * Phase 5 Manifest Writer
 *
 * Walks the phase5/ directory tree, computes SHA-256 checksums for every file,
 * and writes phase5-manifest.json with full artifact inventory.
 *
 * Follows the atomic write + checksum pattern from
 * src/pipeline/phase4/manifest-writer.ts, adapted for Phase 5 fields:
 *   - schema_version: '5.0.0'
 *   - erp_system, service_name, registration_id, endpoints
 *   - success (derived from stage results)
 *
 * Exports:
 *   - computeChecksum()     — pure SHA-256 hex digest helper
 *   - writePhase5Manifest() — builds and atomically writes the manifest
 */
import type { Phase5StageOutput, Phase5Manifest, ERPSurfaceRegistration } from './types.js';
/**
 * Compute a SHA-256 hex digest of the given string content.
 *
 * @param content - UTF-8 string to hash
 * @returns Lowercase hex SHA-256 checksum
 */
export declare function computeChecksum(content: string): string;
/**
 * Build and atomically write the Phase 5 manifest to `phase5-manifest.json`.
 *
 * Walks the Phase 5 output directory, checksums every artifact, and produces
 * a manifest with full provenance (trace id, ERP system, service registration,
 * endpoint mappings, stage results, timing, and per-file SHA-256 hashes).
 *
 * @param phase5Dir      - Root output directory for Phase 5 artifacts
 * @param traceId        - Trace identifier linking pipeline phases
 * @param erpSystem      - The resolved ERP system identifier
 * @param registration   - The ERP surface registration, or null if skipped
 * @param stageResults   - Outputs from each completed Phase 5 stage
 * @param totalTiming    - Wall-clock milliseconds for the entire Phase 5 run
 * @returns The fully-populated manifest object
 */
export declare function writePhase5Manifest(phase5Dir: string, traceId: string, erpSystem: string, registration: ERPSurfaceRegistration | null, stageResults: Phase5StageOutput[], totalTiming: number): Phase5Manifest;
//# sourceMappingURL=manifest-writer.d.ts.map