import { Bps } from "../../model/primitives.js"; import "../../model/index.js"; //#region src/onchain/positions/calcTimeToLiquidationMs.d.ts /** * Estimated milliseconds until `healthFactorBps` decays to `10000` (1.0) * while the debt grows at `totalBorrowRateOnDebt`, in the same `Bps` scale * (`10000` = 100%) as {@link BorrowRateBreakdown.totalOnDebt} reports it — * not the legacy `PERCENTAGE_FACTOR_1KK` (`1_000_000` = 100%) scale the * pre-rewrite frontend fed into its own `getTimeToLiquidation`. * * `null` when the account is already at or under the liquidation threshold, * or when the debt carries no borrow rate at all. **/ export declare function calcTimeToLiquidationMs(healthFactorBps: Bps, totalBorrowRateOnDebt: bigint): bigint | null; //#endregion