import type { DataPoint } from '@iot-app-kit/core'; import type { AssetPropertyValue, TimeInNanos, Variant, AggregatedValue } from '@aws-sdk/client-iotsitewise'; import { type Primitive } from '@iot-app-kit/charts-core'; /** converts the TimeInNanos to milliseconds */ export declare const toTimestamp: (time: TimeInNanos | undefined) => number; /** * Extracts the value out of a SiteWise Model Variant * * SiteWise Model values can either be a string, number or boolean. * * NOTE: Currently we treat booleans as strings. */ export declare const toValue: (variant: Variant | undefined) => Primitive | null; /** * Converts a SiteWise response for data into a data point understood by IoT App Kit. */ export declare const toDataPoint: (assetPropertyValue: AssetPropertyValue | undefined) => DataPoint | undefined; /** * Aggregates To Data Point * * Converts an `AggregatedValue` to the data point view model */ export declare const aggregateToDataPoint: ({ timestamp, value, quality, }: AggregatedValue) => DataPoint; //# sourceMappingURL=toDataPoint.d.ts.map