import { ReactNode } from 'react'; import { NextShieldProps } from '../types/props'; /** * 😉 The shield that every Next.js app needs * * @typeParam NextShieldProps - {@link NextShieldProps | see here} * @returns NextShield Component * * @example * ```tsx * import { Loading } from '@/components/routes/Loading' * import { useAuth } from '@/hooks/auth' * * export default function MyApp({ Component, pageProps }: AppProps) { * const { isAuth, isLoading } = useAuth() * const router = useRouter() * * return ( * } * > * * * ) * } * * ``` * @packageDocumentation */ export declare function NextShield({ isAuth, isLoading, router: { pathname, replace }, loginRoute, accessRoute, privateRoutes, publicRoutes, hybridRoutes, LoadingComponent, RBAC, userRole, children, }: NextShieldProps & { children: ReactNode; }): JSX.Element;