import { ReactElement } from 'react'; export interface AuthenticatedProps { children: ReactElement; authParams?: object; location?: object; } /** * Restrict access to children to authenticated users. * Redirects anonymous users to the login page. * * Use it to decorate your custom page components to require * authentication. * * You can set additional `authParams` at will if your authProvider * requires it. * * @see useAuthenticated * * @example * import { Authenticated } from '../app'; * * const CustomRoutes = [ * * * * * } /> * ]; * const App = () => ( * * ... * * ); */ declare const Authenticated: (props: AuthenticatedProps) => ReactElement>; export default Authenticated;