/** based on framer-motion@4.1.17, Copyright (c) 2018 Framer B.V. */ import type { Axis, AxisDelta, BoxDelta, AxisBox2D } from "../../types/geometry"; import type { ResolvedValues } from "../../render/types"; import type { TargetProjection } from "../../render/utils/state"; /** based on framer-motion@4.1.15, Copyright (c) 2018 Framer B.V. */ import '../fix-process-env'; /** * Returns true if the provided value is within maxDistance of the provided target */ declare function isNear(value: number, target?: number, maxDistance?: number): boolean; /** * Calculate a transform origin relative to the source axis, between 0-1, that results * in an asthetically pleasing scale/transform needed to project from source to target. */ declare function calcOrigin(source: Axis, target: Axis): number; /** * Update the AxisDelta with a transform that projects source into target. * * The transform `origin` is optional. If not provided, it'll be automatically * calculated based on the relative positions of the two bounding boxes. */ declare function updateAxisDelta(delta: AxisDelta, source: Axis, target: Axis, origin?: number): void; /** * Update the BoxDelta with a transform that projects the source into the target. * * The transform `origin` is optional. If not provided, it'll be automatically * calculated based on the relative positions of the two bounding boxes. */ declare function updateBoxDelta(delta: BoxDelta, source: AxisBox2D, target: AxisBox2D, origin: ResolvedValues): void; declare function calcRelativeAxis(target: Axis, relative: Axis, parent: Axis): void; declare function calcRelativeBox(projection: TargetProjection, parentProjection: TargetProjection): void; export { calcOrigin, calcRelativeAxis, calcRelativeBox, isNear, updateAxisDelta, updateBoxDelta }; //# sourceMappingURL=delta-calc.d.ts.map