/** based on framer-motion@4.1.17, Copyright (c) 2018 Framer B.V. */ import type { SpringOptions } from 'popmotion'; import type { MotionValue } from './index.js'; /** based on framer-motion@4.1.16, Copyright (c) 2018 Framer B.V. */ import '../utils/fix-process-env.js'; /** * Creates a `MotionValue` that, when `set`, will use a spring animation to animate to its new state. * * It can either work as a stand-alone `MotionValue` by initialising it with a value, or as a subscriber * to another `MotionValue`. * * @remarks * * ```jsx * const x = useSpring(0, { stiffness: 300 }) * const y = useSpring(x, { damping: 10 }) * ``` * * @param inputValue - `MotionValue` or number. If provided a `MotionValue`, when the input `MotionValue` changes, the created `MotionValue` will spring towards that value. * @param springConfig - Configuration options for the spring. * @returns `MotionValue` * * @public */ export declare const useSpring: (source: MotionValue | number, config?: SpringOptions, isCustom?: boolean) => MotionValue & { reset: (_: any, config: SpringOptions) => void; }; //# sourceMappingURL=use-spring.d.ts.map