import { Dispatch, FC, PropsWithChildren, SetStateAction } from 'react'; import { ToastProps } from './Toast'; /** * Props for the ToastProvider component * @extends PropsWithChildren */ export type ToastProviderProps = PropsWithChildren<{ /** * Whether this toaster is used within a dialog context * @default false */ isDialogToaster?: boolean; }>; /** * Context properties for the ToastProvider */ export type ToastProviderContextProps = { /** * Array of active toast notifications */ toasts: ToastProps[]; /** * Function to update the toast array */ setToasts: Dispatch>; /** * Array of toast height measurements */ toastHeights: { id: string; height: number; }[]; /** * Function to update toast heights */ setToastHeights: Dispatch>; /** * Function to calculate the total height of the toast stack */ getToastStackHeight: (index?: number) => number; /** * Number of toasts to display before stacking */ toastsBeforeStack: number; /** * Function to update the number of toasts before stacking */ setToastsBeforeStack: Dispatch>; /** * Whether extra toasts are currently visible */ extraToastsVisible: boolean; /** * Function to update the visibility of extra toasts */ setExtraToastsVisible: Dispatch>; /** * Whether this toaster is used within a dialog context */ isDialogToaster: boolean; }; /** * Context for managing toast state and operations */ export declare const ToastProviderContext: import('react').Context; /** * Global reference to toast state setters for external access */ export declare const getSetToasts: { setToasts: ToastProviderContextProps["setToasts"]; setToastHeights: ToastProviderContextProps["setToastHeights"]; }; /** * ToastProvider component for managing toast state and context. * * Features: * - Manages toast state and lifecycle * - Handles toast height tracking for positioning * - Provides stacking behavior configuration * - Supports dialog toaster mode * - Automatic duplicate toast detection and removal * - Context-based state management * - Height calculation utilities for positioning * * @example * * * */ export declare const ToastProvider: FC;