import { Point } from './Node'; import NodeFixedBounds from './NodeFixedBounds'; export interface RectangleStyle { strokeStyle?: string; lineWidth?: number; fillStyle?: string; lineDash?: Array; } export interface RectangleParameters extends RectangleStyle { x1: number; y1: number; x2: number; y2: number; } declare class Rectangle extends NodeFixedBounds { private x1; private y1; private x2; private y2; private strokeStyle; private lineWidth; private fillStyle; private lineDash; constructor({x1, y1, x2, y2, strokeStyle, lineWidth, fillStyle, lineDash}: RectangleParameters); draw(context: CanvasRenderingContext2D): void; intersection({x: px, y: py}: Point): Rectangle | undefined; } export default Rectangle;