import type { ToastActionElement } from '../components/ui/toast';
type ToastVariant = 'default' | 'success' | 'destructive';
type ToasterToast = {
    id: string | number;
    title?: React.ReactNode;
    description?: React.ReactNode;
    variant?: ToastVariant;
    action?: ToastActionElement;
};
type Toast = Omit<ToasterToast, 'id'>;
declare function toast({ title, description, variant, ...rest }: Toast): {
    id: string | number;
    dismiss: () => string | number;
    update: (props: Partial<ToasterToast>) => void;
};
/**
 * Backward-compatible hook that wraps Sonner's toast API.
 *
 * Returns the same shape as the original Radix-based useToast:
 * - `toast()` to create a toast
 * - `dismiss()` to dismiss a toast by id (or all if no id)
 * - `toasts` array (always empty -- Sonner manages its own state internally)
 */
declare function useToast(): {
    toast: typeof toast;
    dismiss: (toastId?: string | number) => void;
    toasts: ToasterToast[];
};
export { useToast, toast };
export type { ToasterToast, Toast, ToastVariant };
//# sourceMappingURL=use-toast.d.ts.map