/// import { BN } from '@coral-xyz/anchor'; import { MarginCategory, SpotBalanceType, SpotMarketAccount } from '../types'; export declare function castNumberToSpotPrecision(value: number | BN, spotMarket: SpotMarketAccount): BN; export declare function calculateSpotMarketMarginRatio(market: SpotMarketAccount, oraclePrice: BN, marginCategory: MarginCategory, size: BN, balanceType: SpotBalanceType, customMarginRatio?: number): number;