import type { AnimationPlaybackControls } from 'motion'; import { type RefObject } from 'react'; /** * Create a Motion animation via a callback, the animation is stopped when the component is * unmounted or when a new callback function is provided. */ export declare function useAnimation(callback: () => T, dependencies: ReadonlyArray): RefObject;