export type TimeSeriesChartPoint = {
    x: string;
    y: number;
};
export type TimeSeriesChartSerie<Category extends string> = {
    id: Category;
    data: readonly TimeSeriesChartPoint[];
};
export type TimeSeriesBucketInput<Category extends string> = {
    day: string;
    category: Category;
    value: number;
};
export declare function toUtcDayKey(isoDateTime: string): string;
export declare function buildUtcDayRange(fromIsoDateTime: string, toIsoDateTime: string): readonly string[];
export declare function aggregateValuesByDayAndCategory<Category extends string>(buckets: readonly TimeSeriesBucketInput<Category>[], allowedCategories: readonly Category[]): ReadonlyMap<string, number>;
export declare function toUtcDailyCategorySeries<Category extends string>(params: {
    fromIsoDateTime: string;
    toIsoDateTime: string;
    buckets: readonly TimeSeriesBucketInput<Category>[];
    categories: readonly Category[];
}): readonly TimeSeriesChartSerie<Category>[];
//# sourceMappingURL=timeSeries.d.ts.map