import { Subject } from 'rxjs/Subject';
export class ToastPackage {
    constructor(toastId, config, message, title, toastType, toastRef) {
        this.toastId = toastId;
        this.config = config;
        this.message = message;
        this.title = title;
        this.toastType = toastType;
        this.toastRef = toastRef;
        this._onTap = new Subject();
        this._onAction = new Subject();
    }
    triggerTap() {
        this._onTap.next();
        this._onTap.complete();
    }
    onTap() {
        return this._onTap.asObservable();
    }
    triggerAction(action) {
        this._onAction.next(action);
        this._onAction.complete();
    }
    onAction() {
        return this._onAction.asObservable();
    }
}
//# sourceMappingURL=toastr-config.js.map