/** * UNS reads: the latest value of a topic, and its values over a window. * * A topic is `uns:://[:]` — the same string io-lens dashboards bind * widgets to (`uns:ws_1://plant/kiln/feed:last`, `…/power:average`). The read is IOSense's * `resolveAndCompute`, the one dashboards make. Sample topics (`uns:design://…`), and every topic * while the app shows sample data, are answered here with steady made-up values, so a screen can be * built and shown before it is bound to a plant. */ export interface SeriesPoint { from: number; to: number; label?: string; value: number | null; } export declare const isSampleTopic: (topic: string) => boolean; export declare function noteTopics(topics: readonly string[]): void; /** The same read asked for within a second by two components (or StrictMode) is one request. */ export declare function sharedRead(key: string, read: () => Promise, now?: number): Promise; /** The latest value of each topic, in one request. */ export declare function fetchLatest(topics: string[], opts: { apiBaseUrl: string; token: string | null; sample: boolean; }): Promise>; /** Each topic's values over a window, bucketed. The topic's suffix is the aggregation. */ export declare function fetchSeries(topics: string[], window: { startTime: number; endTime: number; timeFrame: string; }, opts: { apiBaseUrl: string; token: string | null; sample: boolean; }): Promise>;