{
(message: string, options?: Partial<Pick<import("react-hot-toast/dist/core/types").Toast, "id" | "icon" | "duration" | "ariaProps" | "className" | "style" | "position" | "iconTheme">> | undefined): string;
originalToast: {
(message: import("react-hot-toast/dist/core/types").ValueOrFunction<import("react-hot-toast/dist/core/types").Renderable, import("react-hot-toast/dist/core/types").Toast>, opts?: Partial<Pick<import("react-hot-toast/dist/core/types").Toast, "id" | "icon" | "duration" | "ariaProps" | "className" | "style" | "position" | "iconTheme">> | undefined): string;
error: (message: import("react-hot-toast/dist/core/types").ValueOrFunction<import("react-hot-toast/dist/core/types").Renderable, import("react-hot-toast/dist/core/types").Toast>, options?: Partial<Pick<import("react-hot-toast/dist/core/types").Toast, "id" | "icon" | "duration" | "ariaProps" | "className" | "style" | "position" | "iconTheme">> | undefined) => string;
success: (message: import("react-hot-toast/dist/core/types").ValueOrFunction<import("react-hot-toast/dist/core/types").Renderable, import("react-hot-toast/dist/core/types").Toast>, options?: Partial<Pick<import("react-hot-toast/dist/core/types").Toast, "id" | "icon" | "duration" | "ariaProps" | "className" | "style" | "position" | "iconTheme">> | undefined) => string;
loading: (message: import("react-hot-toast/dist/core/types").ValueOrFunction<import("react-hot-toast/dist/core/types").Renderable, import("react-hot-toast/dist/core/types").Toast>, options?: Partial<Pick<import("react-hot-toast/dist/core/types").Toast, "id" | "icon" | "duration" | "ariaProps" | "className" | "style" | "position" | "iconTheme">> | undefined) => string;
custom: (message: import("react-hot-toast/dist/core/types").ValueOrFunction<import("react-hot-toast/dist/core/types").Renderable, import("react-hot-toast/dist/core/types").Toast>, options?: Partial<Pick<import("react-hot-toast/dist/core/types").Toast, "id" | "icon" | "duration" | "ariaProps" | "className" | "style" | "position" | "iconTheme">> | undefined) => string;
dismiss(toastId?: string | undefined): void;
remove(toastId?: string | undefined): void;
promise<T>(promise: Promise<T>, msgs: {
loading: import("react-hot-toast/dist/core/types").Renderable;
success: import("react-hot-toast/dist/core/types").ValueOrFunction<import("react-hot-toast/dist/core/types").Renderable, T>;
error: import("react-hot-toast/dist/core/types").ValueOrFunction<import("react-hot-toast/dist/core/types").Renderable, any>;
}, opts?: import("react-hot-toast/dist/core/types").DefaultToastOptions | undefined): Promise<T>;
};
success: (message: string, options?: Partial<Pick<import("react-hot-toast/dist/core/types").Toast, "id" | "icon" | "duration" | "ariaProps" | "className" | "style" | "position" | "iconTheme">> | undefined) => string;
error: (message: string, options?: Partial<Pick<import("react-hot-toast/dist/core/types").Toast, "id" | "icon" | "duration" | "ariaProps" | "className" | "style" | "position" | "iconTheme">> | undefined) => string;
warning: (message: string, options?: Partial<Pick<import("react-hot-toast/dist/core/types").Toast, "id" | "icon" | "duration" | "ariaProps" | "className" | "style" | "position" | "iconTheme">> | undefined) => string;
info: (message: string, options?: Partial<Pick<import("react-hot-toast/dist/core/types").Toast, "id" | "icon" | "duration" | "ariaProps" | "className" | "style" | "position" | "iconTheme">> | undefined) => string;
};
export default toast;
Красивая
Обсуждают сегодня