UNPKG

next

Version:

The React Framework

12 lines (11 loc) • 1.04 kB
import type { AppHistoryState, NavigateAction, ScrollBehavior } from './router-reducer/router-reducer-types'; import type { NavigateOptions } from '../../shared/lib/app-router-context.shared-runtime'; import type { LinkInstance } from './links'; import type { RouterTransitionPrefetchIntent } from '../router-transition-types'; export declare function navigate(_href: string, _navigateType: NavigateAction['navigateType'], _scrollBehavior: ScrollBehavior, _linkInstanceRef: LinkInstance | null, _transitionTypes: string[] | undefined, _prefetchIntent: RouterTransitionPrefetchIntent | null): void; export declare function push(_href: string, _options?: NavigateOptions): void; export declare function replace(_href: string, _options?: NavigateOptions): void; export declare function traverse(_href: string, _historyState: AppHistoryState | undefined): void; export declare function restore(_url: URL, _historyState: AppHistoryState | undefined): void; export declare function refresh(): void; export declare function hmrRefresh(): void;