import { type DataStream, type Primitive, type Threshold, type ThresholdValue, type Viewport } from '@iot-app-kit/core'; import { type ComponentQuery } from '../../common/chartTypes'; import { type AlarmContent } from '../../components/alarm-components/alarm-content/types'; import { type AlarmDataStatus } from '../useAlarms'; type UseSingleQueryAlarmOptions = { query: ComponentQuery; viewport?: Viewport; }; export type SingleQueryAlarm = { alarmContent?: AlarmContent; status?: AlarmDataStatus; threshold?: Threshold; datastream?: DataStream; }; /** * Wrapper for useAlarms that sets up the transform function and memoizes the alarm response. * * Built for widgets that support a single query like KPI and Gauge. * * The transform function extracts the alarmContent for connecting with the assistant, the * alarm query status, the alarm threshold, and the input property data stream generated * internally in useAlarms. * * @param query is a singled ComponentQuery, which is useable in useAlarms if it is ann AlarmDataQuery * @param viewport is the query viewport * @returns a SingleQueryAlarm with relevant alarm content */ export declare const useSingleQueryAlarm: ({ query, viewport, }: UseSingleQueryAlarmOptions) => SingleQueryAlarm | undefined; export type BarChartAlarms = ReturnType; export {}; //# sourceMappingURL=useSingleQueryAlarm.d.ts.map