/** * toHumanView per SPEC plan B4: a pure function from NetworkReceipt to a structured, * UI-agnostic human representation. Any renderer — React, plain HTML, CLI, PDF — can present * the result without understanding the protocol. All strings come from the vocabulary module. */ import type { HumanView, NetworkReceipt } from '../types'; import { type SourceQualityInput } from '../source-quality'; import { type SpreadDriverFactInput } from '../actionable-explanations'; /** Optional facts the producing surface can add to the human view. */ export interface HumanViewOptions { /** V-Score and components when the surface computed them (0–100 / 0–1 respectively). */ scores?: { vScore?: number; completeness?: number; parity?: number; freshness?: number; absoluteConsensusValue?: { median: number | null; n: number; min: number | null; max: number | null; }; }; /** Base URL for the public receipt page; default is the uvrn.org portal. */ verifyBaseUrl?: string; /** Registry timestamp when known. */ registeredAt?: string; /** * Opt-in model-layer seam for idea snapshots (BP-22). Default off. * When on, output is clearly marked `modelGenerated`; no live model call is made here. */ enableModelSnapshots?: boolean; /** * Host-declared source-quality inputs for D2 diagnostics (preferred). * When omitted, `receipt.sourceQualityInputs` (non-hashed envelope member) is used if present. */ sourceQualityInputs?: SourceQualityInput[]; /** * Optional host-supplied spread driver facts (BP-v2.1-LATER-D3). * Typically from `@uvrn/consensus` `spreadToDriverFacts(reportSpread(...))`. * Non-hashed / render-only. */ spreadDriverFacts?: SpreadDriverFactInput[]; } /** * toHumanView renders any NetworkReceipt. Master receipts get the full evidence story; * other kinds get an honest summary of what the envelope itself can prove. */ export declare function toHumanView(receipt: NetworkReceipt, options?: HumanViewOptions): HumanView; //# sourceMappingURL=index.d.ts.map