/** * @pwngh/economy-lab * * Copyright (c) Preston Neal * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ import type { Ctx, Operation, Outcome } from '../contract.js'; import type { Unit } from '../ports.js'; /** * Settles a submitted payout (SUBMITTED to SETTLED), driven by the provider's settlement report. * * A system-actor operation, so the provider's inbound webhook can trigger it. The worker sweep * never settles; it only re-drives and force-fails stale payouts (src/worker/payouts.ts). * Restricted to system or operator (RESTRICTED_TO_PRIVILEGED in economy.ts): an end * user must never settle their own payout. Losing the SUBMITTED to SETTLED CAS rolls back the two * postings and the event, so the seller is never paid twice. * * @see {@link https://economy-lab-docs.pages.dev/economy/reference/operations/settle-payout/ Settle * payout} for the webhook-driven SUBMITTED to SETTLED settlement step. * @see {@link https://economy-lab-docs.pages.dev/economy/ports/processor/ Processor} for the * settlement and dispute callback contract. */ export declare function settlePayout(operation: Operation, unit: Unit, ctx: Ctx): Promise;