import { type Dispatch, type SetStateAction } from "react"; import { type IAlertRelativeArithmeticOperator, type IAlertRelativeOperator, type IAttribute, type IAutomationMetadataObjectDefinition, type IMeasure } from "@gooddata/sdk-model"; import { type AlertAttribute, type AlertMetric } from "../../types.js"; export interface IUseAlertThresholdProps { setEditedAutomation: Dispatch>; editedAutomation: IAutomationMetadataObjectDefinition | undefined; getMetricValue: (measure?: IMeasure, attr?: IAttribute, value?: string | null) => number | undefined; isNewAlert: boolean; selectedRelativeOperator: [IAlertRelativeOperator, IAlertRelativeArithmeticOperator] | undefined; selectedMeasure: AlertMetric | undefined; selectedAttribute: AlertAttribute | undefined; selectedValue: string | null | undefined; } export declare function useAlertThreshold({ setEditedAutomation, editedAutomation, getMetricValue, isNewAlert, selectedRelativeOperator, selectedMeasure, selectedAttribute, selectedValue }: IUseAlertThresholdProps): { value: number | undefined; onChange: (e: string | number, event?: import("react").ChangeEvent | undefined) => void; onBlur: (event: import("react").FocusEvent) => void; thresholdErrorMessage: string | undefined; }; //# sourceMappingURL=useAlertThreshold.d.ts.map