export type RouteTransitionOptions = { shallow?: boolean; }; export type RouterState = { url: string; as: string; options: RouteTransitionOptions; }; export type RoutingState = { /** * Holds the current route "asPath" (NextJS Router related) path URL */ currentAsPath: string; /** * Holds the previous route "asPath" (NextJS Router related) path URL */ previousAsPath: string; /** * Specifies a redirectUrl to land on after a certain action is completed */ redirectUrl: string | undefined; /** * Shows loading spinner while user is being redirected */ isRedirecting: boolean; /** * Captures lastScrollPosition in Y axis before a route changes, useful when the position is going to be restored later */ lastScrollPosition: number; }; //# sourceMappingURL=state.types.d.ts.map