import * as PropTypes from 'prop-types'; import * as React from 'react'; import * as NProgress from 'nprogress'; interface TopLoaderActions { start: () => NProgress.NProgress; done: (force?: boolean) => NProgress.NProgress; remove: () => void; setProgress: (value: number) => NProgress.NProgress; inc: (amount?: number) => NProgress.NProgress; trickle: () => NProgress.NProgress; isStarted: () => boolean; isRendered: () => boolean; getPositioningCSS: () => 'translate3d' | 'translate' | 'margin'; } declare const useTopLoader: () => TopLoaderActions; type NextTopLoaderProps = { /** * Color for the TopLoader. * @default "#29d" */ color?: string; /** * The initial position for the TopLoader in percentage, 0.08 is 8%. * @default 0.08 */ initialPosition?: number; /** * The increament delay speed in milliseconds. * @default 200 */ crawlSpeed?: number; /** * The height for the TopLoader in pixels (px). * @default 3 */ height?: number; /** * Auto increamenting behaviour for the TopLoader. * @default true */ crawl?: boolean; /** * To show spinner or not. * @default true */ showSpinner?: boolean; /** * Animation settings using easing (a CSS easing string). * @default "ease" */ easing?: string; /** * Animation speed in ms for the TopLoader. * @default 200 */ speed?: number; /** * Defines a shadow for the TopLoader. * @default "0 0 10px ${color},0 0 5px ${color}" * * @ you can disable it by setting it to `false` */ shadow?: string | false; /** * Defines a template for the TopLoader. * @default "
*