import { EventEmitter } from '@angular/core'; import { ToastService } from '../toast.service'; export declare class Toast { private _settings; private _service; constructor(_settings: ToastSettings, _service: ToastService); onShow: EventEmitter; onShown: EventEmitter; onHide: EventEmitter; onHidden: EventEmitter; private _id; private _message; private _duration; private _close_behavior; private _show_close_button; private _close_button_text; private _visible; readonly visible: boolean; id: number; message: ToastStringFunction | string; duration: number; close_behavior: ToastCloseBehavior; show_close_button: boolean; close_button_text: ToastStringFunction | string; show(): void; hide(): void; destroy(): void; } export interface ToastSettings extends ToastData { id: number; } export interface ToastData { message: ToastStringFunction | string; duration?: number; close_behavior?: ToastCloseBehavior; show_close_button?: boolean; close_button_text?: ToastStringFunction | string; } export declare type ToastCloseBehavior = 'close' | 'dismiss'; export declare type ToastStringFunction = () => string;