import { ActivatedRouteSnapshot, CanActivate, CanLoad, Router, RouterStateSnapshot } from '@angular/router'; import { AuthService } from './auth.service'; import * as i0 from "@angular/core"; /** * Add to a route to trigger the sign in flow when the user is not already authenticated * * Implements `CanLoad` for use with lazy loaded routes and `CanActivate` for regular routes. * * @see { AuthService.ensureLoggedIn } * @example * ```ts * export const routes: Routes = [ * { path: 'secure-page', component: SecurePageComponent, canActivate: [AuthGuard] }, * { * path: 'product', * canLoad: [AuthGuard], * loadChildren: () => import('@christianacca/demo-app/product-admin').then(m => m.ProductAdminModule) * }, * ]; * ``` */ export declare class AuthGuard implements CanActivate, CanLoad { private authService; private router; constructor(authService: AuthService, router: Router); canActivate(_route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise; canLoad(): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }