/** * Creates a ref registrar that can be added to an element, and a function that then can be used to scroll said element * @returns The ref and scroll functions */ export declare function useSmoothScroll(): [ /** * Registers the element to control * @param el The element to control scroll of */ (el: T | null) => void, /** * Scrolls to the specified position * @param newTarget The position that should be scroll to * @param duration How long it takes to reach the specified position * @param ease The easing factor ([0,1], 0 will be linear) * @returns A promise that resolves when moving to the target stopped, resolves true if move was canceled since a new target was specified, or false if it successfully finished */ (newTarget: { left?: number; top?: number; addLeft?: number; addTop?: number; }, duration?: number, ease?: number) => Promise ]; //# sourceMappingURL=useSmoothScroll.d.ts.map