/** based on framer-motion@4.1.17, Copyright (c) 2018 Framer B.V. */ import type { Axis, AxisBox2D, BoundingBox2D, BoxDelta, TransformPoint2D } from '../../types/geometry'; /** * Calculate the center point of the provided axis */ export type calcAxisCenter = ({ min, max }: Axis) => number; /** * Bounding boxes tend to be defined as top, left, right, bottom. For various operations * it's easier to consider each axis individually. This function returns a bounding box * as a map of single-axis min/max values. */ declare function convertBoundingBoxToAxisBox({ top, left, right, bottom }: BoundingBox2D): AxisBox2D; declare function convertAxisBoxToBoundingBox({ x, y }: AxisBox2D): BoundingBox2D; /** * Applies a TransformPoint function to a bounding box. TransformPoint is usually a function * provided by Framer to allow measured points to be corrected for device scaling. This is used * when measuring DOM elements and DOM event points. */ declare function transformBoundingBox({ top, left, bottom, right }: BoundingBox2D, transformPoint?: TransformPoint2D): BoundingBox2D; /** * Create an empty axis box of zero size */ declare function axisBox(): AxisBox2D; declare function copyAxisBox(box: AxisBox2D): AxisBox2D; declare function delta(): BoxDelta; export { axisBox, convertAxisBoxToBoundingBox, convertBoundingBoxToAxisBox, copyAxisBox, delta, transformBoundingBox }; //# sourceMappingURL=index.d.ts.map