import type { CeremonyContext } from "../mount.js"; import type { CeremonyOrder, DelegatedVerdict, GateOutcome } from "../types.js"; import type { Origin } from "../origin.js"; /** * The two gates the gate itself owns on this rail (the rest of the presentment's trust is * the verifier's). Passed to `completeOrder` as `input.gates`, so a failure refuses at the * shared seam BEFORE settlement — never trusting `verdict.approved` alone. * * • Verifier approved — NECESSARY (the verifier's trust verdict), never sufficient. * • Amount binding — the amount/currency/payee the wallet signed over, re-derived from * the catalog + this RP's origin and compared to what the verifier reports. */ export declare function runDelegatedGates(order: CeremonyOrder, origin: Origin, verdict: DelegatedVerdict): GateOutcome[]; /** * Re-run THIS merchant's policy over the verdict's disclosed claims and write the per-order * verification state `completeOrder` enforces. Only `gate()` credentials (age, custom) are * evaluated here — a `payment` (`authorize`) credential is proven by the binding gate + * settlement, and `discount` credentials are never demanded in a delegated ceremony. * * On a passing claim we write the SAME field the credential rail writes (`ageVerified` / * `verifiedGates[id]`); on a failing/absent one we write NOTHING, so `completeOrder`'s shared * sweep refuses (reason `age` / `gate`). We never trust the verifier's own age/business check. */ export declare function applyDelegatedPolicy(ctx: CeremonyContext, order: CeremonyOrder, verdict: DelegatedVerdict): Promise; /** True iff the order's policy authorizes a payment (⇒ settlement is required). */ export declare function policyHasPayment(ctx: CeremonyContext, order: CeremonyOrder): boolean; /** Extract a display instrument from the disclosed payment claims (receipt only; the * external verifier already verified the DPC — the gate does not re-check these). */ export declare function instrumentFromVerdict(verdict: DelegatedVerdict): Record | undefined;