import { MorphoGeneralPublicResponse } from '../../../types/lender/morpho-types';
import { AdditionalYields, GenericTokenList } from '../../../types';
import type { LiquityMarketsRaw } from './types';
/**
 * Synthesized per-branch lender key, e.g. `LIQUITY_V2_1_1` (= mainnet wstETH
 * branch). The CHAIN ID is part of the key (Fluid convention,
 * `FLUID_<chainId>_<vaultId>`) so keys stay GLOBALLY unique for multi-chain
 * deployments (Ebisu spans Ethereum + Plasma) — labels, yield-tracer rows and
 * anything else keyed by lender_key alone would collide otherwise.
 */
export declare function liquityLenderKey(lender: string, chainId: string | number, collIndex: number): string;
/**
 * Recover `{ lender, chainId, collIndex }` from a per-branch key (or
 * undefined for a bare deployment key / non-family key). Fork brands share no
 * prefix, so this matches against the family list.
 */
export declare function liquityKeyParts(key: string): {
    lender: string;
    chainId: string;
    collIndex: number;
} | undefined;
/**
 * Map one deployment's on-chain branch batch into the shared
 * `MorphoGeneralPublicResponse` shape (identical to Midnight/Term/Exactly),
 * keyed by `<LENDER>_<chainId>_<COLL_INDEX>` — one key per collateral branch.
 *
 * Per branch:
 *  - the COLLATERAL entry (branch coll token): totals = branch collateral;
 *    LTV = 1/MCR (a trove is liquidatable below ICR = MCR), liquidation
 *    penalty = the SP-offset penalty; borrowing disabled;
 *  - the LOAN entry (the deployment's stable token): `totalDebt` = branch
 *    debt (incl. accrued interest), `totalDeposits` = the branch Stability
 *    Pool ("earn" side), `depositRate` = SP APR (spYieldSplit × Σ debt·rate /
 *    SP size), `variableBorrowRate` = branch average user-set rate. The
 *    ACTUAL borrow rate is per-trove user-set — bounds + averages live in
 *    `params.market` (`minAnnualInterestRate` / `maxAnnualInterestRate` /
 *    `avgBorrowRate`, WAD strings). BOLD-side deposits do NOT collateralize.
 *  - `borrowLiquidity` = mintable headroom: collateral value / MCR − debt,
 *    additionally capped by the branch debt cap on forks that have one.
 *
 * All fork deviations ride in from metadata via `raw.config` / `raw.branch` —
 * nothing here is deployment-specific.
 */
export declare function convertLiquityMarketsToResponse(raw: LiquityMarketsRaw, chainId: string, prices?: {
    [asset: string]: number;
}, _additionalYields?: AdditionalYields, tokens?: GenericTokenList): {
    [m: string]: MorphoGeneralPublicResponse;
};
//# sourceMappingURL=convertPublic.d.ts.map