import { DependencyList, RefObject } from 'react'; /** * Resets a scroll container to the top whenever `deps` change. * * Resets synchronously, then again on the next frame and after a short delay to * defeat iOS Safari's scroll restoration, which can re-apply the old position * after layout. Failures (detached node) are swallowed. * @param {RefObject} targetRef - The scroll container ref. * @param {DependencyList} deps - Dependencies that should trigger a reset. * @returns {void} Nothing. */ export declare const useResetScrollPosition: (targetRef: RefObject, deps: DependencyList) => void; //# sourceMappingURL=useResetScrollPosition.d.ts.map