import { NextRouter } from 'next/router'; /** * Save the scroll position of the specified element or window to session storage. */ export declare function saveScrollPos(key: string, selector?: string): void; /** * Restore the scroll position of the specified element or window from session storage. */ export declare function restoreScrollPos(key: string, selector?: string): void; /** * Delete the saved scroll position from session storage. */ export declare function deleteScrollPos(key: string): void; interface ScrollRestorationOptions { router?: NextRouter; enabled?: boolean; selector?: string; delay?: number; } /** * Custom hook to manage scroll restoration for the Next.js Pages Router. * @param {ScrollRestorationOptions} [options] * @param {NextRouter} [options.router] - Custom router object. If not provided, the Next.js router is used. * @param {boolean} [options.enabled=true] - Flag to enable or disable the scroll restoration. * @param {string} [options.selector] - CSS selector of the element to manage scroll restoration for. If not provided, the window scroll position is managed. * @param {number} [options.delay] - Delay in milliseconds before restoring scroll position. If not provided, restoration is immediate. */ export declare function useScrollRestoration({ router, enabled, selector, delay }: ScrollRestorationOptions): void; export {};