import type { TrustLevel } from "../types.js"; /** How a proof was made — "instant-demo" means no wallet was involved. */ export type ProofRail = "credential" | "dc-payment" | "passkey" | "instant-demo"; export interface ProofEntry { /** Buyer-facing label, e.g. "Age 21+", "Membership", "Pay (USD)". One entry per gate. */ gate: string; rail: ProofRail; trust_level: TrustLevel; /** What the gate checked, as the rail reported it. */ checks: { gate: string; pass: boolean; detail: string; }[]; presentedAt: string; } /** Add `entry`, replacing an earlier proof of the SAME gate (re-proving never piles up). Every * entry comes back without credential bytes, so the next write cleans one stored before #320. */ export declare function upsertProof(proofs: readonly ProofEntry[] | undefined, entry: ProofEntry): ProofEntry[]; /** The proofs without credential bytes. The type already has no `presentation`; this drops one an * untyped caller attached, or one stored before #320, at each door a stored proof leaves by. */ export declare function withoutPresentations(proofs: readonly ProofEntry[]): ProofEntry[]; export declare function withoutPresentations(proofs: readonly ProofEntry[] | undefined): ProofEntry[] | undefined;