import { ISODateString, ISODateTimeString } from "../metadata/ISODateTimeStrings"; export interface DataPoint { readonly created: ISODateString; } export declare type TimeReducer = (timestamp: ISODateString) => ISODateString; export declare type DataPointsReducer = (timestamp: ISODateString, datapoints: ReadonlyArray) => A; export declare type EntryDatapointFactory = (key: ISODateTimeString) => A; export declare class Statistics { static compute(dataPoints: Iterable, dataPointsReducer: DataPointsReducer, emptyDatapointFactory: EntryDatapointFactory | undefined, timeReducer?: TimeReducer): ReadonlyArray; }