import { ILiftStatusRow, ILiftStatusSensorResponse } from '../../utils/types'; export type SensorRowMap = Map; /** * Groups a summary response by sensor ID. The response order is not part of the * contract, so rows are keyed by `sensor.id` and sorted by `pos`, to let the * per-stop columns of different sensors line up on index. */ export declare const buildSensorRowMap: (response: ILiftStatusSensorResponse[] | undefined) => SensorRowMap; /** The counter increase over the window. Counters are absolute, never a total. */ export declare const delta: (row?: ILiftStatusRow) => number | null; export declare const deltaAt: (rowMap: SensorRowMap, sensorId: number, index: number) => number | null; /** Installation wide counters report a single row. */ export declare const totalOf: (rowMap: SensorRowMap, sensorId: number) => number | null; /** * The number of stop rows to render. The highest count is used so a stop is not * dropped when one sensor returns fewer rows; its cells become an em dash. */ export declare const getStopRowCount: (rowMap: SensorRowMap, sensorIds: readonly number[]) => number; export declare const getRatio: (cycles: number | null, stops: number | null) => number | null;