import { BoundingBox } from "../BoundingBox"; import type { Cloneable, Equatable } from "../contracts"; import { Point } from "../Point"; import { Segment } from "./Segment"; import type { Shape } from "./Shape"; export declare class Rectangle implements Shape, Equatable, Cloneable { readonly topLeftPoint: Point; readonly bottomRightPoint: Point; private readonly _rotation; constructor(topLeft: Point, bottomRight: Point, rotation?: number); static fromTopLeftPointAndSize(topLeft: Point, width: number, height: number, rotation?: number): Rectangle; center(): Point; topLeft(): Point; bottomRight(): Point; width(): number; height(): number; boundingBox(): BoundingBox; union(other: Rectangle): Rectangle; intersected(other: Rectangle): Rectangle | undefined; grow(amount: number): Rectangle; rotation(): number; rotated(angleDegrees: number, pivot?: Point): Rectangle; reflected(axis: Segment): Rectangle; reflectedByHorizontal(centered?: boolean): Rectangle; reflectedByVertical(centered?: boolean): Rectangle; isEqualWith(other: Rectangle): boolean; clone(): Rectangle; } //# sourceMappingURL=Rectangle.d.ts.map