import { MerklOpportunity, MorphoBlueMarketData, MorphoBlueMarketInfo, NetworkNumber } from '../types'; /** * Merkl tags Morpho Blue market-level reward campaigns via the opportunity `type` field: * - MORPHOSUPPLY → reward for supplying the market's loan asset * - MORPHOCOLLATERAL → reward for depositing the market's collateral asset * - MORPHOBORROW → reward for borrowing the market's loan asset * (MORPHOVAULT/ERC20LOGPROCESSOR are MetaMorpho vault campaigns and MORPHOSUPPLY_SINGLETOKEN is * token-wide rather than market-scoped, so none of them belong on per-market data.) * * A campaign identifies its market via `identifier` — the first 20 bytes of the 32-byte Morpho * market id, formatted as a checksummed address. Whitelist-gated campaigns append a marker to that * identifier (e.g. `0x54cf…c46WHITELIST_CAMPAIGN`); their rewards only accrue to whitelisted * addresses, so they are skipped rather than advertised to every user. */ export declare enum MorphoBlueMerklOpportunityType { Supply = "MORPHOSUPPLY", Collateral = "MORPHOCOLLATERAL", Borrow = "MORPHOBORROW" } /** * Appends the given live Merkl campaigns for the market to its `assetsData` incentive arrays * (collateral supply / loan supply / loan borrow). Existing Merkl incentives are replaced rather * than duplicated, so re-applying on refreshed data is safe. */ export declare const addMorphoBlueMerklOpportunitiesToMarketInfo: (marketInfo: MorphoBlueMarketInfo, selectedMarket: MorphoBlueMarketData, chainId: NetworkNumber, opportunities: MerklOpportunity[]) => MorphoBlueMarketInfo; /** * Fetches live market-scoped Morpho Blue campaigns for all chains. Never throws — on any failure * it returns an empty list, so Merkl being down can't break market data. */ export declare const getMorphoBlueMerklOpportunities: () => Promise; /** * Fetches live Merkl campaigns and appends the ones for the market to its `assetsData` incentive * arrays. Never throws — on any failure the market info is returned unchanged. */ export declare const addMorphoBlueMerklRewardsToMarketInfo: (marketInfo: MorphoBlueMarketInfo, selectedMarket: MorphoBlueMarketData, network: NetworkNumber) => Promise;