import { Observable } from 'rxjs'; import { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'; import * as i0 from "@angular/core"; export interface CanComponentDeactivate { canDeactivate: (nextState?: string) => Observable | Promise | boolean; } export declare class CanDeactivatePageGuard { canDeactivate(component: CanComponentDeactivate, currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export declare class CanDeactivateNgPageGuard { canDeactivate(component: CanComponentDeactivate, currentRoute?: ActivatedRouteSnapshot, currentState?: RouterStateSnapshot, nextState?: RouterStateSnapshot): boolean | Promise | Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }