import { GenericTokenList } from '../../types';
import { MulticallRetryFunction } from '../../types/providers';
import { EulerEarnVaults } from './types';
/**
 * True when the Goldsky subgraph at `subgraphUrl` lags chain head by more
 * than `MAX_LAG_SECONDS`. Fails *closed*: when staleness can't be determined
 * (RPC/meta unavailable) it returns `true` so we prefer the live Data API
 * rather than silently trusting a possibly-ancient subgraph. The Euler V2
 * Goldsky subgraphs are deprecated and have been observed weeks behind chain
 * head; the probe's own RPC (`getEvmClientUniversal`) uses default endpoints
 * that can't be overridden by the caller, so an unreachable head must not be
 * read as "fresh". If the API is also down, the dispatcher still falls back to
 * whatever the subgraph returned, so this never loses data.
 */
export declare function isEulerEarnSubgraphStale(chainId: string, subgraphUrl: string): Promise<boolean>;
/**
 * Fetches all Euler Earn vaults for a chain from the Euler Data API.
 * Returns `undefined` when the list request fails (so the caller can fall
 * back to the subgraph), or a (possibly empty) map otherwise.
 */
export declare function fetchEulerEarnVaultsFromApi(chainId: string, prices?: {
    [asset: string]: number;
}, tokenList?: GenericTokenList, multicallRetry?: MulticallRetryFunction): Promise<EulerEarnVaults | undefined>;
//# sourceMappingURL=fetchFromApi.d.ts.map