/** Compact projected vector paths. Curves are flattened below a display pixel, * then simplified after projection; strokes become filled outlines before warping. */ export type Point = { x: number; y: number; }; export type PathCommand = { op: string; points: number[]; }; export type Contour = { points: Point[]; closed: boolean; }; export type ProjectPoint = (point: Point) => Point; export declare function simplify(points: Point[], tolerance?: number): Point[]; export declare function flatten(commands: PathCommand[], tolerance?: number): Contour[]; /** Round joins/caps, matching all line artwork in the character renderer. */ export declare function strokeOutline(contour: Contour, width: number): Contour[]; export declare function pathData(contours: Contour[], project?: ProjectPoint, tolerance?: number): string; /** Union a triangle/polygon tessellation by cancelling shared edges, keeping only * the boundary loops. The output has no interior mesh edges or per-triangle layers. */ export declare function boundaryContours(polygons: Point[][]): Contour[]; //# sourceMappingURL=svg-path.d.ts.map