export type GeometryRect = { left: number; right: number; top: number; bottom: number; }; /** * Whether two axis-aligned rects overlap. `tolerance` expands the test * rect on every side, so rects that fall a few pixels short of touching * (sub-pixel rendering, borders) still count as intersecting. */ export declare function isIntersecting(targetRect: GeometryRect, destinationRect: GeometryRect, { tolerance }?: { tolerance?: number; }): boolean; /** * Whether `targetRect` wholly contains `testRect`. */ export declare function isRectEnclosing(targetRect: GeometryRect, testRect: GeometryRect): boolean;