import { CanDeactivate } from '@angular/router'; import { Observable } from 'rxjs'; import { UnsavedChangesDialogData } from './unsaved-changes-dialog.model'; import * as i0 from "@angular/core"; /** * Guard responsible for protecting leaving page with unsaved changes. */ export declare class UnsavedChangesGuard implements CanDeactivate { private readonly dialog; private readonly authenticationService; private readonly authGuardBaseService; unsaved: boolean; data: UnsavedChangesDialogData; /** * Allows to deactivate route when there is no unsaved changes, otherwise displays dialog to confirm discarding changes. * * @returns boolean | Observable true when there is no unsaved changes or changes can be discarded, false otherwise. */ canDeactivate(): boolean | Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }