interface NextLoaderProps { /** * Specifies the color of the top-loading bar. * Default: "#59a2ff" (a shade of blue) */ color?: string; /** * Sets the initial position of the top-loading bar as a percentage of the total width. * Default: 0.08 (8% of the total width) */ initialPosition?: number; /** * Specifies the height of the top-loading bar in either pixels (number) or css unit (string). * Default: 4 pixels */ height?: number | string; /** * Specifies the easing function to use for the loading animation. Accepts any valid CSS easing string. * Default: "ease" */ easing?: string; /** * Sets the animation speed of the top-loading bar in milliseconds. * Default: 200 milliseconds */ speed?: number; /** * Defines the z-index property of the top-loading bar, controlling its stacking order. * Default: 2147483647 */ zIndex?: number; /** * Specifies the shadow effect to be applied to the top-loading bar. * For example: "0 0 10px #59a2ff, 0 0 5px #59a2ff" */ boxShadow?: string; /** * Specifies whether to accompany the loading bar with a spinner. * Default: false */ showSpinner?: boolean; } /** * Converts a given URL to an absolute URL based on the current window location. * If the input URL is already absolute, it remains unchanged. * * @param {string} url - The URL to be converted. Can be an absolute or relative URL. * @returns {string} The absolute URL derived from the given URL and the current window location. */ declare const toAbsoluteURL: (url: string) => string; /** * Determines if two URLs refer to the same page, differing only by the anchor. * * @param {string} currentUrl The current URL. * @param {string} newUrl The new URL to compare with the current URL. * @returns {boolean} True if the URLs refer to the same page (excluding the anchor), false otherwise. */ declare const isSamePageAnchor: (currentUrl: string, newUrl: string) => boolean; /** * Determines if two URLs have the same host. * * @param {string} currentUrl The current URL. * @param {string} newUrl The new URL to compare with the current URL. * @returns {boolean} True if the URLs have the same host, false otherwise. */ declare const isSameHost: (currentUrl: string, newUrl: string) => boolean; /** * Dispatches the event to manually start the NextLoader progress bar. */ declare const startNextLoader: () => void; /** * Dispatches the event to manually stop the NextLoader progress bar. */ declare const stopNextLoader: () => void; /** * NextLoader is a React component that provides a customizable top-loading progress bar. * * @param {NextLoaderProps} props The properties for configuring the NextLoader. * @returns {null} */ declare const NextLoader: ({ color, initialPosition, height, easing, speed, zIndex, boxShadow, showSpinner, }: NextLoaderProps) => null; export { type NextLoaderProps, NextLoader as default, isSameHost, isSamePageAnchor, startNextLoader, stopNextLoader, toAbsoluteURL };