UNPKG

@rsc-labs/medusa-store-analytics

Version:
10 lines (9 loc) 607 B
export declare enum ChartResolutionType { DayMonth = 0, Month = 1 } export declare function calculateResolution(fromDate?: Date, toDate?: Date): ChartResolutionType; export declare const compareDatesBasedOnResolutionType: (date1: Date, date2: Date, resolutionType: ChartResolutionType) => boolean; export declare const getChartDateName: (date: Date, resolutionType: ChartResolutionType, startDate: Date, endDate: Date) => string; export declare const getChartTooltipDate: (date: Date, resolutionType: ChartResolutionType) => string; export declare const getLegendName: (current: boolean) => string;