/** * Payout Service * Handles payout/funds distribution operations */ import { BaseService } from './BaseService'; import { PayoutOptions, PayoutResponse, PayoutBeneficiary } from '../types'; /** * Service for payout/funds distribution operations */ export declare class PayoutService extends BaseService { /** * Create a payout transaction to distribute funds to multiple beneficiaries * * The ABA PayWay Funds Route API provides a seamless solution for splitting * and distributing payments to third parties, sellers, service providers, * or your ABA bank accounts. * * @param options - Payout options * @returns Payout response with transaction details and beneficiary information * @throws {PayWayError} If request fails or validation errors occur * * @example * const result = await payoutService.payout({ * beneficiaries: [ * { account: '200030000', amount: 100 }, * { account: '012538302', amount: 200 } * ], * amount: 300, * currency: 'USD', * rsaPublicKey: process.env.PAYWAY_RSA_PUBLIC_KEY * }); */ payout(options: PayoutOptions): Promise; /** * Validate payout beneficiaries before making a request * * @param beneficiaries - Array of beneficiaries to validate * @param totalAmount - Total transaction amount * @returns True if valid * @throws {PayWayError} If validation fails */ validateBeneficiaries(beneficiaries: PayoutBeneficiary[], totalAmount: number): boolean; }