import type { OrderBook } from '../../types'; import { BaseWebSocket } from '../base.ws'; import type { OKXExchange } from './okx.exchange'; type Data = Record; type MessageHandlers = { [channel: string]: (json: Data) => void; }; type SubscribedTopics = { [id: string]: Array<{ channel: string; instId: string; }>; }; export declare class OKXPublicWebsocket extends BaseWebSocket { topics: SubscribedTopics; messageHandlers: MessageHandlers; connectAndSubscribe: () => void; onOpen: () => void; ping: () => void; subscribe: () => void; onMessage: ({ data }: MessageEvent) => void; handlePongEvent: () => void; handleTickerEvents: ({ data: [update] }: Data) => void; handleMarkPriceEvents: ({ data: [update] }: Data) => void; handleIndexTickerEvents: ({ data: [update] }: Data) => void; handleOpenInterestEvents: ({ data: [update] }: Data) => void; handleFundingRateEvents: ({ data: [update] }: Data) => void; listenOrderBook: (symbol: string, callback: (orderBook: OrderBook) => void) => () => void; } export {};