/** * Internal format for readings. */ export type Reading = [ timestamp: number, value: number ]; /** * Internal format for readings. */ export interface ReadingOptions { since?: Date; } /** * Data transfer object for readings provided by the API. */ export interface ReadingDTO { '@id': string; dateTime: string; measure: string; value?: unknown; } export declare const filterSince: (data: Reading[], since: number) => Reading[]; /** * Get the readings for a measure. * * @todo Caching and throttling. * * @param id The EA measure id. * @returns A promise for an array of readings for the measure. */ export declare const getMeasureReadings: (id: string, options?: ReadingOptions) => Promise; export declare const mergeReadings: (first: Reading[], second: Reading[]) => void; export declare const parseReadings: (items: ReadingDTO[]) => Record;