export interface Rect {
    top: number;
    right: number;
    bottom: number;
    left: number;
}
export declare function rectsIntersect(a: Rect, b: Rect): boolean;
export declare function rectsAllIntersect(rects: Rect[]): boolean;
export declare function pointInRect(point: {
    x: number;
    y: number;
}, rect: Rect): boolean;
export declare function rectsMerge(a: Rect, b: Rect): Rect;
export declare function rectsAllMerge(rects: Rect[]): Rect;
export declare function rectRelativeTo(child: Rect, parent: Rect): Rect;
export declare function rectMidpoint(rect1: Rect, rect2: Rect): {
    top: number;
    bottom: number;
    left: number;
    right: number;
    width: number;
    height: number;
};
export declare function rectToDOMRect(rect: Rect): DOMRect;
export declare function DOMRectToRect(rect: DOMRect): Rect;
//# sourceMappingURL=rect-helpers.d.ts.map