/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes} checked by tsc
 */
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs';
/** @enum {string} */
var ToastType = {
    Default: 'default',
    Primary: 'primary',
    Info: 'info',
    Warning: 'warning',
    Success: 'success',
    Danger: 'danger',
};
export { ToastType };
/**
 * @record
 */
export function ToastConfig() { }
function ToastConfig_tsickle_Closure_declarations() {
    /** @type {?} */
    ToastConfig.prototype.content;
    /** @type {?|undefined} */
    ToastConfig.prototype.type;
    /** @type {?|undefined} */
    ToastConfig.prototype.time;
}
var ToastController = /** @class */ (function () {
    function ToastController() {
        this.notifySource = new Subject();
        this.notify = this.notifySource.asObservable();
    }
    /**
     * @param {?} config
     * @return {?}
     */
    ToastController.prototype.push = /**
     * @param {?} config
     * @return {?}
     */
    function (config) {
        this.notifySource.next(config);
    };
    ToastController.decorators = [
        { type: Injectable },
    ];
    /** @nocollapse */
    ToastController.ctorParameters = function () { return []; };
    return ToastController;
}());
export { ToastController };
function ToastController_tsickle_Closure_declarations() {
    /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
    ToastController.decorators;
    /**
     * @nocollapse
     * @type {function(): !Array<(null|{type: ?, decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>)})>}
     */
    ToastController.ctorParameters;
    /** @type {?} */
    ToastController.prototype.notify;
    /** @type {?} */
    ToastController.prototype.notifySource;
}

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9hc3QtY29udHJvbGxlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0YW5iby91aS1uYXRpdmUvIiwic291cmNlcyI6WyJsaWIvbW9kYWwvdG9hc3QvdG9hc3QtY29udHJvbGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsT0FBTyxFQUF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