import { MatDialog, MatSnackBar } from "@angular/material"; import { ToastrService } from "ngx-toastr"; import { Observable } from "rxjs"; import { W3ConfirmResponse } from "../../helpers/rxjs"; /** * Serviço de notificações e alertas */ export declare class W3NotificationService { snackBar: MatSnackBar; dialog: MatDialog; private _toast; private _confirmDialogRef; /** * * @param snackBar * @param dialog * @param _toast @see https://github.com/scttcper/ngx-toastr */ constructor(snackBar: MatSnackBar, dialog: MatDialog, _toast: ToastrService); /** * Notificação de snackbar */ notify(message: string, position?: string, duration?: number): void; /** * Info toast */ info(message?: string, title?: string): void; /** * Info error */ error(message?: string, title?: string): void; /** * Info toast */ success(message?: string, title?: string): void; /** * Warning toast */ warning(message?: string, title?: string): void; /** * Dialog Confirmação de deleção */ confirmDeleteDialog(name?: string, payload?: any): Observable; /** * Dialog Confirmação */ confirmDialog(message: string, title: string, typeClass?: string, payload?: any): Observable; }