import { LenderConfigMap } from '../../../../types/lenderTypes';
export declare const safeDivide: (a: number, b: number) => number;
export declare function capitalizeFirstLetter(data: string): string;
/**
 * Formats e.g. 0.04 to 4%
 * @param n ratio
 * @param decs decimals to show
 * @returns percent as string
 */
export declare const formatRatioToPercent: (n: number, decs: number) => string;
/**
 * Formats e.g. 0.04 to 4%, adds a + if positive
 * @param n ratio
 * @param decs decimals to show
 * @returns percent as string
 */
export declare const formatSignedRatioToPercent: (n: number, decs: number) => string;
export declare const formatSignedRatioToPercentSign: (n: number, decs: number, skipSign?: boolean) => string;
/**
 * Formats e.g. 4 to 4%
 * @param n percent number
 * @param decs decimals to show
 * @returns percent as string
 */
export declare const formatNumberToPercent: (n: number | undefined, decs?: number) => string;
export declare const formatPercentagePoints: (n: number, decs: number) => string;
export declare const formatNumber: (n: number, decs: number) => string;
/**
 * Round using lodash
 * @param n number to round
 * @param decs decimals
 * @returns number
 */
export declare const roundNumber: (n: number, decs: number) => number;
/**
 * Converts a colateral factor e.g. 0.8 to 1/(1-0.8) = 5
 * @param n amount
 * @param decs decimals to show
 * @returns leverage as string
 */
export declare const convertCollateralFactorToLeverage: (n: number, decs: number) => number;
export declare const parseToTimes: (n: number) => string;
export declare const parseToTimesPrefix: (n: number) => string;
export declare const parseLeverage: (cf: number, decs?: number) => string;
export declare const parseLeverageRange: (config: LenderConfigMap) => string;
/**
 * Get apr from intinsic interest and reward
 * @param apr apr number
 * @param reward reward [per year] number
 * @returns number, validated for NaN
 */
export declare const getApr: (apr: number, reward: number, staking: number) => string;
export declare const aprToApy: (apr: number) => number;
export declare const apyToApr: (apy: number) => number;
//# sourceMappingURL=generalFormatters.d.ts.map