import React, { Component, ReactElement } from 'react'; import { UserCheck } from './types'; interface Props { authParams?: object; children: ReactElement; location: object; userCheck: UserCheck; } /** * Restrict access to children to authenticated users * * Useful for Route components ; used internally by Resource. * Use it to decorate your custom page components to require * authentication. * * Pass the `location` from the `routeParams` as `location` prop. * You can set additional `authParams` at will if your authProvider * requires it. * * @example * import { Authenticated } from 'react-admin'; * * const CustomRoutes = [ * * * * * } /> * ]; * const App = () => ( * * ... * * ); */ export declare class Authenticated extends Component { componentWillMount(): void; componentWillReceiveProps(nextProps: any): void; checkAuthentication(params: any): void; render(): React.ReactElement; } declare const _default: import("react-redux").ConnectedComponentClass>; export default _default;