import { PositionSideEnum } from "../../../../../exchangeShared/types"; export declare const _DEFAULT: { buy: string; sell: string; show: boolean; }; declare type numType = string | number; /** * 计算成本和数量 * @param qty * @param sliderValue * @param maxBuyQty * @param maxSellQty * @param baseOn * @param buyPrice * @param sellPrice * @param leverage * @param takerRate * @param isClose */ export declare const getCostAndQuantity: (qty: numType, sliderValue: number, maxBuyQty: numType | undefined, maxSellQty: numType | undefined, baseOn: boolean, buyPrice: numType, sellPrice: numType, leverage: numType, takerRate: numType, isClose: boolean) => { buyCost: number; sellCost: number; buyQuantity: number; sellQuantity: number; }; /** * 获取positionSide类型 * @param isBuy * @param isClose * @returns */ export declare const getPositionSide: (isBuy: boolean, isClose: boolean) => PositionSideEnum.Long | PositionSideEnum.Short; export declare const getPositionSideWithSideText: (isClose: boolean) => { buy: string; sell: string; }; /** * 格式化资产,因为资产会为负数,所以要做max(0, avb)操作 * @param avb 资产 * @param scale 精度 * @returns */ export declare const formatAvbBalance: (avb: unknown, scale: number) => number; export {};