import { Vector2 } from "../math/Vector2.ts"; import { CurvePath } from "./CurvePath.ts"; /** 2D path built from lines, arcs, and bezier segments. */ export declare class Path extends CurvePath { #private; type: string; constructor(points?: Vector2[]); get currentPoint(): Vector2; /** Creates LineCurves connecting the given points and sets currentPoint to the last. */ setFromPoints(points: Vector2[]): this; /** Moves currentPoint without adding a curve. */ moveTo(x: number, y: number): this; /** Adds a LineCurve from currentPoint to (x, y). */ lineTo(x: number, y: number): this; /** Adds a QuadraticBezierCurve from currentPoint through (cpX, cpY) to (x, y). */ quadraticCurveTo(cpX: number, cpY: number, x: number, y: number): this; /** Adds a CubicBezierCurve from currentPoint through two control points to (x, y). */ bezierCurveTo(cp1X: number, cp1Y: number, cp2X: number, cp2Y: number, x: number, y: number): this; /** Adds an EllipseCurve at currentPoint + (x, y) offset. */ arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, clockwise: boolean): this; /** Adds an EllipseCurve at absolute center (x, y). */ absarc(x: number, y: number, radius: number, startAngle: number, endAngle: number, clockwise: boolean): this; /** Adds an EllipseCurve at currentPoint + (x, y) offset. */ ellipse(x: number, y: number, xR: number, yR: number, startAngle: number, endAngle: number, clockwise: boolean, rotation: number): this; /** Adds an EllipseCurve at absolute center (x, y). */ absellipse(x: number, y: number, xR: number, yR: number, startAngle: number, endAngle: number, clockwise: boolean, rotation: number): this; clone(): Path; copy(source: Path): this; } //# sourceMappingURL=Path.d.ts.map