import { AssetIdentifier, CoinObject, EnvOption, TransactionResult, MarketOption, ServiceOption } from './types.js'; import { Transaction } from '@mysten/sui/transactions'; /** * Create a liquidation transaction in the PTB (Programmable Transaction Block) * * This function allows liquidators to liquidate a borrower's position by repaying * their debt in exchange for their collateral. The liquidation process uses flash loans * to ensure atomic execution of the liquidation transaction. * * @param tx - The transaction block to add the liquidation operation to * @param payAsset - Asset identifier for the debt being repaid * @param payCoinObject - Coin object containing the debt repayment amount * @param collateralAsset - Asset identifier for the collateral being liquidated * @param liquidateAddress - Address of the borrower being liquidated * @param options - Optional environment configuration * @returns Tuple containing [collateralBalance, remainDebtBalance] where: * - collateralBalance: The collateral received from liquidation * - remainDebtBalance: Any remaining debt after liquidation * @throws Error if either pay asset or collateral asset does not support flash loans */ export declare function liquidatePTB(tx: Transaction, payAsset: AssetIdentifier, payCoinObject: CoinObject, collateralAsset: AssetIdentifier, liquidateAddress: string | TransactionResult, options?: Partial): Promise<{ NestedResult: [number, number]; $kind: "NestedResult"; }[]>; //# sourceMappingURL=liquidate.d.ts.map