/** * SVG path data parsing and serialization for polygon-based operations. * * Converts between SVG path data strings and arrays of polygon vertex arrays * ({@link Vec2}[][]). Only linear commands (M, L, H, V, Z and their relative * variants) are supported — curves are not handled. * * @module geometry/shape-boolean-svg */ import type { Vec2 } from './shape-boolean-types.js'; /** * Parse an SVG path data string into an array of polygon vertex arrays. * * Only absolute M, L, H, V, and Z commands (and their relative lower-case * variants) are supported. Each sub-path (delimited by M..Z) becomes a * separate polygon. * * @param pathData - SVG path data string. * @returns Array of polygons (each polygon is an array of Vec2). */ export declare function svgPathToPolygons(pathData: string): Vec2[][]; /** * Convert polygon vertex arrays to an SVG path data string. * * Each polygon becomes an M ... L ... Z sub-path. * * @param polygons - Array of polygons (each an array of Vec2). * @returns SVG path data string. */ export declare function polygonsToSvgPath(polygons: Vec2[][]): string; //# sourceMappingURL=shape-boolean-svg.d.ts.map