UNPKG

529 BTypeScriptView Raw
1import { ButtonList } from './buttons';
2import { ContentOptions } from './content';
3export interface SwalOptions {
4 title: string;
5 text: string;
6 icon: string;
7 buttons: ButtonList | Array<string | boolean>;
8 content: ContentOptions;
9 className: string;
10 closeOnClickOutside: boolean;
11 closeOnEsc: boolean;
12 dangerMode: boolean;
13 timer: number;
14}
15export declare const setDefaults: (opts: object) => void;
16export declare const getOpts: (...params: (string | Partial<SwalOptions>)[]) => SwalOptions;