/**
 * Provides a utility function to determine whether a graphic's origin is a [BuildingGraphicOrigin](https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-BuildingGraphicOrigin.html).
 *
 * @since 5.0
 */
import type BuildingGraphicOrigin from "./BuildingGraphicOrigin.js";
import type GraphicOrigin from "./GraphicOrigin.js";

/**
 * Utility function that determines whether a graphic’s origin is a [BuildingGraphicOrigin](https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-BuildingGraphicOrigin.html).
 *
 * @param origin - The graphic origin to check.
 * @returns Returns `true` if the graphic origin is of type [BuildingGraphicOrigin](https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-BuildingGraphicOrigin.html), `false` otherwise.
 */
export function isBuildingGraphicOrigin(origin: GraphicOrigin | null | undefined): origin is BuildingGraphicOrigin;