/** * @param {object} obj.component specific svelte component * @param {object} obj.data data to data property of svelte component *```typescript * const check = await showDialog({ * type: "text", * title: "Confirm", * data: { * text: "Are you sure to do that", * confirmText: "Confirm", * cancelText: "Cancel", * }, * }); * const result = await showDialog({ * component: DynamicComponent, * contentClass: "s-dialog-full", * data: {}, * }); * await showDialog({ * type: 'lazy', * title: 'Alert', * name: 'AlertInfo', * component: () => import('./AlertInfo.svelte') * data: { * } * }); *``` */ export declare function showDialog(obj: { delay?: number; component?: any; type?: 'text' | 'input' | 'lazy'; name?: string; isDisableOutClose?: boolean; title?: string; titleClass?: string; contentClass?: string; style?: string; mobileStyle?: string; data?: Partial<{ text: string; confirm: string; confirmClass: string; closeClass: string; close: string; componentData?: any; [key: string]: any; }>; onOutsideClick?: (event: any) => void; onClose?: (data: any) => void; }): Promise<{ confirm: boolean; data: any; } | undefined>; export declare function showMessageDialog(message: string, title?: string): Promise<{ confirm: boolean; data: any; } | undefined>; declare const Dialog: import("svelte").Component, {}, "">; type Dialog = ReturnType; export default Dialog;