/** * Pure view projections for the qulib Confidence Layer (Views 2–5). * * P3 — qulib Confidence Layer v1. * * All functions are pure (no I/O). Persistence sinks (file/db) are deferred to P4. * View 1 (Release Confidence) IS the ReleaseConfidence object from the scorer. * * View 2 — diffConfidence: build a DeliveryTrafficPoint from two consecutive verdicts. * View 3 — deriveInbox: extract human-judgment items from a verdict. * View 4 — buildReplay: construct the provenance trace from input + result. * View 5 — toAuditEntry: serialize a verdict to a tamper-evident audit record. */ import type { ReleaseConfidence, ConfidenceInput } from '../../schemas/confidence.schema.js'; import type { DeliveryTrafficPoint, InboxItem, ReplayTrace, AuditEntry } from '../../schemas/views.schema.js'; /** * Build a DeliveryTrafficPoint from the current verdict and an optional prior verdict. * deltaFromPrev is null when there is no prior point. */ export declare function diffConfidence(current: ReleaseConfidence, prior: ReleaseConfidence | null): DeliveryTrafficPoint; /** * Derive human-judgment inbox items from a verdict. * Raises items for: * - every blocking evidence item * - every 'unknown' contribution on a requiredSource (when policy provides them) * - 'block' verdict with a null score (nothing evaluable) */ export declare function deriveInbox(rc: ReleaseConfidence, input: ConfidenceInput): InboxItem[]; /** * Build the provenance trace from the scorer input + result. * Steps are ordered by their appearance in the input evidence array, * with all provenance fields carried from EvidenceItem.collector. */ export declare function buildReplay(input: ConfidenceInput, rc: ReleaseConfidence): ReplayTrace; /** * Serialize a verdict to a tamper-evident audit record. * recordHash is SHA-256 over the canonical record — changes when any field changes. */ export declare function toAuditEntry(rc: ReleaseConfidence, evidenceSourceCount: number): AuditEntry; //# sourceMappingURL=confidence-views.d.ts.map