import { type IAutomationMetadataObjectDefinition, type INotificationChannelIdentifier, type INotificationChannelMetadataObject } from "@gooddata/sdk-model"; import { type AlertAttribute, type AlertMetric } from "../../types.js"; /** * Props for {@link useAlertSelectedValues}. * @internal */ export interface IUseAlertSelectedValuesProps { editedAutomation: IAutomationMetadataObjectDefinition | undefined; supportedMeasures: AlertMetric[]; supportedAttributes: AlertAttribute[]; notificationChannels: INotificationChannelIdentifier[] | INotificationChannelMetadataObject[]; } /** * Pure selector hook that derives the currently-selected values from the edited automation draft. * * No memoization is intentionally added — values are recomputed on every render to preserve the * referential behaviour of the original inline code in `useEditAlert` (the returned objects flow * into `useCallback` dep arrays and `useThresholdValue` args; memoizing them would be a behaviour * change, not an optimisation). The hook therefore contains no internal React hooks. * * @internal */ export declare function useAlertSelectedValues({ editedAutomation, supportedMeasures, supportedAttributes, notificationChannels }: IUseAlertSelectedValuesProps): { selectedMeasure: AlertMetric | undefined; selectedComparisonOperator: import("@gooddata/sdk-model").IAlertComparisonOperator | undefined; selectedRelativeOperator: [import("@gooddata/sdk-model").IAlertRelativeOperator, import("@gooddata/sdk-model").IAlertRelativeArithmeticOperator] | undefined; selectedAiOperator: "AI.ANOMALY_DETECTION" | undefined; selectedComparator: import("../../types.js").AlertMetricComparator | undefined; selectedSensitivity: import("@gooddata/sdk-model").IAlertAnomalyDetectionSensitivity | undefined; selectedGranularity: import("@gooddata/sdk-model").IAlertAnomalyDetectionGranularity | undefined; selectedAttribute: AlertAttribute | undefined; selectedValue: string | null | undefined; selectedNotificationChannel: INotificationChannelIdentifier | undefined; allowExternalRecipients: boolean; allowOnlyLoggedUserRecipients: boolean; }; //# sourceMappingURL=useAlertSelectedValues.d.ts.map