import { Units, BBox, Feature, Polygon, FeatureCollection, Properties } from "@turf/helpers"; /** * Takes a bounding box and a cell depth and returns a set of triangular {@link Polygon|polygons} in a grid. * * @name triangleGrid * @param {Array} bbox extent in [minX, minY, maxX, maxY] order * @param {number} cellSide dimension of each cell * @param {Object} [options={}] Optional parameters * @param {string} [options.units='kilometers'] used in calculating cellSide, can be degrees, radians, miles, or kilometers * @param {Feature} [options.mask] if passed a Polygon or MultiPolygon, the grid Points will be created only inside it * @param {Object} [options.properties={}] passed to each point of the grid * @returns {FeatureCollection} grid of polygons * @example * var bbox = [-95, 30 ,-85, 40]; * var cellSide = 50; * var options = {units: 'miles'}; * * var triangleGrid = turf.triangleGrid(bbox, cellSide, options); * * //addToMap * var addToMap = [triangleGrid]; */ declare function triangleGrid

(bbox: BBox, cellSide: number, options?: { units?: Units; properties?: P; mask?: Feature | Polygon; }): FeatureCollection; export default triangleGrid;