import { HttpErrorResponse } from '@angular/common/http'; import { Observable } from 'rxjs'; import { MessagerService } from '@farris/ui-messager'; import { LanguageService } from './languag.service'; /** * 表单消息服务 * @scope FormModule * @summary * 1、包装@farris/ui的消息服务; * 2、提供针对表单的快捷方法; */ declare class FormMessageService { private messagerService; private languageService; private curLanguage; /** * 构造函数 * 注入@farris/ui的LoadingService */ constructor(messagerService: MessagerService, languageService: LanguageService, curLanguage: string); /** * question弹窗 */ question(content: string): Observable; /** * 带默认焦点的弹出提示 * @param content 内容 */ question2(content: string): Observable; /** * 弹出输入对话框 * @param title 标题 */ prompt(title: string): Observable; /** * 使用Promise实例包装回调方法,以同步回调方法执行后结果 * @param content */ private confirmPromise; /** * 确认弹框 * @param content 弹出内容提示 */ confirm(content: string): Observable; /** * 消息弹框 */ info(content: string): void; /** * 错误弹框 */ error(content: string): void; /** * 警告弹框 */ warning(content: string): void; /** * 服务器端异常提示弹框 */ httpErrorInServer(httpError: HttpErrorResponse): void; /** * 客户端异常提示弹框 */ httpErrorInClient(httpError: HttpErrorResponse): void; /** * 401异常处理 * 为了独立弹出重新登录提示框,切换到运行框架http服务后可以删除 * @param httpError 异常 */ http401Error(httpError: HttpErrorResponse): void; } export { FormMessageService };