import { type DescribeAlarmModelResponse } from '@aws-sdk/client-iot-events'; import type { AlarmProperty } from '../types'; import { type AssetPropertyValue } from '@aws-sdk/client-iotsitewise'; /** * Extracts an IoT Events alarm model name from an IoT SiteWise alarm source property. * An alarm source property stores an associated IoT Events alarm model ARN as a property value. * This is only supported for "IOT_EVENTS" alarm types. * * @param alarmSourceProperty is an AlarmProperty as defined on an AlarmData object * @returns the IoT Events alarm model name if available */ export declare const getAlarmModelNameFromAlarmSourceProperty: (alarmSourceProperty?: AlarmProperty) => string | undefined; /** * Extracts the propertyId from an alarm model expression. * Expect to find the property as the 3rd string after $sitewise prefix. * * @param propertyExpression - an expression with the propertyId e.g. * $sitewise.assetModel.`f6dca270-d4b9-4de0-9722-d57d3f260cb8`.`00b36ed5-7640-4635-b9d3-60c2db229568`.propertyValue.value * here the propertyId is 00b36ed5-7640-4635-b9d3-60c2db229568 * @returns the propertyId or undefined if we are not provided with a model propertyId that is backed by SiteWise */ export declare const extractAssetPropertyId: (propertyExpression?: string) => string | undefined; /** * Extracts a threshold value that is defined on an IoT Events alarm model. * The value is converted to a SiteWise asset property value for consistency * with processing threshold values modeled by a SiteWise asset property. * * @param alarmModel is the IoT Events alarm model * @returns an AssetPropertyValue with the static value if defined */ export declare const getStaticThresholdAsAssetPropertyValue: (alarmModel?: DescribeAlarmModelResponse) => AssetPropertyValue | undefined; //# sourceMappingURL=parseAlarmModels.d.ts.map