import { type IAutomationMetadataObject } from "@gooddata/sdk-model";
import { type DashboardContext } from "../types/commonTypes.js";
import { type IDashboardEvent } from "./base.js";
/**
 * Payload of the {@link IDashboardAlertCreated} event.
 * @beta
 */
export interface IDashboardAlertCreatedPayload {
    /**
     * The alert created.
     */
    readonly alert: IAutomationMetadataObject;
}
/**
 * This event is emitted after the alert is successfully saved.
 *
 * @beta
 */
export interface IDashboardAlertCreated extends IDashboardEvent {
    readonly type: "GDC.DASH/EVT.ALERT.CREATED";
    readonly payload: IDashboardAlertCreatedPayload;
}
export declare function alertCreated(ctx: DashboardContext, alert: IAutomationMetadataObject, correlationId?: string): IDashboardAlertCreated;
/**
 * Tests whether the provided object is an instance of {@link IDashboardAlertCreated}.
 *
 * @param obj - object to test
 * @beta
 */
export declare const isDashboardAlertCreated: (obj: unknown) => obj is IDashboardAlertCreated;
/**
 * Payload of the {@link IDashboardAlertCreated} event.
 * @beta
 */
export interface IDashboardAlertSavedPayload {
    /**
     * The alert saved.
     */
    readonly alert: IAutomationMetadataObject;
}
/**
 * This event is emitted after the alert is saved.
 *
 * @beta
 */
export interface IDashboardAlertSaved extends IDashboardEvent {
    readonly type: "GDC.DASH/EVT.ALERT.SAVED";
    readonly payload: IDashboardAlertSavedPayload;
}
export declare function alertSaved(ctx: DashboardContext, alert: IAutomationMetadataObject, correlationId?: string): IDashboardAlertSaved;
/**
 * Tests whether the provided object is an instance of {@link IDashboardAlertSaved}.
 *
 * @param obj - object to test
 * @beta
 */
export declare const isDashboardAlertSaved: (obj: unknown) => obj is IDashboardAlertSaved;
//# sourceMappingURL=alerts.d.ts.map