import type { MValue, Properties, VectorGeometry, VectorLineString } from '../../index.js'; /** * Builds squared distances for the vector geometry using the Douglas-Peucker algorithm. * * NOTE: If you are not using a zoom mechanic, use a maxzoom of 0 * @param geometry - input vector geometry * @param tolerance - simplification tolerance * @param maxzoom - max zoom level to simplify */ export declare function buildSqDists(geometry: VectorGeometry, tolerance: number, maxzoom?: number): void; /** * calculate simplification of line vector data using * optimized Douglas-Peucker algorithm * @param coords - input coordinates * @param first - first point index * @param last - last points index * @param sqTolerance - simplification tolerance (higher means simpler) */ export declare function buildSqDist(coords: VectorLineString, first: number, last: number, sqTolerance: number): void; /** * Simplifies the vector geometry based on zoom level and tolerance. * If the geometry is simplified past it being valid, set the coordinates to an empty array. * * A zoom of 0 (as long as maxzoom is not 0) is the default tolerance. Use this if you are not * applying a zoom mechanic to the data. * * NOTE: Be sure to run `buildSqDists` on the geometry before calling this function * @param geometry - input vector geometry * @param tolerance - simplification tolerance * @param zoom - curent zoom * @param maxzoom - max zoom level */ export declare function simplify(geometry: VectorGeometry, tolerance: number, zoom: number, maxzoom?: number): void; /** * @param line - input vector line * @param tolerance - simplification tolerance * @param isPolygon - whether the line is a polygon * @param isOuter - whether the line is an outer ring or inner ring (for polygons) * @returns - simplified line */ export declare function simplifyLine(line: VectorLineString, tolerance: number, isPolygon: boolean, isOuter: boolean): VectorLineString; /** * In place adjust the ring if necessary * @param ring - the ring to rewind * @param clockwise - whether the ring needs to be clockwise */ export declare function rewind(ring: VectorLineString, clockwise: boolean): void; //# sourceMappingURL=simplify.d.ts.map