import { NgModule } from '@angular/core';
import { RToastrContainerRegistry, RToastrService } from './toastr.service';
import { RToastComponent } from './toast.component';
import { RToastrContainerComponent } from './toastr-container.component';
import { NB_TOASTR_CONFIG } from './toastr-config';
import { CommonModule } from '@angular/common';
import { RIconModule } from '../../icon';
import { ROverlayModule } from '../../../cdk/overlay/overlay.module';
export class RToastrModule {
    static forRoot(toastrConfig = {}) {
        return {
            ngModule: RToastrModule,
            providers: [
                RToastrService,
                RToastrContainerRegistry,
                { provide: NB_TOASTR_CONFIG, useValue: toastrConfig },
            ],
        };
    }
}
RToastrModule.decorators = [
    { type: NgModule, args: [{
                imports: [
                    CommonModule,
                    ROverlayModule.forRoot(),
                    RIconModule
                ],
                declarations: [
                    RToastrContainerComponent,
                    RToastComponent
                ],
                entryComponents: [
                    RToastrContainerComponent,
                    RToastComponent
                ],
            },] }
];
//# sourceMappingURL=toastr.module.js.map