import { CrossMarginPositionEventCallback } from './model_cross_margin_position_event'; import { IsolatedMarginPositionEventCallback } from './model_isolated_margin_position_event'; import { WebSocketService } from '../../../internal/interfaces/websocket'; export interface MarginPrivateWS { /** * crossMarginPosition Get Cross Margin Position change * The system will push the change event when the position status changes, or push the current debt message periodically when there is a liability. * push frequency: once every 4s */ crossMarginPosition(callback: CrossMarginPositionEventCallback): Promise; /** * isolatedMarginPosition Get Isolated Margin Position change * The system will push the change event when the position status changes, or push the current debt message periodically when there is a liability. * push frequency: real time */ isolatedMarginPosition(symbol: string, callback: IsolatedMarginPositionEventCallback): Promise; /** * Unsubscribe from topics */ unSubscribe(id: string): Promise; /** * Start websocket */ start(): Promise; /** * Stop websocket */ stop(): Promise; } export declare class MarginPrivateWSImpl implements MarginPrivateWS { private wsService; constructor(wsService: WebSocketService); crossMarginPosition(callback: CrossMarginPositionEventCallback): Promise; isolatedMarginPosition(symbol: string, callback: IsolatedMarginPositionEventCallback): Promise; unSubscribe(id: string): Promise; start(): Promise; stop(): Promise; }