import type { ZabbixHistoryPoint } from './client';
export type AggFunc = 'avg' | 'sum' | 'min' | 'max' | 'count' | 'median';
export declare function groupByItemId(points: ZabbixHistoryPoint[], itemIds: string[]): Map<string, ZabbixHistoryPoint[]>;
export declare function aggregate(vals: number[], fn: AggFunc): number;
export declare function downsample(points: ZabbixHistoryPoint[], intervalMs: number, fn?: AggFunc): ZabbixHistoryPoint[];
