export default function (rect: any, left: any, right: any, top: any, bottom: any, tolerance?: number): boolean;