import { UrlTree, CanDeactivateFn } from '@angular/router'; import { Observable } from 'rxjs'; type CanDeactivateType = Observable | Promise | boolean | UrlTree; interface CanComponentDeactivate { canDeactivate: () => CanDeactivateType; } declare const canDeactivateGuard: CanDeactivateFn; export { canDeactivateGuard }; export type { CanComponentDeactivate, CanDeactivateType };