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
     * <ng-template #customTemplate>Hello World!<ng-template>
     * ```
     *
     * ```ts
     *  @ViewChild('customTemplate') private template: TemplateRef<unknown>;
     *
     *  showToast() {
     *    this.dokuToastService.open(this.template);
     *  }
     * ```
     */
    open(content: string | TemplateRef<unknown>, options?: DokuToastItemOptions): DokuToastRef;
    /**
     * Dismiss all the toasts immediately.
     */
    dismissAll(): void;
    static ɵfac: i0.ɵɵFactoryDeclaration<DokuToastService, never>;
    static ɵprov: i0.ɵɵInjectableDeclaration<DokuToastService>;
}
