import { Polygon, MultiPolygon, LineString, MultiLineString, GeoJsonProperties, Feature, BBox } from 'geojson'; /** * Takes a {@link Feature} and a bbox and clips the feature to the bbox using * [lineclip](https://github.com/mapbox/lineclip). * May result in degenerate edges when clipping Polygons. * * @function * @param {Feature} feature feature to clip to the bbox * @param {BBox} bbox extent in [minX, minY, maxX, maxY] order * @returns {Feature} clipped Feature * @example * var bbox = [0, 0, 10, 10]; * var poly = turf.polygon([[[2, 2], [8, 4], [12, 8], [3, 7], [2, 2]]]); * * var clipped = turf.bboxClip(poly, bbox); * * //addToMap * var addToMap = [bbox, poly, clipped] */ declare function bboxClip(feature: Feature | G, bbox: BBox): Feature | Feature | Feature | Feature; export { bboxClip, bboxClip as default };