import { DeepBookConfig } from "../utils/config.mjs"; import * as _mysten_sui_transactions466 from "@mysten/sui/transactions"; import { Transaction } from "@mysten/sui/transactions"; //#region src/transactions/marginLiquidations.d.ts /** * MarginLiquidationsContract class for managing LiquidationVault operations. */ declare class MarginLiquidationsContract { #private; /** * @param {DeepBookConfig} config Configuration for MarginLiquidationsContract */ constructor(config: DeepBookConfig); /** * @description Create a new liquidation vault * @param {string} liquidationAdminCap The liquidation admin cap object ID * @returns A function that takes a Transaction object */ createLiquidationVault: (liquidationAdminCap: string) => (tx: Transaction) => void; /** * @description Deposit coins into a liquidation vault * @param {string} vaultId The liquidation vault object ID * @param {string} liquidationAdminCap The liquidation admin cap object ID * @param {string} coinKey The key to identify the coin type * @param {number} amount The amount to deposit * @returns A function that takes a Transaction object */ deposit: (vaultId: string, liquidationAdminCap: string, coinKey: string, amount: number) => (tx: Transaction) => void; /** * @description Withdraw coins from a liquidation vault * @param {string} vaultId The liquidation vault object ID * @param {string} liquidationAdminCap The liquidation admin cap object ID * @param {string} coinKey The key to identify the coin type * @param {number} amount The amount to withdraw * @returns A function that takes a Transaction object and returns the withdrawn coin */ withdraw: (vaultId: string, liquidationAdminCap: string, coinKey: string, amount: number) => (tx: Transaction) => _mysten_sui_transactions466.TransactionResult; /** * @description Liquidate a margin manager by repaying base debt * @param {string} vaultId The liquidation vault object ID * @param {string} managerAddress The margin manager address to liquidate * @param {string} poolKey The key to identify the pool * @param {number} [repayAmount] The amount to repay (in base asset units), or undefined for full liquidation * @returns A function that takes a Transaction object */ liquidateBase: (vaultId: string, managerAddress: string, poolKey: string, repayAmount?: number) => (tx: Transaction) => void; /** * @description Liquidate a margin manager by repaying quote debt * @param {string} vaultId The liquidation vault object ID * @param {string} managerAddress The margin manager address to liquidate * @param {string} poolKey The key to identify the pool * @param {number} [repayAmount] The amount to repay (in quote asset units), or undefined for full liquidation * @returns A function that takes a Transaction object */ liquidateQuote: (vaultId: string, managerAddress: string, poolKey: string, repayAmount?: number) => (tx: Transaction) => void; /** * @description Get the balance of a specific coin type in the liquidation vault * @param {string} vaultId The liquidation vault object ID * @param {string} coinKey The key to identify the coin type * @returns A function that takes a Transaction object */ balance: (vaultId: string, coinKey: string) => (tx: Transaction) => _mysten_sui_transactions466.TransactionResult; } //#endregion export { MarginLiquidationsContract }; //# sourceMappingURL=marginLiquidations.d.mts.map