import { IndexPriceEventCallback } from './model_index_price_event'; import { MarkPriceEventCallback } from './model_mark_price_event'; import { WebSocketService } from '../../../internal/interfaces/websocket'; export interface MarginPublicWS { /** * indexPrice Index Price * Subscribe to this topic to get the index price for margin trading. The following ticker symbols are supported: List of currently supported symbols. * push frequency: once every 1s */ indexPrice(symbol: Array, callback: IndexPriceEventCallback): Promise; /** * markPrice Mark Price * Subscribe to this topic to get the mark price for margin trading. The following ticker symbols are supported: List of currently supported symbols * push frequency: once every 1s */ markPrice(symbol: Array, callback: MarkPriceEventCallback): Promise; /** * Unsubscribe from topics */ unSubscribe(id: string): Promise; /** * Start websocket */ start(): Promise; /** * Stop websocket */ stop(): Promise; } export declare class MarginPublicWSImpl implements MarginPublicWS { private wsService; constructor(wsService: WebSocketService); indexPrice(symbol: Array, callback: IndexPriceEventCallback): Promise; markPrice(symbol: Array, callback: MarkPriceEventCallback): Promise; unSubscribe(id: string): Promise; start(): Promise; stop(): Promise; }