import type { Polygon, FeatureCollection, GeoJsonProperties } from 'geojson'; import type { Feature as OlFeature } from 'ol'; import type { Coordinate } from 'ol/coordinate'; /** * Removes lines that are reversed in direction * @param newPolyCoords List of coordinates * @returns Cleaned up list of coordinates. */ export declare const removeOverlappingLines: (newPolyCoords: Coordinate[], props?: { angleTolerance: number; }) => Coordinate[]; export declare const polygonCleanDanglingCoords: (polyCoords: Coordinate[], props?: { distanceTolerance: number; angleTolerance: number; }) => Coordinate[]; /** * This cleans dangling line segments from a polygon. The distanceTolerance can be set to remove small segments too. * @param features Feature to clean, currently only Polygons are supported. * @param distanceTolerance The distanceTolerance in the same coordinate system as the feature * @returns cleaned up features */ export declare const polygonCleanDangling: (features: OlFeature[], props?: { distanceTolerance: number; angleTolerance: number; }) => OlFeature[]; /** * This cleans dangling line segments from a polygon. The distanceTolerance can be set to remove small segments too. * @param features Feature to clean, currently only Polygons are supported. * @param distanceTolerance The distanceTolerance in the same coordinate system as the feature * @returns cleaned up features */ export declare const polygonFeatureCollectionCleanDangling: (features: FeatureCollection | null, props?: { distanceTolerance: number; angleTolerance: number; }) => FeatureCollection | null;