import { LiquidationDetails } from "../../model/liquidations.js"; import "../../model/index.js"; import { OnchainSDK } from "../OnchainSDK.js"; import { WalletFundingError } from "./bundles/checkWallet.js"; import { LiquidationEligibilityError } from "./bundles/checkLiquidationEligibility.js"; import { Address } from "viem"; //#region src/onchain/validation/checkLiquidation.d.ts export interface CheckLiquidationInput { details: LiquidationDetails; liquidator: Address; } export interface CheckLiquidationOptions { /** Block to read at; defaults to latest. Only set for testnet forks. */ blockNumber?: bigint; } /** {@inheritDoc checkLiquidation} */ export type LiquidationValidationError = LiquidationEligibilityError | WalletFundingError; /** * Whether `liquidator` may send the full or partial liquidation `details` * describe */ export declare function checkLiquidation(sdk: OnchainSDK, input: CheckLiquidationInput, options?: CheckLiquidationOptions): Promise; //#endregion