import { ReactNode } from 'react';
import { ExternalToast, ToasterProps } from 'sonner';
export declare const Toaster: ({ className, toastOptions, ...rest }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
export declare const toast: {
    (message: string | string[] | ReactNode, options?: ExternalToast): string | number | (string | number)[];
    success(message: string | string[], options?: ExternalToast): string | number | (string | number)[];
    error(message: string | string[], options?: ExternalToast): string | number | (string | number)[];
    warning(message: string | string[], options?: ExternalToast): string | number | (string | number)[];
    info(message: string | string[], options?: ExternalToast): string | number | (string | number)[];
    custom(message: ReactNode, options?: ExternalToast): string | number;
    dismiss(toastId?: string | number): string | number;
    promise<T>({ myPromise, loadingMessage, successMessage, errorMessage, onSuccess, onError, options, }: {
        myPromise: Promise<T>;
        successMessage: string;
        loadingMessage?: string;
        errorMessage?: string;
        onSuccess?: (data: T) => void;
        onError?: (err: unknown) => void;
        options?: ExternalToast;
    }): (string & {
        unwrap: () => Promise<T>;
    }) | (number & {
        unwrap: () => Promise<T>;
    }) | {
        unwrap: () => Promise<T>;
    };
};
