1 | import React, { type JSXElementConstructor } from 'react';
|
2 | import type { ShowModalInnerProps, ShowConfig } from './types';
|
3 | type ModalInnerProps = ShowModalInnerProps & {
|
4 | type?: string;
|
5 | };
|
6 | export declare const ModalInner: ({ type, messageProps, title, rtl, prefix, content, }: ModalInnerProps) => React.JSX.Element;
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | export declare const show: (config?: ShowConfig) => {
|
13 | hide: () => void;
|
14 | };
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | export declare const alert: (config?: ShowConfig) => {
|
21 | hide: () => void;
|
22 | };
|
23 | export declare const success: (config?: ShowConfig) => {
|
24 | hide: () => void;
|
25 | };
|
26 | export declare const error: (config?: ShowConfig) => {
|
27 | hide: () => void;
|
28 | };
|
29 | export declare const notice: (config?: ShowConfig) => {
|
30 | hide: () => void;
|
31 | };
|
32 | export declare const warning: (config?: ShowConfig) => {
|
33 | hide: () => void;
|
34 | };
|
35 | export declare const help: (config?: ShowConfig) => {
|
36 | hide: () => void;
|
37 | };
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 | export declare const confirm: (config?: ShowConfig) => {
|
44 | hide: () => void;
|
45 | };
|
46 | export interface ContextDialog {
|
47 | show: (config?: ShowConfig) => {
|
48 | hide: () => void;
|
49 | };
|
50 | alert: (config?: ShowConfig) => {
|
51 | hide: () => void;
|
52 | };
|
53 | confirm: (config?: ShowConfig) => {
|
54 | hide: () => void;
|
55 | };
|
56 | success: (config?: ShowConfig) => {
|
57 | hide: () => void;
|
58 | };
|
59 | error: (config?: ShowConfig) => {
|
60 | hide: () => void;
|
61 | };
|
62 | warning: (config?: ShowConfig) => {
|
63 | hide: () => void;
|
64 | };
|
65 | notice: (config?: ShowConfig) => {
|
66 | hide: () => void;
|
67 | };
|
68 | help: (config?: ShowConfig) => {
|
69 | hide: () => void;
|
70 | };
|
71 | }
|
72 | export interface WithContextDialogProps {
|
73 | contextDialog: ContextDialog;
|
74 | }
|
75 | export declare const withContext: <P extends WithContextDialogProps, C>(WrappedComponent: React.JSXElementConstructor<P> & C) => (props: JSX.LibraryManagedAttributes<C, Omit<P, "contextDialog">>) => React.JSX.Element;
|
76 | export {};
|