import type { MidnightBookSource, MidnightMarketRaw } from './types';
/**
 * Fetch the current top-of-book + a bounded book chunk for every configured
 * Midnight market on a chain.
 *
 * Public data = static market config (from `midnightMarkets` registry) + live
 * order-book rates/depth (from the book source). No RPC is required for the
 * public view: LLTVs / maturities / decimals come from config, rates from the
 * API. The aggregate best rate + FULL depth live on `top`; `book` carries the
 * best `MIDNIGHT_BOOK_LEVELS` levels per side for downstream filtering. Both are
 * null only when the book fetch failed AND no recent snapshot is cached (the
 * converter still emits the market with zeroed rates in that case).
 */
export declare function fetchMidnightMarkets(chainId: string, source?: MidnightBookSource): Promise<MidnightMarketRaw[]>;
//# sourceMappingURL=fetchPublic.d.ts.map