/** * Pure content-hash functions for the simulation contract and CAEL traces. * Extracted from SimulationContract / CAELTrace to keep a single, testable surface. * * @see SimulationContract — re-exports for backward compatibility * @see sha256 — FNV-1a / SHA-256 mode dispatch */ import type { SimSolver } from './SimSolver'; import type { CAELTraceEntry } from './CAELTrace'; import { type HashMode } from './sha256'; export { HASH_MODE_DEFAULT, type HashMode } from './sha256'; export declare function hashGeometry(vertices: Float64Array | Float32Array | undefined, elements: Uint32Array | undefined, mode?: HashMode): string; export declare function hashGpuOutput(data: Float32Array, mode?: HashMode): string; /** * Per-field discretization quantum (paper-3 route-2b); exported for contract tests * and solver diagnostics. */ export declare function quantumForField(name: string): number; type SolverForDigest = { getField: SimSolver['getField']; fieldNames?: SimSolver['fieldNames'] | Iterable | { [Symbol.iterator]?: () => Iterator; }; }; /** * Compute a canonical state digest from solver field buffers under the same rules * as the runtime contract (FNV-1a vs SHA-256, per-field q_f, fail-closed on non-finite). * Returns `''` when the solver has no iterable `fieldNames` (W4-T1: skip-with-empty). */ export declare function computeStateDigest(solver: SolverForDigest, hashMode: HashMode): string; export declare function hashCAELEntry(entry: Omit, mode?: HashMode): string; //# sourceMappingURL=hashes.d.ts.map