import { type RefObject } from 'react'; /** * Hook to create animation that make use of ScrollTrigger, ScrollTrigger is refreshed * when the global animations map is updated. * * Note: do not scrub a React component's root because React won't know what element to * unmount when the component with a pinned animation is removed from the vDOM. */ export declare function useScrollAnimation(callback: () => T | undefined, dependencies: ReadonlyArray): RefObject;