import { ComponentFactoryResolver, ApplicationRef, Injector } from '@angular/core'; import { NgbitFlashConfig } from './ngbit-flash-config.interface'; import { NgbitFlashRef } from './ngbit-flash-ref'; export declare class NgbitFlashService { private componentFactoryResolver; private appRef; private injector; private flashComponentRef; private timer; constructor(componentFactoryResolver: ComponentFactoryResolver, appRef: ApplicationRef, injector: Injector); private appendFlashToBody; private removeFlashFromBody; private open; private setInitClass; /** * Flashes a custom styled message to the user * @param message A message to be displayed to the user * @param config A `NgbitFlashConfig` object */ custom(message: string, config?: NgbitFlashConfig): NgbitFlashRef; /** * Flashes a success message. * @param message A message to be displayed to the user. * @param config A FlashConfig object */ success(message: string, config?: NgbitFlashConfig): NgbitFlashRef; /** * Flashes an error message. * @param message A message to be displayed to the user. * @param config A FlashConfig object */ danger(message: string, config?: NgbitFlashConfig): NgbitFlashRef; /** * Flashes a warning message. * @param message A message to be displayed to the user. * @param config A `FlashConfig` object. */ warning(message: string, config?: NgbitFlashConfig): NgbitFlashRef; /** * Flashes a generic info message. * @param message A message to be displayed to the user. * @param config A `FlashConfig` object. */ info(message: string, config?: NgbitFlashConfig): NgbitFlashRef; /** * Closes an open flash message. */ close(): void; }