import { CSSProperties } from 'react'; import { ToastProviderContextProps } from './ToastProvider'; import { ToastProps } from './Toast'; /** * Animation duration for toast transitions in milliseconds */ export declare const ANIMATION_DURATION = 300; /** * Hook for calculating position styles for the show more button * @returns CSS properties for positioning the show more button */ export declare const useShowMoreButtonPositionStyles: () => CSSProperties; /** * Hook for calculating position styles for individual toasts * @param index - The index of the toast in the stack * @returns CSS properties for positioning the toast */ export declare const useToastPositionStyles: (index: number) => CSSProperties | undefined; /** * Adds or updates the height of a toast in the height tracking system * @param toastId - The unique identifier of the toast * @param toastHeight - The height of the toast in pixels * @param setToastHeights - Function to update toast heights */ export declare const addOrUpdateToastHeight: (toastId: string, toastHeight: number, setToastHeights: ToastProviderContextProps["setToastHeights"]) => void; /** * Closes a toast with animation support * @param setToasts - Function to update toasts * @param setToastHeights - Function to update toast heights * @param closingToastClassName - CSS class for closing animation * @param id - Optional toast ID to close specific toast, or undefined to close all */ export declare const closeToast: (setToasts: ToastProviderContextProps["setToasts"], setToastHeights: ToastProviderContextProps["setToastHeights"], closingToastClassName: ToastProps["toastClassName"], id?: string) => void; /** * Hook that returns a function to close toasts * @param closingToastClassName - CSS class for closing animation * @returns Function to close toasts by ID or all toasts */ export declare const useCloseToast: (closingToastClassName: ToastProps["toastClassName"]) => (id?: string) => void;