import type { CardOutcomeFact } from "./CardOutcomeFact.js"; import { type OutcomeEvidenceDraft } from "./OutcomeEvidence.js"; /** * The platform module id card evidence is stated under. An agreement's scope names it in * `platforms` (with `CARD_PURCHASE` in `action_types`, and no connection ids, since card * evidence carries none) for the meter to count it. The executor that matches the issuer's * authorizations runs as the `card-issuer` platform; this id names what is measured, the card * authorization, and is the one an agreement uses. */ export declare const CARD_OUTCOME_PLATFORM = "card-authorization"; /** The one action the cards family governs, `card.purchase`, in the contract's code form. */ export declare const CARD_OUTCOME_ACTION_TYPE = "CARD_PURCHASE"; /** * Card purchases as outcome evidence (`decionis.outcomes.evidence/1`), one subject per * purchase, stated only from the facts AgentSafe recorded. Nothing is classified here: Core's * one `OutcomeCalculator` applies the customer's signed agreement. Every field is stated * conservatively, from a fact that establishes it, or left null: * * - subject: a digest of the tenant and the purchase's intent id, so subjects are scoped to the * tenant and nothing in them identifies a card, a cardholder or a merchant. * - amount: what the purchase named at decision time, in its own currency and minor units. * - coverage and decision: every stated purchase carried a decision, so it is `GOVERNED`; the * decision's `mode` says whether it was enforced or only evaluated in shadow, which Core * reads as an estimate and never sums with realized results. A decision the authority never * took (it did not answer, and the boundary refused on its own) is not stated at all. * - review: only for an enforced hold, and only from a person's answer. A cardholder's tap or a * Presence approval that released the hold is `RELEASED` as `LEGITIMATE`; a Presence denial is * `REJECTED` and `UNCONFIRMED`, because refusing a purchase is not establishing that it was a * problem. AgentSafe records no one's confirmation of a problem, so it never states one. * - execution: the issuer's result for the authorization that claimed the grant (`COMMITTED`, * `FAILED`, or `UNKNOWN` for a result after the claim's lease); `UNKNOWN` while a claimed * authorization has no result; `NOT_EXECUTED` once nothing can be claimed any more (a held * grant expired unspent, a grant that was never held, or an intent past its expiry with no * grant ever held). Shadow never executes here, so it states none. * - financial: always null. The issuer's clearing, settlement and reversals are outside this * boundary, and nothing here records them. */ export declare class CardOutcomeEvidenceProvider { readonly platform = "card-authorization"; /** Each purchase decided inside the window (both ends included), stated as it stands at `to`. */ collect(facts: readonly CardOutcomeFact[], window: { readonly from: Date; readonly to: Date; }): OutcomeEvidenceDraft[]; /** One purchase's evidence from its facts, oldest first, or null when they state none. */ map(facts: readonly CardOutcomeFact[], now: Date): OutcomeEvidenceDraft | null; /** A person's answer to the hold: the first resumption that released it or that a person refused. */ private review; /** What became of the purchase at the issuer, as far as this boundary saw it, at `now`. */ private execution; /** The facts in their steps; null without the decision every stated purchase starts from. */ private static sort; /** A grant id as the contract carries one: a UUID, or nothing. */ private static grant; } //# sourceMappingURL=CardOutcomeEvidence.d.ts.map