import type { TradeEvent } from "@0xmonaco/types"; import type { ReactNode } from "react"; export declare const MAX_TRADES = 50; export interface TradeFeedSubscription { trades: TradeEvent[]; error: Error | null; subscribed: boolean; subscriberCount: number; fetchingInitialState: boolean; } interface TradeFeedContextValue { /** Subscribe to a trading pair - returns unsubscribe function */ subscribe: (tradingPairId: string, fetchInitialTrades: () => Promise, subscribeToWs: (handler: (event: TradeEvent) => void) => () => void) => () => void; /** Get subscription state with reactivity */ subscriptions: Map; } interface TradeFeedProviderProps { children: ReactNode; } export declare const TradeFeedProvider: ({ children }: TradeFeedProviderProps) => import("react/jsx-runtime").JSX.Element; export declare const useTradeFeedContext: () => TradeFeedContextValue; export {};