import { WsChannel } from './type/meta'; export type WsKey = 'private' | 'public' | 'business'; export declare const WS_BASE_URL: { readonly prod: "wss://ws.okx.com:8443/ws/v5/"; readonly aws: "wss://wsaws.okx.com:8443/ws/v5/"; readonly demo: "wss://wspap.okx.com:8443/ws/v5/"; }; export type WsMarket = keyof typeof WS_BASE_URL; export declare const getWsUrl: (market: WsMarket, key: WsKey) => string; /** Used to automatically determine if a sub request should be to the public or private ws (when there's two) */ export declare const PRIVATE_CHANNELS: string[]; /** * The following channels only support the new business wss endpoint: * https://www.okx.com/help-center/changes-to-v5-api-websocket-subscription-parameter-and-url */ export declare const BUSINESS_CHANNELS: string[]; /** * Get ws key for a certain channel * @param channel Get ws key for a certain channel * @returns {WsKey} */ export declare const getWsKeyForTopicChannel: (channel: WsChannel) => WsKey; /** * deep match 2 objects * @param object1 {object} * @param object2 {object} * @returns whether the 2 object is deeply match or not */ export declare function deepObjectMatch(object1: object, object2: object): boolean; /** * find deep matched object in iterator, return the object if found, otherwise return undefined. * @param arr iterator * @param obj object * @returns deep matched object in the iterator */ export declare const deepObjectMatchInArr: (arr: Iterable, obj: object) => object | undefined;