/** * Perform a topological union (dissolve) operation on 2D geometries. * * ![Union operator](https://developers.arcgis.com/javascript/latest/assets/references/core/operators/union.avif "Union operator") * * @since 4.31 */ import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js"; /** * Perform a topological union operation on two geometries. * * @param geometry1 - The first geometry to union with. * @param geometry2 - The second geometry to union with. * @returns Returns the union of the two geometries as a geometry or null. * @since 5.2 * @example * // Return the union of two polygons * const union = unionExecute(polygon1, polygon2); */ export function unionExecute(geometry1: GeometryUnion, geometry2: GeometryUnion): GeometryWithoutMeshUnion | null | undefined; /** * Perform a topological union operation on two geometries. * * @deprecated * since 5.2. Refactor using \@arcgis/codemod or manually replace usages * with [unionExecute()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/unionOperator/#unionExecute). * @param geometry1 - The first geometry to union with. * @param geometry2 - The second geometry to union with. * @returns Returns the union of the two geometries as a geometry or null. * @example * // Return the union of two polygons * const union = unionExecute(polygon1, polygon2); */ export function execute(geometry1: GeometryUnion, geometry2: GeometryUnion): GeometryWithoutMeshUnion | null | undefined; /** * Perform a topological union operation on a geometry set. * * @param geometries - The array of geometries to union. * All the geometries must have the same spatial reference. * @returns Returns the union of `geometries` as a geometry or null. * @since 5.2 */ export function unionExecuteMany(geometries: GeometryUnion[]): GeometryWithoutMeshUnion | null | undefined; /** * Perform a topological union operation on a geometry set. * * @deprecated * since 5.2. Refactor using \@arcgis/codemod or manually replace usages * with [unionExecuteMany()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/unionOperator/#unionExecuteMany). * @param geometries - The array of geometries to union. * All the geometries must have the same spatial reference. * @returns Returns the union of `geometries` as a geometry or null. */ export function executeMany(geometries: GeometryUnion[]): GeometryWithoutMeshUnion | null | undefined; /** * Indicates if the operator supports input geometries that contain curves. * The value will always be `true`. * * @since 5.2 */ export const unionSupportsCurves: boolean; /** * Indicates if the operator supports input geometries that contain curves. * The value will always be `true`. * * @deprecated * since 5.2. Refactor using \@arcgis/codemod or manually replace usages * with [unionSupportsCurves](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/unionOperator/#unionSupportsCurves). */ export const supportsCurves: ReturnType;