/** * Hook used to compute the styles required to move a div into a new position. * * The way this animation works is the following: * - It first renders the element as if there was no animation. * - It takes a snapshot of the position of the element to use it * as a destination point for the animation. * - It restores the element to the previous position using a CSS transform * * Only animates on reorder of same items. * Cancels running animations when the set of items changes (e.g. an item is added or removed). * * @param index Position of the element in the list; the animation runs when it changes. * @param itemsKey Identifies the set of items in the list, regardless of order. */ export default function useMovingAnimation(index: number, itemsKey: string): import("react").RefObject; //# sourceMappingURL=use-moving-animation.d.ts.map