import type { MidnightBookSource, MidnightBookTop } from './types';
/** Default hosted Midnight API (see @morpho-org/midnight-sdk MidnightApi). */
export declare const DEFAULT_MIDNIGHT_API = "https://api.morpho.org/v0/midnight";
type FetchLike = typeof fetch;
/** Resolve a chain's Midnight API base URL (runtime override → config → hosted default). */
export declare function midnightApiBaseUrl(chainId: string): string;
/**
 * Hosted-API book source. Reads `GET {base}/books/{marketId}` and reduces the
 * `asks`/`bids` price levels to a {@link MidnightBookTop}. This is the swappable
 * seam: a self-indexed mempool source can implement the same interface later.
 */
export declare class ApiBookSource implements MidnightBookSource {
    private readonly baseUrl;
    private readonly fetchImpl;
    constructor(baseUrl: string, fetchImpl?: FetchLike);
    getBookTop(marketId: string): Promise<MidnightBookTop | null>;
}
/** Build the default (hosted-API) book source for a chain. */
export declare function createMidnightBookSource(chainId: string, fetchImpl?: FetchLike): MidnightBookSource;
export {};
//# sourceMappingURL=apiClient.d.ts.map