/** * Morpho GraphQL API client — live vault metrics (APY, TVL, fees) * * Endpoint: https://api.morpho.org/graphql * Uses V1 vaultByAddress query with GraphQL aliases for batch fetching. */ export interface VaultMetrics { /** Gross APY as decimal (0.0357 = 3.57%) */ apy: number; /** Net APY after fees (what users actually earn) */ netApy: number; /** Total value locked in USD */ totalAssetsUsd: number; /** Vault fee as decimal (0.25 = 25%) */ fee: number; } /** * Batch-fetch metrics for all registered vaults in one GraphQL request. * Returns a map keyed by vault slug (e.g. "steakhouse", "moonwell"). * Returns null if the API is unreachable. */ export declare function fetchAllVaultMetrics(chainId?: number): Promise | null>; /** * Fetch metrics for a single vault by address. * Returns null if the API is unreachable or vault not found. */ export declare function fetchVaultMetrics(address: string, chainId?: number): Promise; /** * Format TVL as human-readable string (e.g. "$285.5M", "$14.9M", "$190K") */ export declare function formatTVL(usd: number): string; /** * Format APY as percentage string (e.g. "3.57%") */ export declare function formatAPY(apy: number): string;