UNPKG

663 BTypeScriptView Raw
1import { GlobalConfig } from './toastr-config';
2import { EnvironmentProviders } from '@angular/core';
3export declare const DefaultGlobalConfig: GlobalConfig;
4/**
5 * @description
6 * Provides the `TOAST_CONFIG` token with the given config.
7 *
8 * @param config The config to configure toastr.
9 * @returns The environment providers.
10 *
11 * @example
12 * ```ts
13 * import { provideToastr } from 'ngx-toastr';
14 *
15 * bootstrap(AppComponent, {
16 * providers: [
17 * provideToastr({
18 * timeOut: 2000,
19 * positionClass: 'toast-top-right',
20 * }),
21 * ],
22 * })
23 */
24export declare const provideToastr: (config?: Partial<GlobalConfig>) => EnvironmentProviders;