/** * Wrap a shell-supplied {@link NavigationContextValue} so every SDK-controlled * transition consults the armed guards before it commits, and — on approval — * advances the committed-entry mirror to the resolved destination. With no guard * armed each call stays synchronous, identical to the raw shell value. */ import type { RefObject } from 'react'; import type { NavigationGuardRegistry } from './guard-registry'; import type { NavigationContextValue } from './types'; /** The last committed history entry the SDK observed: what a canceled back/forward restores to. */ export interface CommittedEntry { href: string; state: unknown; } type CommittedRef = RefObject; /** * Build the guarded navigation value. The two host-optional members * (`navigatePluginWithOptions`, `updatePluginEntryState`) are wrapped only when the * host provides them; an older host leaves them undefined and the plugin-facing hook * throws loudly. */ export declare function buildGuardedNavigation(value: NavigationContextValue, registry: NavigationGuardRegistry, committedRef: CommittedRef): NavigationContextValue; export {}; //# sourceMappingURL=guarded-navigation.d.ts.map