import { AlertController, ModalController } from '@ionic/angular'; import { ElementRef, OnInit } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { UofxI18NService } from '@uofx/core'; import * as i0 from "@angular/core"; export declare class UofxModalHeaderComponent implements OnInit { private modalCtrl; alertCtrl: AlertController; private i18n; private el; buttonsTemplate: any; /** 標題 */ title: string; /** 隱藏關閉按鈕 */ hiddenClose: boolean; /** 父元件的FormGroup */ form: FormGroup; /** 置頂警告訊息 */ errors: Array; /** error block樣式 */ mode: 'message' | 'error'; /** 顯示錯誤訊息 icon */ showAlertMsgIcon: boolean; /** 按鈕[X]在關閉時要送出的資料 */ setCloseBtnEmit: any; constructor(modalCtrl: ModalController, alertCtrl: AlertController, i18n: UofxI18NService, el: ElementRef); ngOnInit(): void; /** 設定 modal 的 canDismiss */ setModalCanDismiss(): Promise; /** 判斷是否為使用者觸發的關閉行為 (非程式觸發) */ isUserTriggeredExit(role: string): boolean; /** 是否有變更內容 */ isFormDirty(): boolean; /** 開啟捨棄變更提示 */ changeConfirm(): Promise; /** 關閉按鈕點擊事件 */ onCloseClick(): void; /** 拋出 setCloseBtnEmit 並關閉 modal */ modalDismiss(role?: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }