import { BookChange, BookTicker, Trade } from '../types.ts'; import { Mapper } from './mapper.ts'; export declare const mexcMappers: { mexc: { trades: import("./registry.ts").MapperCreator<"backpack" | "aster" | "aster-futures" | "bithumb" | "bitvavo" | "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-european-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "okex-spreads" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "coinbase-derivatives" | "coinbase-international" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "bybit-options" | "bybit-spread" | "phemex" | "delta" | "delta-india" | "ftx-us" | "binance-us" | "gate-io-futures" | "mexc-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "dydx-v4" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "kucoin" | "kucoin-futures" | "bitnomial" | "woo-x" | "blockchain-com" | "bitget" | "bitget-futures" | "hyperliquid" | "lighter" | "lighter-rh" | "bullish" | "mexc" | "polymarket" | "whitebit", Trade>; bookChanges: import("./registry.ts").MapperCreator<"backpack" | "aster" | "aster-futures" | "bithumb" | "bitvavo" | "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-european-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "okex-spreads" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "coinbase-derivatives" | "coinbase-international" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "bybit-options" | "bybit-spread" | "phemex" | "delta" | "delta-india" | "ftx-us" | "binance-us" | "gate-io-futures" | "mexc-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "dydx-v4" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "kucoin" | "kucoin-futures" | "bitnomial" | "woo-x" | "blockchain-com" | "bitget" | "bitget-futures" | "hyperliquid" | "lighter" | "lighter-rh" | "bullish" | "mexc" | "polymarket" | "whitebit", BookChange>; bookTickers: import("./registry.ts").MapperCreator<"backpack" | "aster" | "aster-futures" | "bithumb" | "bitvavo" | "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-european-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "okex-spreads" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "coinbase-derivatives" | "coinbase-international" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "bybit-options" | "bybit-spread" | "phemex" | "delta" | "delta-india" | "ftx-us" | "binance-us" | "gate-io-futures" | "mexc-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "dydx-v4" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "kucoin" | "kucoin-futures" | "bitnomial" | "woo-x" | "blockchain-com" | "bitget" | "bitget-futures" | "hyperliquid" | "lighter" | "lighter-rh" | "bullish" | "mexc" | "polymarket" | "whitebit", BookTicker>; }; }; export declare class MexcTradesMapper implements Mapper<'mexc', Trade> { private readonly channel; canHandle(message: MexcTradeMessage | MexcControlMessage): boolean; getFilters(symbols?: string[]): { readonly channel: "spot@public.aggre.deals.v3.api.pb@10ms"; readonly symbols: string[]; }[]; map(message: MexcTradeMessage, localTimestamp: Date): IterableIterator; } export declare class MexcBookChangeMapper implements Mapper<'mexc', BookChange> { private readonly channel; private readonly snapshotChannel; private readonly symbolDepthInfo; private readonly ignoreBookSnapshotOverlapError; constructor({ ignoreBookSnapshotOverlapError }: { ignoreBookSnapshotOverlapError: boolean; }); canHandle(message: MexcDepthSnapshotMessage | MexcDepthUpdateMessage): boolean; getFilters(symbols?: string[]): ({ readonly channel: "spot@public.aggre.depth.v3.api.pb@10ms"; readonly symbols: string[]; } | { readonly channel: "spot@public.aggre.depth.snapshot.v3.api.pb@10ms"; readonly symbols: string[]; })[]; map(message: MexcDepthSnapshotMessage | MexcDepthUpdateMessage, localTimestamp: Date): IterableIterator; private applyLevel; private mapBookLevel; private mapDepthSnapshotLevel; private getDepthInfoFor; } export declare class MexcBookTickerMapper implements Mapper<'mexc', BookTicker> { private readonly channel; canHandle(message: MexcBookTickerMessage | MexcControlMessage): boolean; getFilters(symbols?: string[]): { readonly channel: "spot@public.aggre.bookTicker.v3.api.pb@10ms"; readonly symbols: string[]; }[]; map(message: MexcBookTickerMessage, localTimestamp: Date): IterableIterator; } type MexcControlMessage = { channel?: undefined; id?: number; code?: number; msg?: string; }; type MexcMappedChannel = 'spot@public.aggre.deals.v3.api.pb@10ms' | 'spot@public.aggre.depth.v3.api.pb@10ms' | 'spot@public.aggre.depth.snapshot.v3.api.pb@10ms' | 'spot@public.aggre.bookTicker.v3.api.pb@10ms'; type MexcChannelWithSymbol = `${TChannel}@${string}`; type MexcProtobufMessage = { channel: MexcChannelWithSymbol; symbol: string; symbolId?: string; createTime?: string | number; sendTime: string | number; }; type MexcTradeMessage = MexcProtobufMessage<'spot@public.aggre.deals.v3.api.pb@10ms'> & { publicAggreDeals: { eventType: 'spot@public.aggre.deals.v3.api.pb@10ms'; deals: MexcTrade[]; }; }; type MexcTrade = { price: string; quantity: string; tradeType: MexcTradeType; time: string | number; tradeId?: string; }; declare enum MexcTradeType { Buy = 1, Sell = 2 } export type MexcDepthSnapshotMessage = { channel: MexcChannelWithSymbol<'spot@public.aggre.depth.snapshot.v3.api.pb@10ms'>; symbol: string; generated: true; publicAggreDepthsSnapshot: MexcAggreDepthsSnapshot; }; type MexcAggreDepthsSnapshot = { asks: MexcDepthSnapshotLevel[]; bids: MexcDepthSnapshotLevel[]; lastUpdateId: number; timestamp: number; }; type MexcDepthSnapshotLevel = [string, string]; type MexcDepthUpdateMessage = MexcProtobufMessage<'spot@public.aggre.depth.v3.api.pb@10ms'> & { generated?: undefined; publicAggreDepths: MexcAggreDepths; }; type MexcAggreDepths = { eventType: 'spot@public.aggre.depth.v3.api.pb@10ms'; asks?: MexcPriceLevel[]; bids?: MexcPriceLevel[]; fromVersion: string; toVersion: string; lastOrderCreateTime?: string | number; }; type MexcPriceLevel = { price: string; quantity: string; }; type MexcBookTickerMessage = MexcProtobufMessage<'spot@public.aggre.bookTicker.v3.api.pb@10ms'> & { publicAggreBookTicker: { bidPrice?: string; bidQuantity?: string; askPrice?: string; askQuantity?: string; version?: string; lastOrderCreateTime?: string | number; }; }; export {}; //# sourceMappingURL=mexc.d.ts.map