UNPKG

react-navplus

Version:

A flexible, performance-optimized navigation link component for React with multi-router support, prefetching, and advanced active state detection

19 lines 745 B
import { PrefetchOptions, RouterType } from '../types'; /** * Default prefetch options */ export declare const defaultPrefetchOptions: PrefetchOptions; /** * Normalized prefetch options from prop * Fixed: Avoid spread syntax that requires tslib helpers */ export declare const normalizePrefetchOptions: (prefetch: boolean | PrefetchOptions | undefined) => PrefetchOptions; /** * Implementation of prefetch logic for different router libraries */ export declare const executePrefetch: (url: string, routerType: RouterType, isExternal: boolean, routerContext?: any, customPrefetch?: (to: string) => void) => boolean; /** * Clear prefetch cache */ export declare const clearPrefetchCache: () => void; //# sourceMappingURL=prefetch.d.ts.map