/**
 * A string representing the name of an edge.
 */
type EdgeName = 'top' | 'right' | 'bottom' | 'left';
interface Point {
    /** The horizontal position. */
    x: number;
    /** The vertical position. */
    y: number;
}
/**
 * Given a point, a DOMRect and the name of an edge, returns the distance to
 * that edge of the rect.
 *
 * This function works for edges that are horizontal or vertical (e.g. not
 * rotated), the following terms are used so that the function works in both
 * orientations:
 *
 * - Forward, meaning the axis running horizontally when an edge is vertical
 *   and vertically when an edge is horizontal.
 * - Lateral, meaning the axis running vertically when an edge is vertical
 *   and horizontally when an edge is horizontal.
 *
 * @param point The point to measure distance from.
 * @param rect  A DOM Rect containing edge positions.
 * @param edge  The edge to measure to.
 */
export declare function getDistanceFromPointToEdge(point: Point, rect: DOMRect, edge: EdgeName): number;
/**
 * Given a point, a DOMRect and a list of allowed edges returns the name of and
 * distance to the nearest edge.
 *
 * @param point        The point to measure distance from.
 * @param rect         A DOM Rect containing edge positions.
 * @param allowedEdges A list of the edges included in the
 *                     calculation. Defaults to all edges.
 *
 * @return An array where the first value is the distance
 *         and a second is the edge name.
 */
export declare function getDistanceToNearestEdge(point: Point, rect: DOMRect, allowedEdges?: EdgeName[]): (number | EdgeName | undefined)[];
/**
 * Is the point contained by the rectangle.
 *
 * @param point The point.
 * @param rect  The rectangle.
 *
 * @return True if the point is contained by the rectangle, false otherwise.
 */
export declare function isPointContainedByRect(point: Point, rect: DOMRect): boolean;
/**
 * Is the point within the top and bottom boundaries of the rectangle.
 *
 * @param point The point.
 * @param rect  The rectangle.
 *
 * @return True if the point is within top and bottom of rectangle, false otherwise.
 */
export declare function isPointWithinTopAndBottomBoundariesOfRect(point: Point, rect: DOMRect): boolean;
export {};
//# sourceMappingURL=math.d.ts.map