import type { StaticDataRouteOption } from '@tanstack/react-router'; import type { ReactNode } from 'react'; type KeepAliveProviderProps = { children: ReactNode; defaultAliveRoutes?: AliveRoutes; }; type AliveRouteData = { staticData: StaticDataRouteOption; element?: ReactNode; }; export type AliveRoutes = { [key: string]: AliveRouteData; }; export type KeepAliveContextState = { aliveRoutes: AliveRoutes; setAliveRoutes: (pathname: string, data: AliveRouteData) => void; deleteAliveRoutes: (pathname: string[]) => void; }; export declare function KeepAliveProvider({ children, defaultAliveRoutes }: KeepAliveProviderProps): import("react/jsx-runtime").JSX.Element; export declare function useKeepAliveContext(): KeepAliveContextState; export {};