import { GenericTokenList } from '../../types';
import { EulerEarnVaults } from './types';
/** True when the chain has an Euler Earn Goldsky subgraph configured. */
export declare const hasEulerEarnVaultSubgraph: (chainId: string) => boolean;
/**
 * Fetches Euler Earn vaults from the Goldsky subgraph for chains
 * configured in `EULER_EARN_SUBGRAPH_URLS`.
 *
 * Two-phase fetch:
 *   1. `eulerEarnVaults` + flat strategies (drops the nested `eulerVault`
 *      relation, which throws null-violation errors when un-indexed).
 *   2. `eulerVaults` filtered to the assets discovered in step 1, used
 *      both for `decimals` (Earn subgraph doesn't expose it) and live
 *      `state.supplyApy` (used to compute the weighted Earn-vault APY).
 *
 * Phase 2 failures degrade gracefully — Earn-vault rows are still
 * returned with `supplyRate = 0` and `decimals` from the token list.
 */
export declare function fetchEulerEarnVaultsFromSubgraph(chainId: string, prices?: {
    [asset: string]: number;
}, tokenList?: GenericTokenList): Promise<EulerEarnVaults>;
//# sourceMappingURL=fetchFromSubgraph.d.ts.map