import { LineString, MultiLineString, Polygon, MultiPolygon, Feature, FeatureCollection, Point } from 'geojson'; /** * Takes a {@link LineString|linestring}, {@link MultiLineString|multi-linestring}, * {@link MultiPolygon|multi-polygon} or {@link Polygon|polygon} and * returns {@link Point|points} at all self-intersections. * * @function * @param {Feature} featureIn input feature * @returns {FeatureCollection} self-intersections * @example * var poly = turf.polygon([[ * [-12.034835, 8.901183], * [-12.060413, 8.899826], * [-12.03638, 8.873199], * [-12.059383, 8.871418], * [-12.034835, 8.901183] * ]]); * * var kinks = turf.kinks(poly); * * //addToMap * var addToMap = [poly, kinks] */ declare function kinks(featureIn: Feature | T): FeatureCollection; export { kinks as default, kinks };