UNPKG

492 BTypeScriptView Raw
1import { ActionOptions, SwalState } from './modules/state';
2import { SwalOptions } from './modules/options';
3export declare type SwalParams = (string | Partial<SwalOptions>)[];
4export interface SweetAlert {
5 (...params: SwalParams): Promise<any>;
6 close?(namespace?: string): void;
7 getState?(): SwalState;
8 setActionValue?(opts: string | ActionOptions): void;
9 stopLoading?(): void;
10 setDefaults?(opts: object): void;
11}
12declare const swal: SweetAlert;
13export default swal;