/**
 * Phase2 Manifest Writer
 *
 * Walks the phase2/ directory tree, computes SHA-256 checksums for every file,
 * and writes phase2-manifest.json with full artifact inventory.
 *
 * Follows the atomic write + checksum pattern from
 * src/synthesis/simulation-artifact-generator.ts
 */
import type { Phase2StageOutput, Phase2Manifest } 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 phase2 manifest to `phase2-manifest.json`.
 *
 * Walks the phase2 output directory, checksums every artifact, and produces
 * a manifest with full provenance (trace id, phase1 run id, stage results,
 * timing, and per-file SHA-256 hashes).
 *
 * @param phase2Dir    - Root output directory for phase2 artifacts
 * @param traceId      - Trace identifier linking phase1 and phase2
 * @param phase1RunId  - Run identifier from the preceding phase1 execution
 * @param stageResults - Outputs from each completed phase2 stage
 * @param totalTiming  - Wall-clock milliseconds for the entire phase2 run
 * @returns The fully-populated manifest object
 */
export declare function writePhase2Manifest(phase2Dir: string, traceId: string, phase1RunId: string, stageResults: Phase2StageOutput[], totalTiming: number): Phase2Manifest;
//# sourceMappingURL=manifest-writer.d.ts.map