/** * The indexer's own sync state for one chain (envio `chain_metadata`). Compare * `latestProcessedBlock` to `blockHeight` to gauge indexer lag. * * @category indexing */ export type IndexerSyncStatus = { /** Chain id the row describes. */ chainId: number; /** Last block the indexer fully processed; null before the first block lands. */ latestProcessedBlock: number | null; /** Chain head height as the indexer last saw it; null until first fetched. */ blockHeight: number | null; /** * Lifetime count of events the indexer has processed on this chain. `null` on * the rare row where envio has not populated the counter yet — Hasura declares * the column nullable, so this is the wire's shape, not a defensive guess. */ numEventsProcessed: number | null; }; /** * Indexer sync state from chain_metadata (the indexer's own view of head). * Null if the indexer has no row for this chain; throws on request failure. */ export declare function getSyncStatus(chainId: number, indexerUrl: string): Promise;