UNPKG

@pangolindex/sdk

Version:

🛠 An SDK for building applications on top of Pangolin.

9 lines (8 loc) • 696 B
import { CurrencyAmount, NumberType, Price } from '../../index'; import { Nullish } from '../types'; export declare function formatNumber(input: Nullish<number>, type?: NumberType, placeholder?: string): string; export declare function formatCurrencyAmount(amount: Nullish<CurrencyAmount>, type?: NumberType, placeholder?: string): string; export declare function formatPrice(price: Nullish<Price>, type?: NumberType): string; export declare function formatDate(date: Date): string; export declare function formatNumberOrString(price: Nullish<number | string>, type: NumberType): string; export declare function formatUSDPrice(price: Nullish<number | string>, type?: NumberType): string;