// (C) 2024-2026 GoodData Corporation
import { eventGuard } from "./util.js";
/**
 * @internal
 */
export function visualizationSwitcherWidgetVisualizationAdded(ctx, ref, visualization, correlationId) {
    return {
        type: "GDC.DASH/EVT.VISUALIZATION_SWITCHER_WIDGET.VISUALIZATION_ADDED",
        ctx,
        correlationId,
        payload: {
            ref,
            visualization,
        },
    };
}
/**
 * Tests whether the provided object is an instance of {@link IDashboardVisualizationSwitcherWidgetVisualizationAdded}.
 *
 * @param obj - object to test
 * @beta
 */
export const isDashboardVisualizationSwitcherWidgetVisualizationAdded = eventGuard("GDC.DASH/EVT.VISUALIZATION_SWITCHER_WIDGET.VISUALIZATION_ADDED");
/**
 * @internal
 */
export function visualizationSwitcherWidgetVisualizationsUpdated(ctx, ref, visualizations, correlationId) {
    return {
        type: "GDC.DASH/EVT.VISUALIZATION_SWITCHER_WIDGET.VISUALIZATIONS_UPDATED",
        ctx,
        correlationId,
        payload: {
            ref,
            visualizations,
        },
    };
}
/**
 * Tests whether the provided object is an instance of {@link IDashboardVisualizationSwitcherWidgetVisualizationsUpdated}.
 *
 * @param obj - object to test
 * @beta
 */
export const isDashboardVisualizationSwitcherWidgetVisualizationsUpdated = eventGuard("GDC.DASH/EVT.VISUALIZATION_SWITCHER_WIDGET.VISUALIZATIONS_UPDATED");
//# sourceMappingURL=visualizationSwitcher.js.map