/** * Display metadata for a `TimeRange` — keeps chart labels, sparkline bucket * counts, and x-axis date formatting in sync with the server-side bucketing * defined in `aggregator.ts`. */ import type { TimeRange } from "../types"; export interface RangeMeta { /** Human label used in chart subtitles ("the last 24 hours"). */ windowLabel: string; /** Short prefix used in compact column headers ("24h Trend"). */ trendLabel: string; /** Bucket size matching the server query for this range. */ bucketMs: number; /** Number of buckets the server is expected to return for this range. */ bucketCount: number; /** date-fns format string for x-axis labels and tooltip headings. */ tickFormat: string; } export declare function rangeMeta(range: TimeRange): RangeMeta; /** Format a bucket timestamp using the active range's tick format. */ export declare function formatRangeTick(timestamp: number, range: TimeRange): string;