import { AccountSnapshot } from "./types.js"; import { CalcLiquidationPriceProps } from "./calcLiquidationPriceForTarget.js"; import { Address } from "viem"; //#region src/onchain/positions/calcLiquidationPrice.d.ts /** * Liquidation price of an account state's target collateral, in the oracle's * 8-decimal (`PRICE_DECIMALS`) fixed point. * * As the frontend does, a liquidation price only exists when the account * holds exactly one non-dust non-underlying asset; otherwise `null`. **/ export declare function calcLiquidationPrice(props: CalcLiquidationPriceProps): bigint | null; /** * The one collateral a liquidation price — and the current price beside it — * can be quoted for: the account's single non-dust, non-underlying asset. * `null` when it holds none or several, which is the case neither figure * exists for. **/ export declare function soleNonUnderlyingCollateral(snapshot: AccountSnapshot, underlying: Address): Address | null; //#endregion