import { Observable } from 'rxjs'; import { ActivatedRouteSnapshot, CanDeactivate, RouterStateSnapshot } from '@angular/router'; export interface ComponentDeactivate { canDeactivate: (currentRoute?: ActivatedRouteSnapshot, currentState?: RouterStateSnapshot, nextState?: RouterStateSnapshot) => Observable | Promise | boolean; } export declare class ComponentDeactivateGuard implements CanDeactivate { canDeactivate(component: ComponentDeactivate, currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): Observable | Promise | boolean; }