/** Angular2 */ import * as ng from "@angular/core"; /** Core */ import { Generic } from "cmf.core/src/core"; import { PageBag } from "./pageBag"; /** * PageUtils */ export declare class PageUtils extends Generic { /** * Determine title to display based on supplied page bag * @param pageBags page bag to fetch data from */ private getPageTitle; /** * Displays leave page confirm dialog if possible or just a warning message * @param pageBagsToConfirm Used to determine the titles of the dirty pages * @param currentPageBag Currently selected page, used to determine the message to display * @param anchor Anchor to attach confirm dialog */ showLeaveConfirm(pageBagsToConfirm: PageBag[], currentPageBag: PageBag, anchor?: ng.ElementRef, recvBodyMessage?: string, recvBodySubMessage?: string, okButtonLabel?: string): Promise; /** * Check provided page bags for the isDirty flag and if dirty check if the leave page(s) action can proceed * @param pageBags Page bags to check * @param currentPageBag Currently selected page bag * @param anchor to attach dialog to */ checkIfLeavePageCanProceed(pageBags: PageBag[], currentPageBag: PageBag, anchor: ng.ElementRef, recvBodyMessage?: string, recvBodySubMessage?: string, okButtonLabel?: string): Promise; }