lingjing/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.d.ts
2026-02-23 09:51:43 +00:00

10 lines
906 B
TypeScript

import type { FlightRouterState, FlightSegmentPath } from '../../../../shared/lib/app-router-types';
import type { Mutable, NavigateAction, ReadonlyReducerState, ReducerState } from '../router-reducer-types';
import { type NavigationResult } from '../../segment-cache/navigation';
export declare const DYNAMIC_STALETIME_MS: number;
export declare const STATIC_STALETIME_MS: number;
export declare function handleExternalUrl(state: ReadonlyReducerState, mutable: Mutable, url: string, pendingPush: boolean): ReducerState;
export declare function generateSegmentsFromPatch(flightRouterPatch: FlightRouterState): FlightSegmentPath[];
export declare function handleNavigationResult(url: URL, state: ReadonlyReducerState, mutable: Mutable, pendingPush: boolean, result: NavigationResult): ReducerState;
export declare function navigateReducer(state: ReadonlyReducerState, action: NavigateAction): ReducerState;