import type { IExecutionResult } from "@gooddata/sdk-backend-spi"; import type { FilterContextItem, IAutomationMetadataObject, IAutomationMetadataObjectDefinition, IInsight, IInsightParameterValue, IWidget, ObjRef } from "@gooddata/sdk-model"; /** * Sub-context for the alerting create/edit dialog. * Shape grows during Phase 2 migration as DefaultAlertingDialog and its hooks are migrated. * * The connector hydrates this from dashboard state and provides the CRUD callbacks. * The dialog reads from this context instead of calling useDashboardSelector directly. */ export interface IAlertingDialogContextValue { mode: "create" | "edit"; widget?: IWidget; insight?: IInsight; widgetTitle?: string; dashboardId?: string; dashboardFilters: FilterContextItem[]; hiddenFilters: FilterContextItem[]; widgetLocalIdToTabIdMap: Record; executionResultByRef: (ref: ObjRef | undefined) => { executionResult?: IExecutionResult; } | undefined; /** Effective widget parameter values for the dialog's widget (replaces direct selectEffectiveParameterValuesForWidget read) */ parameterValues: IInsightParameterValue[]; commonDateFilterId?: string; dashboardEvaluationFrequency?: string; createAlert(alert: IAutomationMetadataObjectDefinition): Promise; saveAlert(alert: IAutomationMetadataObject): Promise; deleteAlert(alert: IAutomationMetadataObject): Promise; } export declare const AlertingDialogContextProvider: import("react").Provider; export declare function useAlertingDialogContext(): IAlertingDialogContextValue; //# sourceMappingURL=AlertingDialogContext.d.ts.map