import { Size } from './Size'; import { Point } from './Point'; export declare type Rect = { readonly x0: number; readonly y0: number; readonly x1: number; readonly y1: number; }; export declare const ZERO_RECT: Rect; export declare type RectWithInfo = { readonly size: Size; readonly position: Point; } & Rect; export declare function createRect(position: Point, size: Size): RectWithInfo; export declare function withSizeAndPosition(rect: Rect): RectWithInfo; export declare function intersect(rect: Rect, other: Rect): Rect; export declare function boundingRect(rects: Rect[]): Rect;