import { STREAMING_BALANCE_RECORD, STREAMING_CANDLE_RECORD, STREAMING_KEEP_ALIVE_RECORD, STREAMING_NEWS_RECORD, STREAMING_PROFIT_RECORD, STREAMING_TICK_RECORD, STREAMING_TRADE_RECORD, STREAMING_TRADE_STATUS_RECORD } from '../../interface/Definitions'; import { Time } from '../../utils/Time'; import { StreamConnections } from './StreamConnections'; import { XAPI } from "../XAPI"; interface StreamListen { (data: T, time: Time, jsonString: string, streamId: string): void; } export declare class Stream extends StreamConnections { listen: { getBalance: (callBack: StreamListen, key?: string | null) => { stopListen: () => void; }; getCandles: (callBack: StreamListen, key?: string | null) => { stopListen: () => void; }; getKeepAlive: (callBack: StreamListen, key?: string | null) => { stopListen: () => void; }; getNews: (callBack: StreamListen, key?: string | null) => { stopListen: () => void; }; getProfits: (callBack: StreamListen, key?: string | null) => { stopListen: () => void; }; getTickPrices: (callBack: StreamListen, key?: string | null) => { stopListen: () => void; }; getTrades: (callBack: StreamListen, key?: string | null) => { stopListen: () => void; }; getTradeStatus: (callBack: StreamListen, key?: string | null) => { stopListen: () => void; }; }; subscribe: { getBalance: (streamId?: string | undefined) => Promise<{ transaction: import("../Transaction").Transaction<{ json: string; }, { sent?: Time | undefined; }>; data: any; }>; getCandles: (symbol: string, streamId?: string | undefined) => Promise<{ transaction: import("../Transaction").Transaction<{ json: string; }, { sent?: Time | undefined; }>; data: any; }>; getKeepAlive: (streamId?: string | undefined) => Promise<{ transaction: import("../Transaction").Transaction<{ json: string; }, { sent?: Time | undefined; }>; data: any; }>; getNews: (streamId?: string | undefined) => Promise<{ transaction: import("../Transaction").Transaction<{ json: string; }, { sent?: Time | undefined; }>; data: any; }>; getProfits: (streamId?: string | undefined) => Promise<{ transaction: import("../Transaction").Transaction<{ json: string; }, { sent?: Time | undefined; }>; data: any; }>; getTickPrices: (symbol: string, minArrivalTime?: number, maxLevel?: number, streamId?: string | undefined) => Promise<{ transaction: import("../Transaction").Transaction<{ json: string; }, { sent?: Time | undefined; }>; data: any; }>; getTrades: (streamId?: string | undefined) => Promise<{ transaction: import("../Transaction").Transaction<{ json: string; }, { sent?: Time | undefined; }>; data: any; }>; getTradeStatus: (streamId?: string | undefined) => Promise<{ transaction: import("../Transaction").Transaction<{ json: string; }, { sent?: Time | undefined; }>; data: any; }>; }; subscribeOnStream(streamId?: string | undefined): { getBalance: () => Promise<{ transaction: import("../Transaction").Transaction<{ json: string; }, { sent?: Time | undefined; }>; data: any; }>; getCandles: (symbol: string) => Promise<{ transaction: import("../Transaction").Transaction<{ json: string; }, { sent?: Time | undefined; }>; data: any; }>; getKeepAlive: () => Promise<{ transaction: import("../Transaction").Transaction<{ json: string; }, { sent?: Time | undefined; }>; data: any; }>; getNews: () => Promise<{ transaction: import("../Transaction").Transaction<{ json: string; }, { sent?: Time | undefined; }>; data: any; }>; getProfits: () => Promise<{ transaction: import("../Transaction").Transaction<{ json: string; }, { sent?: Time | undefined; }>; data: any; }>; getTickPrices: (symbol: string, minArrivalTime?: number, maxLevel?: number) => Promise<{ transaction: import("../Transaction").Transaction<{ json: string; }, { sent?: Time | undefined; }>; data: any; }>; getTrades: () => Promise<{ transaction: import("../Transaction").Transaction<{ json: string; }, { sent?: Time | undefined; }>; data: any; }>; getTradeStatus: () => Promise<{ transaction: import("../Transaction").Transaction<{ json: string; }, { sent?: Time | undefined; }>; data: any; }>; }; unSubscribe: { getBalance: () => Promise | Promise; data: any; }>[]>; getCandles: (symbol: string) => Promise | Promise; data: any; }>[]>; getKeepAlive: () => Promise | Promise; data: any; }>[]>; getNews: () => Promise | Promise; data: any; }>[]>; getProfits: () => Promise | Promise; data: any; }>[]>; getTickPrices: (symbol: string) => Promise | Promise; data: any; }>[]>; getTrades: () => Promise | Promise; data: any; }>[]>; getTradeStatus: () => Promise | Promise; data: any; }>[]>; }; constructor(accountType: string, host: string, XAPI: XAPI); } export {};