/** * 交易对配置控制 */ import { BehaviorSubject } from "rxjs"; import { IFormatCurrentPair, QueryLeverageProps, PostLeverageProps } from "../../../../../exchangeShared/types/interface"; import { TradeTypeEnum } from "../../../../../exchangeShared/types"; export declare class PairsService { static _instance: PairsService; pairs$: BehaviorSubject; hadConfig$: BehaviorSubject; likes$: BehaviorSubject; tradeType$: BehaviorSubject; currentPairs$: BehaviorSubject; static get instance(): PairsService; setLocalPairs(list: IFormatCurrentPair[]): void; init(instruments: any[]): void; getLocalPairs(): void; initLikes(list: string[]): void; addOrRemoveLikes(symbol: string, add: boolean): void; initCurrentPair(originName: string): void; updateDefaultLeverage: (leverage: any) => void; switchRouter(symbol: string, tradeType: TradeTypeEnum): void; getLeverageConfig({ symbol, tradeType, marginType }: QueryLeverageProps): void; postLeverage(props: PostLeverageProps): void; }