import { type IAutomationMetadataObject, type IInsight, type IWidget } from "@gooddata/sdk-model"; import { type AlertAttribute, type AlertMetric } from "../../types.js"; import { type IMeasureFormatMap } from "../utils/getters.js"; import { useAttributeValuesFromExecResults } from "./useAttributeValuesFromExecResults.js"; export interface IUseAlertSupportedMetricsProps { insight?: IInsight; widget?: IWidget; alertToEdit?: IAutomationMetadataObject; } /** * Extracts the supported-metrics derivation cluster from useEditAlert into a focused hook. * * Reads `locale`, `catalogDateDatasets`, `catalogAttributes` from `useAutomationsContext()`, and * `executionResultByRef` from `useAlertingDialogContext()`. * * `execResult` and `effectiveInsight` are internal — not returned. * * @internal */ export declare function useAlertSupportedMetrics({ insight, widget, alertToEdit }: IUseAlertSupportedMetricsProps): { measureFormatMap: IMeasureFormatMap; supportedMeasures: AlertMetric[]; supportedAttributes: AlertAttribute[]; isResultLoading: boolean; getAttributeValues: ReturnType["getAttributeValues"]; getMetricValue: ReturnType["getMetricValue"]; }; //# sourceMappingURL=useAlertSupportedMetrics.d.ts.map