/** * Process-lifetime x402_pay settlement receipts. * * createX402Client is constructed per x402_pay call, so the SDK * transaction log is discarded when the handler returns. This log keeps * the last settled x402 payments so get_transaction_history can show the * golden path (tx hash, payee, amount, token, URL) and whether MCP retries * replayed that settlement instead of broadcasting again. * * Same lifetime as spend-intent. Not a durable cross-process ledger. * Keyless spend intents may settle again after SEND_TOKEN_INTENT_TTL_MS * with the same intent key; each distinct tx hash is its own generation. */ export declare const X402_SETTLEMENT_LOG_MAX = 256; export interface X402SettlementReceipt { intentKey: string; /** Final URL of the paid response. Under redirects this may differ from the endpoint that issued the 402. */ url: string; /** Caller-supplied URL, when it differs from `url`. */ requestedUrl?: string; /** Paid retry failed, so the redirect target that issued the 402 is unknown. */ finalUrlUnknown?: boolean; /** Monotonic order captured when the payment callback ran. */ seq?: number; method: string; amount: string; token: string; recipient: string; txHash: string; settledAt: number; replayCount: number; lastReplayAt?: number; } /** Call from onPaymentComplete to capture callback order (timestamps are whole seconds). */ export declare function nextX402SettlementSeq(): number; export declare function recordX402Settlement(entry: { intentKey: string; url: string; requestedUrl?: string; /** Paid retry failed, so the redirect target that issued the 402 is unknown. */ finalUrlUnknown?: boolean; /** Monotonic order captured when the payment callback ran. */ seq?: number; method: string; amount: string; token: string; recipient: string; txHash: string; /** Payment callback time (ms). Defaults to now. */ settledAt?: number; }): X402SettlementReceipt; export declare function recordX402SettlementReplay(intentKey: string): X402SettlementReceipt | undefined; /** Receipts ordered oldest → newest by payment callback time (stable). */ export declare function listX402Settlements(): X402SettlementReceipt[]; export declare function _resetX402SettlementLog(): void; //# sourceMappingURL=x402-receipt-log.d.ts.map