import { Observable } from 'rxjs'; import { CanDeactivateFn, UrlTree } from '@angular/router'; type CanDeactivateType = Observable | Promise | boolean | UrlTree; export interface DeactivateComponent { canDeactivate: () => CanDeactivateType; } /** * DeactivateGuard method gets the instance of the component being deactivated as first argument. * @param {deactivateGuard} Guard * @return {boolean} Returns true or false based on the component canDeactivate method & its return value. Redirection on routing is allowed when the method returns true, else route will be deactivated. */ export declare const deactivateGuard: CanDeactivateFn; export {};