/** * Stage 6 — Reduce (deterministic) * * Merge atoms across chunks by hash(normalized_text). * When duplicates exist, keep the highest-importance instance. */ import type { SourcedAtom } from '../prompts/extract.js'; export interface ReducedAtom extends SourcedAtom { /** Hash of the normalized (lowercased, trimmed, whitespace-collapsed) text */ contentHash: string; } /** * Merge a flat array of atoms, deduplicating by content hash. * On collision, keep the highest-importance instance. */ export declare function reduce(atoms: SourcedAtom[]): ReducedAtom[];