import { TemplateRef } from '@angular/core'; import { DokuToastElementService } from './toast-element.service'; import { DokuToastRef } from './toast-ref'; import { DokuToastItemOptions } from './toast.interface'; import * as i0 from "@angular/core"; export declare class DokuToastService { private toastElementService; constructor(toastElementService: DokuToastElementService); /** * Open toast from a text or template ref. * * @example * From text: * ```ts * this.dokuToastService.open('Hello World!'); * ``` * * @example * From template ref: * ```html * Hello World! * ``` * * ```ts * @ViewChild('customTemplate') private template: TemplateRef; * * showToast() { * this.dokuToastService.open(this.template); * } * ``` */ open(content: string | TemplateRef, options?: DokuToastItemOptions): DokuToastRef; /** * Dismiss all the toasts immediately. */ dismissAll(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }