// (C) 2019-2025 GoodData Corporation
/**
 * @public
 */
export function isAttributeHeader(header) {
    return header && header.attributeHeader !== undefined;
}
/**
 * @public
 */
export const isAfmObjectIdentifier = (value) => {
    return !!(value?.identifier?.id &&
        value?.identifier?.type);
};
/**
 * @public
 */
export const isAfmObjectLocalIdentifier = (value) => {
    return !!value?.localIdentifier;
};
/**
 * @public
 */
export function isResultAttributeHeader(header) {
    return header.attributeHeader !== undefined;
}
/**
 * @public
 */
export function isResultMeasureHeader(header) {
    return header.measureHeader !== undefined;
}
/**
 * @public
 */
export function isResultTotalHeader(header) {
    return header.totalHeader !== undefined;
}
/**
 * @public
 */
export function isVisualizationObjectsItem(visualizationObject) {
    return visualizationObject.type === "visualizationObject";
}
/**
 * @public
 */
export function isFilterContextData(filterContext) {
    return filterContext.type === "filterContext";
}
/**
 * @public
 */
export function isDashboardPluginsItem(dashboardPlugin) {
    return dashboardPlugin.type === "dashboardPlugin";
}
/**
 * @public
 */
export function isDataSetItem(dataSet) {
    return dataSet.type === "dataset";
}
/**
 * @public
 */
export function isLabelItem(label) {
    return label.type === "label";
}
/**
 * @public
 */
export function isAttributeItem(attribute) {
    return attribute.type === "attribute";
}
/**
 * @public
 */
export function isFactItem(fact) {
    return fact.type === "fact";
}
/**
 * @public
 */
export function isMetricItem(metric) {
    return metric.type === "metric";
}
//# sourceMappingURL=typeGuards.js.map