UNPKG

@rsc-labs/medusa-store-analytics

Version:
7 lines (6 loc) 471 B
import { DateLasts } from "./types"; import type { DateRange } from "./types"; export declare function amountToDisplay(amount: number, decimalDigits: number): string; export declare function calculatePercentage(current: number, previous: number): number | undefined; export declare function convertDateLastsToDateRange(dateLasts: DateLasts): DateRange | undefined; export declare function convertDateLastsToComparedDateRange(dateLasts: DateLasts): DateRange | undefined;