/** * Performs the topological operation of breaking the input set of 2D polygons and polylines into segments and rebuilding a new set of polygons from the non-intersecting areas. * * @since 4.31 */ import type Polygon from "../Polygon.js"; import type { GeometryUnion } from "../types.js"; /** * Performs the topological lines to polygons operation. * * @param geometries - The set of input geometries. * All the geometries must have the same spatial reference. * @returns Returns the resulting polygons. * @since 5.2 * @example * // Perform the lines to polygons operation * const polygons = linesToPolygonsExecuteMany([polyline1, polyline2]); */ export function linesToPolygonsExecuteMany(geometries: GeometryUnion[]): Polygon[]; /** * Performs the topological lines to polygons operation. * * @deprecated * since 5.2. Refactor using \@arcgis/codemod or manually replace usages * with [linesToPolygonsExecuteMany()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/linesToPolygonsOperator/#linesToPolygonsExecuteMany). * @param geometries - The set of input geometries. * All the geometries must have the same spatial reference. * @returns Returns the resulting polygons. * @example * // Perform the lines to polygons operation * const polygons = linesToPolygonsExecuteMany([polyline1, polyline2]); */ export function executeMany(geometries: GeometryUnion[]): Polygon[]; /** * Indicates if the operator supports input geometries that contain curves. * The value will always be `true`. * * @since 5.2 */ export const linesToPolygonsSupportsCurves: 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 [linesToPolygonsSupportsCurves](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/linesToPolygonsOperator/#linesToPolygonsSupportsCurves). */ export const supportsCurves: ReturnType;