import { type IoTSiteWiseClient } from '@aws-sdk/client-iotsitewise'; import { type Viewport } from '@iot-app-kit/core'; import { type AlarmData } from '../types'; import { type OnUpdateAlarmThresholdDataAction } from '../state'; export interface UseAlarmThresholdOptions { iotSiteWiseClient?: IoTSiteWiseClient; requests: Pick[]; viewport?: Viewport; fetchThresholds?: boolean; fetchOnlyLatest?: boolean; refreshRate?: number; onUpdateAlarmThresholdData: OnUpdateAlarmThresholdDataAction; } /** * useAlarmThreshold is a hook used to fetch the values * for a SiteWise alarm's threshold. * * A threshold is defined on an IoT Events alarm model. * The value can be statically defined on the alarm model, * or it is modeled in IoT SiteWise as an asset property. * * @param alarms is a list of AlarmData * @param iotSiteWiseClient is an AWS SDK IoT SiteWise client * @param viewport is a time range to fetch data * @param enabled will manually disable the hook * @param fetchOnlyLatest is a flag to only fetch the latest data * @param refreshRate is the time to refresh threshold data in milliseconds * before the end of the viewport * @returns a list of AlarmData with the threshold values injected * into the associated threshold field */ export declare const useAlarmThreshold: ({ requests: thresholdRequests, iotSiteWiseClient, viewport, fetchThresholds: enabled, fetchOnlyLatest, refreshRate, onUpdateAlarmThresholdData, }: UseAlarmThresholdOptions) => void; //# sourceMappingURL=useAlarmThreshold.d.ts.map