/** * @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'; /** * Starts a payout for a seller: reserves `amount` of earned credits into PAYOUT_RESERVE and opens * the saga in RESERVED for a worker to finish in USD. The two lines posted here are both CREDIT and * cancel out; the worker posts the USD side later. Only earned credit is payable. Insufficient * earned credit returns a `rejected` result; a malformed amount (not CREDIT, or not positive) throws. * * @see {@link https://economy-lab-docs.pages.dev/economy/reference/operations/request-payout/ * Request payout} for the full payout request lifecycle. */ export declare function requestPayout(operation: Operation, unit: Unit, ctx: Ctx): Promise;