UNPKG

1.76 kBTypeScriptView Raw
1import { BodyOutputType } from './bodyOutputType';
2import { ToastType } from './toast';
3export declare const DefaultTypeClasses: {
4 [key in ToastType]?: string;
5};
6export declare const DefaultIconClasses: {
7 [key in ToastType]?: string;
8};
9export interface IToasterConfig {
10 limit?: number | null;
11 tapToDismiss?: boolean;
12 showCloseButton?: boolean | {
13 [key in ToastType]?: boolean;
14 };
15 closeHtml?: string;
16 newestOnTop?: boolean;
17 timeout?: number | {
18 [key in ToastType]?: number;
19 };
20 typeClasses?: {
21 [key in ToastType]?: string;
22 };
23 iconClasses?: {
24 [key in ToastType]?: string;
25 };
26 bodyOutputType?: BodyOutputType;
27 bodyTemplate?: string;
28 defaultToastType?: ToastType;
29 positionClass?: string;
30 titleClass?: string;
31 messageClass?: string;
32 animation?: string;
33 preventDuplicates?: boolean;
34 mouseoverTimerStop?: boolean;
35 toastContainerId?: number | null;
36}
37export declare class ToasterConfig implements IToasterConfig {
38 limit?: number | null;
39 tapToDismiss: boolean;
40 showCloseButton: boolean | {
41 [key in ToastType]?: boolean;
42 };
43 closeHtml: string;
44 newestOnTop: boolean;
45 timeout: number | {
46 [key in ToastType]?: number;
47 };
48 typeClasses: {
49 [key in ToastType]?: string;
50 };
51 iconClasses: {
52 [key in ToastType]?: string;
53 };
54 bodyOutputType: BodyOutputType;
55 bodyTemplate: string;
56 defaultToastType: ToastType;
57 positionClass: string;
58 titleClass: string;
59 messageClass: string;
60 animation: string;
61 preventDuplicates: boolean;
62 mouseoverTimerStop: boolean;
63 toastContainerId?: number | null;
64 constructor(configOverrides?: IToasterConfig);
65}