import { Point } from './Point'; export type Rect = { x: number; y: number; w: number; h: number; }; export declare const emptyRect: Rect; export declare function getBoundingRect(rects: Array): Rect; export declare function getIntersectingRect(rects: Array): Rect | null; export declare function compareRects(a: Rect, b: Rect): boolean; export declare function substractRect(a: Rect, b: Rect): Array; export declare function getBarycenter(rect: Rect): Point | null;