export type AnimationParameters = { /** * Easing function. * Takes an argument in range [0, 1] and returns value in range [0, 1]. */ easing: (t: number) => number; /** * Animation duration function. * Takes distance in pixels and returns duration in milliseconds. */ duration: (distance: number) => number; }; export declare const smoothScrollToCenter: (container: HTMLElement, element: HTMLElement, parameters: AnimationParameters, controller?: AbortController) => Promise;