/** * @license * Copyright Datorama. All Rights Reserved. * * Use of this source code is governed by an Apache License 2.0 license that can be * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE */ import { ApplicationRef, ComponentFactoryResolver, Injector } from '@angular/core'; import { SnackbarType } from '../snackbar/snackbar.types'; import { DatoTranslateService } from '../services/translate.service'; import { SnackbarOptions } from './snackbar.types'; import { SnackbarRef } from './snackbar-ref'; import { ContentType } from '../dynamic-content/dynamic-content.types'; export declare class DatoSnackbar { private translate; private appRef; private resolver; private injector; private document; private contentRef; private component; private nativeElement; constructor(translate: DatoTranslateService, appRef: ApplicationRef, resolver: ComponentFactoryResolver, injector: Injector, document: any); snack(content: ContentType, type?: SnackbarType, options?: Partial, context?: object): SnackbarRef; info(msg: ContentType, options?: Partial, context?: object): SnackbarRef; success(msg: ContentType, options?: Partial, context?: object): SnackbarRef; error(msg: ContentType, options?: Partial, context?: object): SnackbarRef; dramaticSuccess(msg: ContentType, options?: Partial, context?: object): SnackbarRef; dramaticError(msg: ContentType, options?: Partial, context?: object): SnackbarRef; private destroy; }